lkml.org 
[lkml]   [2009]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectFwd: DMA sync operation on user space address
From
---------- Forwarded message ----------
From: Kallol Biswas <nucleodyne@gmail.com>
Date: Fri, Jul 31, 2009 at 10:47 AM
Subject: DMA sync operation on user space address
To: linux-arm@vger.kernel.org


 I need to implement a DMA sync (flush and invalidate) operation on
user space address.

It seems that the routine blk_dma_flush_range() that is defined in
arch/arm/mm/blockops.c can do the sync operation. Also the function
takes virtual address.

Need to consult an ARM acrh manual to find out if the processor uses
virtual addresses to access the cache. It seems so.

The question is will there be protection or any other issue calling
the above routine from kernel space while the address used as argument
is a user space address?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2009-08-01 23:39    [W:0.024 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site