Re: Reading a physical memory location

From: Clemens Koller
Date: Wed Jul 11 2007 - 06:01:16 EST


Manu Abraham schrieb:
On 7/11/07, Nobin Mathew <nobin.mathew@xxxxxxxxx> wrote:
See this in the documentation

The returned virtual address is a current CPU mapping for the memory
address given. It is only valid to use this function on addresses that
have a kernel mapping

This function does not handle bus mappings for DMA transfers. In
almost all conceivable cases a device driver should not be using this
function


To get a better idea, look here
http://tldp.org/LDP/khg/HyperNews/get/devices/addrxlate.html

Very nice! I have two more questions:

1. Is the document up to date?

2. Can anybody give an example how to "map" lots of pages (which
got filled by i.e. a scatter gather DMA chain) from a driver
(kernel space) to userspace?

Thanks
--
Clemens Koller
__________________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Straße 45/1
Linhof Werksgelände
D-81379 München
Tel.089-741518-50
Fax 089-741518-19
http://www.anagramm-technology.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/