How to map more than 1 page of buffer to kernel address?

Miles MH Chen orca.chen at gmail.com
Wed Feb 5 11:16:26 EST 2014


Hi,

You can try vmap to map the pages into kernel virtual address.

Best regards,
MH



On Wed, Feb 5, 2014 at 5:18 AM, m silverstri <michael.j.silverstri at gmail.com
> wrote:

> Hi,
>
> I need to map an buffer object to kernel address.  What should I
> buffer is more than 1 page and I want to map the whole buffer to the
> kernel address?
>
> https://www.kernel.org/doc/htmldocs/device-drivers/API-dma-buf-kmap.html
>
> dma_buf_kmap -- Map a page of the buffer object into kernel address
> space. The same restrictions as for kmap and friends apply.
>
> Thanks.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140206/9a9d2d6f/attachment.html 


More information about the Kernelnewbies mailing list