From 4565f34764585254b24eb7eb03d717a9000c7a03 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Wed, 31 Jul 2024 15:39:33 +0200 Subject: videodev2: Add BIND_CONTEXT Signed-off-by: Jacopo Mondi --- include/linux/videodev2.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 7fe522e8..733509e5 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h @@ -995,6 +995,14 @@ struct v4l2_jpegcompression { * always use APP0 */ }; +/* + * V I D E O D E V I C E C O N T E X T + */ + +struct v4l2_context { + __u64 context_fd; +}; + /* * M E M O R Y - M A P P I N G B U F F E R S */ @@ -2717,6 +2725,8 @@ struct v4l2_remove_buffers { #define VIDIOC_QUERY_EXT_CTRL _IOWR('V', 103, struct v4l2_query_ext_ctrl) #define VIDIOC_REMOVE_BUFS _IOWR('V', 104, struct v4l2_remove_buffers) +/* Context handling */ +#define VIDIOC_BIND_CONTEXT _IOW('V', 104, struct v4l2_context) /* Reminder: when adding new ioctls please add support for them to drivers/media/v4l2-core/v4l2-compat-ioctl32.c as well! */ -- cgit v1.2.1