linux/drivers/media
Hans Verkuil bedf8bcf6b [media] v4l2-device: add kref and a release function
The video_device struct has proper ref counting and its release function
will be called when the last user releases it. But no such support was
available for struct v4l2_device. This made it hard to determine when a
USB driver can release the device if it has multiple device nodes.

With one device node it is easy of course, since when the device node is
released, the whole device can be released.

This patch adds refcounting to v4l2_device. When registering device nodes
the v4l2_device refcount will be increased, when releasing device nodes
it will be decreased. The (optional) release function will be called when
the last device node was released.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-03-22 16:38:05 -03:00
..
common [media] tuner-xc2028.c: fix compile warning 2011-03-22 04:53:58 -03:00
dvb [media] stv0367: typo in function parameter 2011-03-22 16:37:51 -03:00
radio [media] v4l2-ioctl: add priority handling support 2011-03-22 16:37:59 -03:00
rc [media] Change to 32 bit and add other remote controls for lme2510 2011-03-22 16:37:48 -03:00
video [media] v4l2-device: add kref and a release function 2011-03-22 16:38:05 -03:00
Kconfig [media] v4l: Create v4l2 subdev file handle structure 2011-03-22 04:53:26 -03:00
Makefile [media] media: Entities, pads and links 2011-03-22 04:53:10 -03:00
media-device.c [media] media: Links setup 2011-03-22 04:53:16 -03:00
media-devnode.c [media] media: Media device node support 2011-03-22 04:52:22 -03:00
media-entity.c [media] media: Pipelines and media streams 2011-03-22 04:53:17 -03:00