[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4694AA52.6040207@anagramm.de>
Date: Wed, 11 Jul 2007 12:00:50 +0200
From: Clemens Koller <clemens.koller@...gramm.de>
To: Manu Abraham <abraham.manu@...il.com>
CC: Nobin Mathew <nobin.mathew@...il.com>,
"vraghavan3@...l.gatech.edu" <vraghavan3@...l.gatech.edu>,
linux-kernel@...r.kernel.org
Subject: Re: Reading a physical memory location
Manu Abraham schrieb:
> On 7/11/07, Nobin Mathew <nobin.mathew@...il.com> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists