linux/Documentation
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
..
ABI
accounting
acpi ACPI: introduce module parameter acpi.aml_debug_output 2010-08-14 23:02:14 -04:00
aoe
arm
auxdisplay
blackfin
block cfq-iosched: Documentation help for new tunables 2010-08-23 12:25:29 +02:00
blockdev
cdrom
cgroups cfq-iosched: Documentation help for new tunables 2010-08-23 12:25:29 +02:00
connector
console
cpu-freq
cpuidle
cris
crypto
development-process
device-mapper
DocBook V4L/DVB: V4L Doc: removed duplicate link 2010-10-21 01:05:57 -02:00
driver-model
dvb V4L/DVB: Support or LME2510(C) DM04/QQBOX USB DVB-S BOXES 2010-10-21 01:04:54 -02:00
early-userspace
fault-injection
fb
filesystems
firmware_class
frv
hwmon hwmon: (adm1031) Replace update_rate sysfs attribute with update_interval 2010-09-17 17:24:14 +02:00
i2c
i2o
ia64
ide
infiniband
input
ioctl V4L/DVB: Documentation: update now that the vtx/videotext API has been removed 2010-10-21 01:05:48 -02:00
isdn
ja_JP
kbuild kbuild: drop unifdef-y support 2010-08-14 22:26:52 +02:00
kdump
ko_KR
kvm
laptops thinkpad-acpi: untangle ACPI/vendor backlight selection 2010-08-16 11:54:50 -04:00
lguest lguest: clean up warnings in demonstration launcher. 2010-08-27 08:39:51 +09:30
m68k
make
mips
misc-devices
mmc
mn10300
mtd
namespaces
netlabel
networking e1000e.txt: Add e1000e documentation 2010-10-05 13:28:07 -07:00
parisc
PCI
pcmcia
power regulator: Update e-mail address for Liam Girdwood 2010-09-01 12:59:34 +01:00
powerpc Documentation: fix ozlabs.org mailing list address 2010-08-20 09:55:41 -07:00
pps
prctl
RCU
s390
scheduler
scsi Documentation: move SCSI parameters to their own text file 2010-08-14 16:20:59 -07:00
serial
sh
sound ALSA: hda - Add a new hp-laptop model for Conexant 5066, tested on HP G60 2010-09-02 11:49:17 +02:00
sparc
spi
sysctl
telephony
thermal
timers
trace
uml
usb
video4linux V4L/DVB: v4l2: add core serialization lock 2010-10-21 01:06:14 -02:00
vm page-types.c: fix name of unpoison interface 2010-10-07 09:41:24 +02:00
w1
watchdog
wimax
x86
zh_CN
.gitignore
00-INDEX
apparmor.txt
applying-patches.txt
atomic_ops.txt
bad_memory.txt
basic_profiling.txt
binfmt_misc.txt
braille-console.txt
bt8xxgpio.txt
btmrvl.txt
BUG-HUNTING
bus-virt-phys-mapping.txt
cachetlb.txt
Changes
circular-buffers.txt
coccinelle.txt
CodingStyle
cpu-hotplug.txt
cpu-load.txt
cputopology.txt
credentials.txt
dcdbas.txt
debugging-modules.txt
debugging-via-ohci1394.txt
dell_rbu.txt
devices.txt devices.txt: Remove the old obsolete vtx device nodes 2010-10-21 01:05:49 -02:00
DMA-API-HOWTO.txt
DMA-API.txt
DMA-attributes.txt
DMA-ISA-LPC.txt
dmaengine.txt
dontdiff
dynamic-debug-howto.txt
edac.txt
eisa.txt
email-clients.txt
feature-removal-schedule.txt V4L/DVB: Deprecate stradis driver 2010-10-21 01:06:13 -02:00
flexible-arrays.txt
futex-requeue-pi.txt
gcov.txt
gpio.txt gpio: doc updates 2010-09-09 18:57:24 -07:00
highuid.txt
HOWTO
hw_random.txt
init.txt
initrd.txt
Intel-IOMMU.txt
intel_txt.txt
io-mapping.txt
io_ordering.txt
iostats.txt
IPMI.txt
IRQ-affinity.txt
IRQ.txt
irqflags-tracing.txt
isapnp.txt
java.txt
kernel-doc-nano-HOWTO.txt docbook: warn on unused doc entries 2010-09-11 16:49:21 -07:00
kernel-docs.txt
kernel-parameters.txt Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 2010-09-07 16:00:17 -07:00
keys-request-key.txt
keys.txt
kmemcheck.txt
kmemleak.txt
kobject.txt
kprobes.txt
kref.txt
ldm.txt
leds-class.txt
leds-lp3944.txt
local_ops.txt
lockdep-design.txt
lockstat.txt
logo.gif
logo.txt
magic-number.txt
Makefile
ManagementStyle
mca.txt
md.txt
memory-barriers.txt
memory-hotplug.txt
memory.txt
mono.txt
mutex-design.txt mutex: Fix annotations to include it in kernel-locking docbook 2010-09-03 08:19:51 +02:00
nmi_watchdog.txt
nommu-mmap.txt
numastat.txt
oops-tracing.txt
padata.txt
parport-lowlevel.txt
parport.txt
pi-futex.txt
pnp.txt
preempt-locking.txt
printk-formats.txt
prio_tree.txt
rbtree.txt
rfkill.txt
robust-futex-ABI.txt
robust-futexes.txt
rt-mutex-design.txt
rt-mutex.txt
rtc.txt
SAK.txt
SecurityBugs
SELinux.txt
serial-console.txt
sgi-ioc4.txt
sgi-visws.txt
SM501.txt
Smack.txt
sparse.txt
spinlocks.txt
stable_api_nonsense.txt
stable_kernel_rules.txt
SubmitChecklist
SubmittingDrivers
SubmittingPatches
svga.txt
sysfs-rules.txt
sysrq.txt
tomoyo.txt
unaligned-memory-access.txt
unicode.txt
unshare.txt
VGA-softcursor.txt
vgaarbiter.txt
video-output.txt
volatile-considered-harmful.txt
workqueue.txt workqueue: add documentation 2010-09-13 10:26:52 +02:00
zorro.txt