Re: Question about V4L2_MEMORY_USERPTR

2012-07-05 Thread Laurent Pinchart
Hi Hans-Petter, On Monday 02 July 2012 21:07:56 Hans Petter Selasky wrote: Hi Laurent and Sakari, For the sake of the matter, here is the driver in question: http://www.freshports.org/multimedia/webcamd/ Under native-Linux (kernel mode): I've looked at the linux-media code a bit and it

Re: Question about V4L2_MEMORY_USERPTR

2012-07-02 Thread Laurent Pinchart
On Sunday 01 July 2012 17:00:58 Sakari Ailus wrote: On Fri, Mar 23, 2012 at 08:19:45AM +0100, Hans Petter Selasky wrote: Hi, I have a question about V4L2_MEMORY_USERPTR: From which context are the kernel's copy_to_user() functions called in relation to V4L2_MEMORY_USERPTR ? Can

Re: Question about V4L2_MEMORY_USERPTR

2012-07-02 Thread Hans Petter Selasky
at 08:19:45AM +0100, Hans Petter Selasky wrote: Hi, I have a question about V4L2_MEMORY_USERPTR: From which context are the kernel's copy_to_user() functions called in relation to V4L2_MEMORY_USERPTR ? Can this be a USB callback function or is it only syscalls, like read/write

Re: Question about V4L2_MEMORY_USERPTR

2012-07-01 Thread Sakari Ailus
Hi Hans, On Fri, Mar 23, 2012 at 08:19:45AM +0100, Hans Petter Selasky wrote: Hi, I have a question about V4L2_MEMORY_USERPTR: From which context are the kernel's copy_to_user() functions called in relation to V4L2_MEMORY_USERPTR ? Can this be a USB callback function or is it only

Question about V4L2_MEMORY_USERPTR

2012-03-23 Thread Hans Petter Selasky
Hi, I have a question about V4L2_MEMORY_USERPTR: From which context are the kernel's copy_to_user() functions called in relation to V4L2_MEMORY_USERPTR ? Can this be a USB callback function or is it only syscalls, like read/write/ioctl that are allowed to call copy_to_user() ? The reason