[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <38b2ab8a0805161317i161e6b12w60ae21b4727de6ea@mail.gmail.com>
Date: Fri, 16 May 2008 22:17:46 +0200
From: "Francis Moreau" <francis.moro@...il.com>
To: "Lennart Sorensen" <lsorense@...lub.uwaterloo.ca>
Cc: linux-kernel@...r.kernel.org
Subject: Re: How to avoid data copies in a driver ?
On Thu, May 15, 2008 at 3:59 PM, Lennart Sorensen
<lsorense@...lub.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
--
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