Re: How can I get physical address from a struct dma_buf

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

 



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@xxxxxxxxx> wrote:
> Hi,
>
> If I have a struct dma_buf dma buffer, how can I the physical address?
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
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