How can I get physical address from a struct dma_buf

naveen yadav yad.naveen at gmail.com
Tue Feb 11 07:09:12 EST 2014


how about using define

page_to_phys(page)      ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)

or
 virt_to_phys ()


On Sat, Feb 8, 2014 at 1:32 AM, m silverstri
<michael.j.silverstri at gmail.com> wrote:
> Hi,
>
> If I have a struct dma_buf dma buffer, how can I the physical address?
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



More information about the Kernelnewbies mailing list