WSL2-Linux-Kernel/drivers/media/v4l2-core
Laurent Pinchart 57cb848f00 media: v4l2-async: Add notifier operation to destroy asd instances
Drivers typically extend the v4l2_async_subdev structure by embedding it
in a driver-specific structure, to store per-subdev custom data. The
v4l2_async_subdev instances are freed by the v4l2-async framework, which
makes this mechanism cumbersome to use safely when custom data needs
special treatment to be destroyed (such as freeing additional memory, or
releasing references to kernel objects).

To ease this, add a .destroy() operation to the
v4l2_async_notifier_operations structure. The operation is called right
before the v4l2_async_subdev is freed, giving drivers a chance to
destroy data if needed.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-07-17 11:20:08 +01:00
..
Kconfig media: Replace dependency on VIDEO_V4L2_SUBDEV_API with select 2022-07-15 15:19:48 +01:00
Makefile media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
tuner-core.c media: v4l2: fix uninitialized value tuner_status(CWE-457) 2022-04-24 08:49:53 +01:00
v4l2-async.c media: v4l2-async: Add notifier operation to destroy asd instances 2022-07-17 11:20:08 +01:00
v4l2-common.c media: Add P010 tiled format 2022-07-17 10:58:06 +01:00
v4l2-compat-ioctl32.c
v4l2-ctrls-api.c media: v4l2-ctrls: add support for dynamically allocated arrays. 2022-07-15 16:20:53 +01:00
v4l2-ctrls-core.c media: uapi: HEVC: fix padding in v4l2 control structures 2022-07-15 17:36:58 +01:00
v4l2-ctrls-defs.c media: uapi: Add V4L2_CID_STATELESS_HEVC_ENTRY_POINT_OFFSETS control 2022-07-15 17:36:44 +01:00
v4l2-ctrls-priv.h media: v4l2-ctrls: add support for dynamically allocated arrays. 2022-07-15 16:20:53 +01:00
v4l2-ctrls-request.c media: v4l2-ctrls: add support for dynamically allocated arrays. 2022-07-15 16:20:53 +01:00
v4l2-dev.c
v4l2-device.c
v4l2-dv-timings.c
v4l2-event.c
v4l2-fh.c
v4l2-flash-led-class.c
v4l2-fwnode.c media: media/v4l2-core: Add enum V4L2_FWNODE_BUS_TYPE_DPI 2022-05-17 09:09:59 +02:00
v4l2-h264.c media: v4l2: Reorder field reflist 2022-05-17 10:03:11 +02:00
v4l2-i2c.c
v4l2-ioctl.c media: Add P010 tiled format 2022-07-17 10:58:06 +01:00
v4l2-jpeg.c
v4l2-mc.c
v4l2-mem2mem.c media: v4l2-mem2mem: prevent pollerr when last_buffer_dequeued is set 2022-06-27 09:10:36 +01:00
v4l2-spi.c
v4l2-subdev.c media: v4l2-subdev.c: kvmalloc_array -> kvcalloc 2022-05-13 11:02:22 +02:00
v4l2-trace.c
v4l2-vp9.c
videobuf-core.c
videobuf-dma-contig.c
videobuf-dma-sg.c
videobuf-vmalloc.c