How about using dma_buf_kmap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux