<div dir="ltr"><div><div>Hi,<br><br></div>You can try vmap to map the pages into kernel virtual address.<br><br></div><div>Best regards,<br></div><div>MH<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Feb 5, 2014 at 5:18 AM, m silverstri <span dir="ltr"><<a href="mailto:michael.j.silverstri@gmail.com" target="_blank">michael.j.silverstri@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I need to map an buffer object to kernel address. What should I<br>
buffer is more than 1 page and I want to map the whole buffer to the<br>
kernel address?<br>
<br>
<a href="https://www.kernel.org/doc/htmldocs/device-drivers/API-dma-buf-kmap.html" target="_blank">https://www.kernel.org/doc/htmldocs/device-drivers/API-dma-buf-kmap.html</a><br>
<br>
dma_buf_kmap -- Map a page of the buffer object into kernel address<br>
space. The same restrictions as for kmap and friends apply.<br>
<br>
Thanks.<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br></div>