Messages in this thread | | | From | "sumanesh samanta" <> | Subject | kernel 2.4x - getting physical address for pages in HIGHMEM | Date | Wed, 23 Jul 2003 00:09:54 +0000 |
| |
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
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |