From: "Martin J. Bligh" <Martin.Bligh@us.ibm.com>
To: Sanket Rathi <sanket.rathi@cdac.ernet.in>,
Ravi <kravi26@yahoo.com>,
linux-mm@kvack.org
Subject: Re: Fwd: Re: How CPU(x86) resolve kernel address
Date: Tue, 09 Apr 2002 07:34:09 -0700 [thread overview]
Message-ID: <1979206818.1018337648@[10.10.2.3]> (raw)
In-Reply-To: <Pine.GSO.4.10.10204091052060.13298-100000@mailhub.cdac.ernet.in>
> phyAddress = pte_page(*pte) ;
> ...
> where virtAddress is the address i passed from application so every time
> phyAddress i got is start with somthing like (C1081234) which is actually
> a kernel address space. why it is like so.
I don't think pte_page does what you think it does:
#define pte_page(x) (mem_map+((unsigned long)(((x).pte_low
>>PAGE_SHIFT))))
seems to return the address of the struct page for that physaddr,
not the physaddr itself. pte.pte_low might be closer to what you
want, but as has been pointed out already, that's not accurate if
it's been swapped out.
M.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
prev parent reply other threads:[~2002-04-09 14:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20020407025738.90777.qmail@web12307.mail.yahoo.com>
2002-04-09 5:29 ` Sanket Rathi
2002-04-09 9:08 ` Stephen C. Tweedie
2002-04-09 14:34 ` Martin J. Bligh [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='1979206818.1018337648@[10.10.2.3]' \
--to=martin.bligh@us.ibm.com \
--cc=kravi26@yahoo.com \
--cc=linux-mm@kvack.org \
--cc=sanket.rathi@cdac.ernet.in \
/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