1. 28 7月, 2011 6 次提交
  2. 21 10月, 2010 1 次提交
    • H
      V4L/DVB: v4l2: add core serialization lock · ee6869af
      Hans Verkuil 提交于
      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: NHans Verkuil <hverkuil@xs4all.nl>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      ee6869af
  3. 19 5月, 2010 3 次提交