public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "sumanesh samanta" <sumanesh@hotmail.com>
To: linux-kernel@vger.kernel.org
Subject: kernel 2.4x - getting physical address for pages in HIGHMEM
Date: Wed, 23 Jul 2003 00:09:54 +0000	[thread overview]
Message-ID: <BAY2-F83zgm7hVTThPD00010aa2@hotmail.com> (raw)

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


                 reply	other threads:[~2003-07-22 23:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY2-F83zgm7hVTThPD00010aa2@hotmail.com \
    --to=sumanesh@hotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox