Re: [RFC/PATCH v3 1/7] v4l: Share code between video_usercopy and video_ioctl2

2010-08-04 Thread Hans Verkuil
On Monday 12 July 2010 17:25:46 Laurent Pinchart wrote: The two functions are mostly identical. They handle the copy_from_user and copy_to_user operations related with V4L2 ioctls and call the real ioctl handler. Create a __video_usercopy function that implements the core of video_usercopy

Re: [RFC/PATCH v3 1/7] v4l: Share code between video_usercopy and video_ioctl2

2010-08-04 Thread Laurent Pinchart
Hi Hans, On Wednesday 04 August 2010 20:30:06 Hans Verkuil wrote: On Monday 12 July 2010 17:25:46 Laurent Pinchart wrote: The two functions are mostly identical. They handle the copy_from_user and copy_to_user operations related with V4L2 ioctls and call the real ioctl handler. Create

[RFC/PATCH v3 1/7] v4l: Share code between video_usercopy and video_ioctl2

2010-07-12 Thread Laurent Pinchart
The two functions are mostly identical. They handle the copy_from_user and copy_to_user operations related with V4L2 ioctls and call the real ioctl handler. Create a __video_usercopy function that implements the core of video_usercopy and video_ioctl2, and call that function from both.