getting physical address of a page

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

 



Hi, 

In, linux-2.2.19, I can get a phyiscal address of a page frame by using
page_address(struct page * page).

But, in linux-2.4.18, the page_address() is defined as:
#define page_address(page) ((page)->virtual)

In the page structure, there is one field "void *virtual", which is said to
be the kernel virtual addrss. 

I just wonder whether I can still use the page_address() function to get the
phyiscal address in linux-2.4.18? or I have to do another way?

TIA!

-- 
regards,

ZM 
--
    Randal said it would be tough to do in sed.  He didn't say he didn't
    understand sed.  Randal understands sed quite well.  Which is why he
    uses Perl.   :-)  -- Larry Wall in <7874@jpl-devvax.JPL.NASA.GOV>

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux