2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 04:03:58 +08:00
linux-next/drivers/media
Hans Verkuil ee6869afc9 V4L/DVB: v4l2: add core serialization lock
Drivers can optionally set a pointer to a mutex in struct video_device.
The core will use that to lock before calling open, read, write, unlocked_ioctl,
poll, mmap or release.

Updated the documentation as well and ensure that v4l2-event knows about the
lock: it will unlock it before doing a blocking wait on an event and relock it
afterwards.

Ensure that the 'video_is_registered' check is done when the lock is held:
a typical disconnect will take the lock as well before unregistering the
device nodes, so to prevent race conditions the video_is_registered check
should also be done with the lock held.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-10-21 01:06:14 -02:00
..
common V4L/DVB: saa7146/tuner: remove mxb hack 2010-10-21 01:06:05 -02:00
dvb V4L/DVB: dvb/bt8xx: kill the big kernel lock 2010-10-21 01:06:12 -02:00
IR V4L/DVB: IR/lirc_dev: check for valid irctl in unregister path 2010-10-21 01:06:08 -02:00
radio V4L/DVB: radio-si470x: use unlocked ioctl 2010-10-21 01:06:12 -02:00
video V4L/DVB: v4l2: add core serialization lock 2010-10-21 01:06:14 -02:00
Kconfig V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00
Makefile V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00