Adjust cache settings of user pages?
Bill Gatliff
bgat at billgatliff.com
Tue Sep 22 12:15:28 EDT 2009
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
More information about the linux-arm-kernel
mailing list