]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: v4l2-mem2mem: Add a kref to the v4l2_m2m_dev structure
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 5 Dec 2025 01:54:24 +0000 (09:54 +0800)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 5 Jan 2026 14:56:31 +0000 (15:56 +0100)
commitdb6b97a4f8041e479be9ef4b8b07022636c96f50
tree410fd48a8f331a8a0f7887018411164785fe8e9e
parent3e92d7e4935084ecdbdc88880cc4688618ae1557
media: v4l2-mem2mem: Add a kref to the v4l2_m2m_dev structure

Adding a reference count to the v4l2_m2m_dev structure allow safely
sharing it across multiple hardware nodes. This can be used to prevent
running jobs concurrently on m2m cores that have some internal resource
sharing.

Signed-off-by: Ming Qian <ming.qian@oss.nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
[hverkuil: fix typos in v4l2_m2m_put documentation]
drivers/media/v4l2-core/v4l2-mem2mem.c
include/media/v4l2-mem2mem.h