How to mmap kernel memory area to userspace ?

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Tue Aug 19 13:09:22 EDT 2014


On Tue, 19 Aug 2014 17:54:14 +0800, lxgeek said:
>        I want to mmap a kernel memory area which sk_buf->data pointer
> into userspace. I want to do this , because this way can reduce a copy
> from kernel to userspace.
>        How to fix it? Or, which book or project can help me ?

Look at how other drivers do zero-copy.  Hint: mmap is probably not
the best way to approach it, because that would require userspace to
do something different to use it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140819/24860fc6/attachment.bin 


More information about the Kernelnewbies mailing list