From: Fawad Lateef <fawadlateef@gmail.com>
To: Anil kumar <anils_r@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Physical to Page in 2.6
Date: Wed, 7 Dec 2005 20:35:20 +0500 [thread overview]
Message-ID: <1e62d1370512070735ye02db49kc9bed24f4a7d99e3@mail.gmail.com> (raw)
In-Reply-To: <20051207032236.71308.qmail@web32403.mail.mud.yahoo.com>
On 12/7/05, Anil kumar <anils_r@yahoo.com> wrote:
>
> How to get a page from a physical address for a x86_64
> in 2.6 kernel.
> I guess there are macros in 2.4 like phys_to_pfn( )
> and pfn_to_page(). I don't see these macros in 2.6 for
> x86_64 arch.
>
> These macros are defined only if CONFIG_DISCONTIGMEM
> for 2.6.
>
pfn_to_page is defined in include/asm-x86_64/page.h (see
http://sosdg.org/~coywolf/lxr/source/include/asm-x86_64/page.h#L114)
if the CONFIG_FLATMEM is defined and I think its defined by-default
(although not sure)
--
Fawad Lateef
prev parent reply other threads:[~2005-12-07 15:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-07 3:22 Anil kumar
2005-12-07 15:35 ` Fawad Lateef [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=1e62d1370512070735ye02db49kc9bed24f4a7d99e3@mail.gmail.com \
--to=fawadlateef@gmail.com \
--cc=anils_r@yahoo.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®