mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "M. Shuaib Khan" <aries.shuaib@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Traversing Page Table of a process
Date: Mon, 27 Jul 2009 16:31:13 +0500	[thread overview]
Message-ID: <d6bd61d30907270431k6ce7b470le8804aa54aab3fbb@mail.gmail.com> (raw)

This has seriously started to give me a head ache. So an SOS for help.

I get the pgd for each process out of its mm_struct. How do I use this
pgd to get the physical addresses of all the pages. I am not writing a
code that will be part of the running kernel so none of the kernel
macros are available for my use. I am getting everything manually out
of a RAM image taken using dd.

So once I've the pgd value out of mm_struct, how do I get to the
corresponding pmd and pte addresses and eventually the physical
addresses of the pages...?

Any help/pointers greatly appreciated. Thanks.

-- 
M. Shuaib Khan

                 reply	other threads:[~2009-07-27 11:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=d6bd61d30907270431k6ce7b470le8804aa54aab3fbb@mail.gmail.com \
    --to=aries.shuaib@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®