linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Stephen C. Tweedie" <sct@redhat.com>
To: Bulent Abali <abali@us.ibm.com>
Cc: linux-mm@kvack.org
Subject: Re: How do you determine PA in the X86_PAE mode.
Date: Fri, 26 Jan 2001 11:53:27 +0000	[thread overview]
Message-ID: <20010126115327.K11607@redhat.com> (raw)
In-Reply-To: <OF0A565D7B.D20E47EA-ON852569DF.00791D69@pok.ibm.com>; from abali@us.ibm.com on Thu, Jan 25, 2001 at 05:09:40PM -0500

Hi,

On Thu, Jan 25, 2001 at 05:09:40PM -0500, Bulent Abali wrote:
> Given struct page * p, how do you determine the physical page number in the
> CONFIG_X86_PAE mode?
> Is it simply  (p - mem_map)  ?  Thanks for any suggestions.

Yes, but only on i386 machines.  There are other systems which don't
necessarily have all their physical memory arranged sequentially, so
the 2.4 VM avoids using physical page numbers in any of the high-level
code.  You're better off just using the struct page * to reference the
page, and convert that to virtual addresses as you need it.

--Stephen
--
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.eu.org/Linux-MM/

      reply	other threads:[~2001-01-26 11:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-25 22:09 Bulent Abali
2001-01-26 11:53 ` Stephen C. Tweedie [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=20010126115327.K11607@redhat.com \
    --to=sct@redhat.com \
    --cc=abali@us.ibm.com \
    --cc=linux-mm@kvack.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