* Given a struct page *, how to find corresponding physical address?
@ 2006-09-25 5:51 Rajat Jain
2006-09-25 23:43 ` Rik van Riel
0 siblings, 1 reply; 2+ messages in thread
From: Rajat Jain @ 2006-09-25 5:51 UTC (permalink / raw)
To: Linux Newbie, kernelnewbies
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Given a struct page *, how to find corresponding physical address?
2006-09-25 5:51 Given a struct page *, how to find corresponding physical address? Rajat Jain
@ 2006-09-25 23:43 ` Rik van Riel
0 siblings, 0 replies; 2+ messages in thread
From: Rik van Riel @ 2006-09-25 23:43 UTC (permalink / raw)
To: Rajat Jain; +Cc: Linux Newbie, kernelnewbies
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-25 23:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-25 5:51 Given a struct page *, how to find corresponding physical address? Rajat Jain
2006-09-25 23:43 ` Rik van Riel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.