Re: Physical to Page in 2.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/7/05, Anil kumar <[email protected]> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux