All of lore.kernel.org
 help / color / mirror / Atom feed
* How to map more than 1 page of buffer to kernel address?
@ 2014-02-04 21:18 m silverstri
  2014-02-05 16:16 ` Miles MH Chen
  0 siblings, 1 reply; 2+ messages in thread
From: m silverstri @ 2014-02-04 21:18 UTC (permalink / raw)
  To: kernelnewbies

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.

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

* How to map more than 1 page of buffer to kernel address?
  2014-02-04 21:18 How to map more than 1 page of buffer to kernel address? m silverstri
@ 2014-02-05 16:16 ` Miles MH Chen
  0 siblings, 0 replies; 2+ messages in thread
From: Miles MH Chen @ 2014-02-05 16:16 UTC (permalink / raw)
  To: kernelnewbies

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@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 

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

end of thread, other threads:[~2014-02-05 16:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-04 21:18 How to map more than 1 page of buffer to kernel address? m silverstri
2014-02-05 16:16 ` Miles MH Chen

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.