Hi,

I need help in using dma_buf_kmap.
https://www.kernel.org/doc/htmldocs/device-drivers/API-dma-buf-kmap.html
I create a dma buffer in user side, size is 307200  and I want to map
that to kernel so that my driver can access it.

I have a dma_buf pointer, so I think I need to use dma_buf_kmap.
My question is what should I pass to the 2nd parameter of (page in
PAGE_SIZE units to map) dma_buf_kmap?
I want the whole dma_buf to be accessible.

Thank you for your help.

_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to