Re: virt_to_phys for ioremap'd memory
From: Jeff Garzik <hidden>
Date: 2000-09-26 07:49:57
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/