All of lore.kernel.org
 help / color / mirror / Atom feed
* User space memory
@ 2013-03-10 18:00 Christoph Seitz
  2013-03-12 13:08 ` Prabhu nath
  0 siblings, 1 reply; 6+ messages in thread
From: Christoph Seitz @ 2013-03-10 18:00 UTC (permalink / raw)
  To: kernelnewbies

Hi all,

I have some problems allocation Memory the right way and use it in my
kernel module.

I use a char device for reading and writing from/to a pcie dma card.
Especially the read function makes me some headache. The user allocates
some memory with posix_memalign and call the read function on the
device, so that the devices knows where to write to. My driver now uses
get_user_pages() to pin the user pages. The memory has never been
written or read by the user, so it's not yet in the RAM, right? And
get_user_pages returns a valid number of pages, but for every page the
same struct. (respectively the same pointer). Is there any way to ensure
that the user pages are in the ram and get_user_pages returns a valid
page array?

Regards
Chris

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-03-13  5:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-10 18:00 User space memory Christoph Seitz
2013-03-12 13:08 ` Prabhu nath
2013-03-12 14:03   ` Christoph Seitz
2013-03-12 17:18     ` Valdis.Kletnieks at vt.edu
2013-03-12 14:29   ` Valdis.Kletnieks at vt.edu
2013-03-13  5:18     ` Prabhu nath

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.