Re: Given a struct page *, how to find corresponding physical address?

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

 



Rajat Jain wrote:
Hi,

This is in context of mapping of virtual addresses to physical
addresses by the MMU. I read that the virtual address is taken through
the three level page tables to finally arrive at a struct page.

But how to find the physical address of this page?

1) page tables point directly at the physical address

2) if you have a struct page, you can call page_to_phys

--
"You don't have to be crazy to do this... but it helps." -- Bob Ross

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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