From: Jeff Garzik <jgarzik@mandrakesoft.mandrakesoft.com>
To: Timur Tabi <ttabi@interactivesi.com>
Cc: Linux MM mailing list <linux-mm@kvack.org>
Subject: Re: virt_to_phys for ioremap'd memory
Date: Tue, 26 Sep 2000 02:49:57 -0500 (CDT) [thread overview]
Message-ID: <Pine.LNX.3.96.1000926024929.11108F-100000@mandrakesoft.mandrakesoft.com> (raw)
In-Reply-To: <20000925192431Z131283-10807+23@kanga.kvack.org>
On Mon, 25 Sep 2000, Timur Tabi wrote:
> Can anyone help me figure out how to do virtual->physical translation on memory
> obtained via ioremap()? I know that you need to have the physical address in
> order to call ioremap(), but I don't want to have to remember the physical
> address for all the memory blocks that I allocate via ioremap(). It'd be a lot
> easier for me to do virt->phys translations on the virtual addresses whenever I
> needed them.
>
> I know it has something to do with walking the pgd/pmd/pte chain, but even
> after looking at the kernel source code, I can't make heads or tails of it.
Instead of worry about that stuff, bite the bullet and remember the
physical addresses... :)
Jeff
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
prev parent reply other threads:[~2000-09-26 7:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-25 19:30 Timur Tabi
2000-09-26 7:49 ` Jeff Garzik [this message]
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=Pine.LNX.3.96.1000926024929.11108F-100000@mandrakesoft.mandrakesoft.com \
--to=jgarzik@mandrakesoft.mandrakesoft.com \
--cc=linux-mm@kvack.org \
--cc=ttabi@interactivesi.com \
/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