lkml.org 
[lkml]   [2008]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How to avoid data copies in a driver ?
On Thu, May 15, 2008 at 3:59 PM, Lennart Sorensen
<lsorense@csclub.uwaterloo.ca> wrote:
> On Thu, May 15, 2008 at 09:44:37AM +0200, Francis Moreau wrote:
>> So I would need to map this pointer into the kernel space, then fill it, take
>> care of cache coherency, unmap the kernel pointer.
>>
>> Do you have any example of that in the kernel tree ?
>
> I was asking if that would work. Does the to_user and from_user work on
> a pointer from user space if that pointer points at a memory mapped
> file?

I would say yes but I'm not really confident.

--
Francis


\
 
 \ /
  Last update: 2008-05-16 22:21    [W:0.064 / U:26.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site