RE: mmap() and ioctl()

2005-04-05 Thread Aleksey Gorelov
>-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Matthew Dharm >Sent: Monday, April 04, 2005 12:20 PM >To: Richard B. Johnson >Cc: Kernel Developer List >Subject: Re: mmap() and ioctl() > [snip] >That's an inte

Re: mmap() and ioctl()

2005-04-04 Thread Richard B. Johnson
On Mon, 4 Apr 2005, Matthew Dharm wrote: This probably is a silly question, but Is is possible to open a file, mmap() it into memory, then pass the address of that map via an ioctl() call to the kernel, which will copy_from_user() that data? Yes. A user-mode pointer, passed via ioctl() is valid

Re: mmap() and ioctl()

2005-04-04 Thread Matthew Dharm
On Mon, Apr 04, 2005 at 03:02:26PM -0400, Richard B. Johnson wrote: > On Mon, 4 Apr 2005, Matthew Dharm wrote: > > >This probably is a silly question, but > > > >Is is possible to open a file, mmap() it into memory, then pass the address > >of that map via an ioctl() call to the kernel, which