* Physical to Page in 2.6
@ 2005-12-07 3:22 Anil kumar
2005-12-07 15:35 ` Fawad Lateef
0 siblings, 1 reply; 2+ messages in thread
From: Anil kumar @ 2005-12-07 3:22 UTC (permalink / raw)
To: linux-kernel
Hi,
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.
regards,
Anil
__________________________________________
Yahoo! DSL Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Physical to Page in 2.6
2005-12-07 3:22 Physical to Page in 2.6 Anil kumar
@ 2005-12-07 15:35 ` Fawad Lateef
0 siblings, 0 replies; 2+ messages in thread
From: Fawad Lateef @ 2005-12-07 15:35 UTC (permalink / raw)
To: Anil kumar; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-07 15:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-07 3:22 Physical to Page in 2.6 Anil kumar
2005-12-07 15:35 ` Fawad Lateef
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®