* kernel 2.4x - getting physical address for pages in HIGHMEM
@ 2003-07-23 0:09 sumanesh samanta
0 siblings, 0 replies; only message in thread
From: sumanesh samanta @ 2003-07-23 0:09 UTC (permalink / raw)
To: linux-kernel
Hi,
I am facing a lot of problems in trying to get the physical address(actually
bus address) from of page.
The most obvious answer, virt_to_bus(kmap(page)) seems to work for pages
that are NOT in high memory.
For pages in high memory, I have read up a lot of documentation, and mailing
list questions, but the only thing that seems to work for me is,
(page-mem_map)<<PAGE_SHIFT
Now, the mail i got this from says that this would work only when mem_map
[] starts at zero.
I am pretty confused here, this seems to be a obvious problem, why does
Linux not have a pretty macro or function that would work in all situations?
PS. please cc me in any answers, as I am not subscribed to this list.
Thanks
sumanesh
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-07-22 23:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-23 0:09 kernel 2.4x - getting physical address for pages in HIGHMEM sumanesh samanta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).