public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [HOWTO] accessing the DMA mapped data
@ 2007-05-10  7:58 Mahesh
  2007-05-10  8:47 ` David Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Mahesh @ 2007-05-10  7:58 UTC (permalink / raw)
  To: linux-kernel; +Cc: kernelnewbies

Hi list,

I have a small question regarding the accessing the data in the DMA 
mapped  region (in the driver).  In my driver I only have the 
'dma_addr_t addr' variable which is result after the 'dma_map_single'. 
I don't have access to the virtual address of the data region.

Is there helper routine which we will give me the virtual address back 
from the DMA mapped address???

After some searching in the net about it found 'dma_sync_single' which 
will help to synchronize it after 'modifying' the contents of the DMA mapped 
region. But to 'modify' the contents of DMA mapped region I require the virtual 
address, which is not available in my case.

Regards,
Mahesh.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-05-11 15:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-10  7:58 [HOWTO] accessing the DMA mapped data Mahesh
2007-05-10  8:47 ` David Miller
2007-05-10 11:19   ` Mahesh
2007-05-10 11:32     ` David Miller
2007-05-10 11:41       ` Mahesh
2007-05-10 11:47         ` David Miller
2007-05-11 15:42           ` Muli Ben-Yehuda
2007-05-10 18:27         ` Roland Dreier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox