linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: bgat@billgatliff.com (Bill Gatliff)
To: linux-arm-kernel@lists.infradead.org
Subject: Adjust cache settings of user pages?
Date: Tue, 22 Sep 2009 11:15:28 -0500	[thread overview]
Message-ID: <4AB8F820.4000103@billgatliff.com> (raw)

Guys:


I'm using get_user_pages() to let me "stream" data directly from a
hardware device to the user application that wants it.  (The device in
question is an SPI device, and I use the user pages as the receive buffer).

In the abstract, everything I have is working fine.  However, users are
wanting to read the data immediately as soon as they know that the data
is there.  What I'm finding is that even though I've sent them such
indication (via a blocking read()), the data in question might not have
actually gotten placed into the user buffer at that point--- probably
because the pages are still in the cache?  (The data does eventually
show up).

What the right API is (if there is one) to tell the kernel to turn off
caching for a user page--- or even if such a thing is possible.  Can
anyone offer any hints?


Thanks!


b.g.

-- 
Bill Gatliff
bgat at billgatliff.com

             reply	other threads:[~2009-09-22 16:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-22 16:15 Bill Gatliff [this message]
2009-09-25 12:52 ` Adjust cache settings of user pages? Bill Gatliff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AB8F820.4000103@billgatliff.com \
    --to=bgat@billgatliff.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).