How about using dma_buf_kmap
m silverstri
michael.j.silverstri at gmail.com
Fri Jan 24 16:29:11 EST 2014
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.
More information about the Kernelnewbies
mailing list