From: Rik van Riel <riel@surriel.com>
To: Rajat Jain <rajat.noida.india@gmail.com>
Cc: Linux Newbie <linux-newbie@vger.kernel.org>,
kernelnewbies <kernelnewbies@nl.linux.org>
Subject: Re: Given a struct page *, how to find corresponding physical address?
Date: Mon, 25 Sep 2006 19:43:42 -0400 [thread overview]
Message-ID: <451869AE.4090107@surriel.com> (raw)
In-Reply-To: <b115cb5f0609242251r204c2aa7hc8146c9791598993@mail.gmail.com>
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
prev parent reply other threads:[~2006-09-25 23:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=451869AE.4090107@surriel.com \
--to=riel@surriel.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-newbie@vger.kernel.org \
--cc=rajat.noida.india@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.