* Adjust cache settings of user pages?
@ 2009-09-22 16:15 Bill Gatliff
2009-09-25 12:52 ` Bill Gatliff
0 siblings, 1 reply; 2+ messages in thread
From: Bill Gatliff @ 2009-09-22 16:15 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Adjust cache settings of user pages?
2009-09-22 16:15 Adjust cache settings of user pages? Bill Gatliff
@ 2009-09-25 12:52 ` Bill Gatliff
0 siblings, 0 replies; 2+ messages in thread
From: Bill Gatliff @ 2009-09-25 12:52 UTC (permalink / raw)
To: linux-arm-kernel
Bill Gatliff wrote:
> Guys:
>
>
>
> 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?
>
Nevermind.
In hindsight, what I'm really doing is a kind of DMA, right? That means
I have to use those APIs and not just the plain old get_user_pages().
Problem resolved.
Move along, nothing more to see here. :)
b.g.
--
Bill Gatliff
bgat at billgatliff.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-25 12:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-22 16:15 Adjust cache settings of user pages? Bill Gatliff
2009-09-25 12:52 ` Bill Gatliff
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).