Re: inverse mmap() available?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In article <3BB49438.1F2C59B3@berlin.de> you wrote:

> Hello!
>
> Is there a way to map user space memory into kernel address space, e.g.
> that i don't have to call get_user(var,...) but simply use var =
> *user_space_ptr?
>
> What i intend to do (as the next step) is to DMA-transfer data directly
> between a PCI device and user space memory. The buffer in user space
> should be allocated with malloc(), so allocating a buffer in kernel and
> mmap()-ping it to user space is not the solution..
>
> I guess this has been asked before, any links to further information
> would be great.

map_user_kiobuf is what you want :) Some more explanation at:

 ftp://ftp.openlinux.org/pub/people/hch/kio/kiobuf.txt

-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux