Given a struct page *, how to find corresponding physical address?
am 25.09.2006 07:51:46 von Rajat Jain
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?
TIA,
Rajat
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: Given a struct page *, how to find corresponding physical address?
am 26.09.2006 01:43:42 von Rik van Riel
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
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs