Re: Calculating kernel logical address ..

David S. Miller
2002-09-09T17:27:02Z

From: "Richard B. Johnson" <root@chaos.analogic.com>
Date: Mon, 9 Sep 2002 13:29:42 -0400 (EDT)

I think there is a virt_to_bus() macro and its inverse.

Which is deprecate and not to be used by any new code.
Use Documentation/DMA-mapping.txt instead.

If you meant virt_to_phys(), this does not work on arbitrary
kernel virtual addresses either only direct mapped ones
(ie. kmalloc() or get_free_page() data).