[{"id":35126,"web_url":"https://patchwork.libcamera.org/comment/35126/","msgid":"<0d856197d59845ee0e1fc69ae578e37be2fb33d6.camel@ideasonboard.com>","date":"2025-07-25T10:52:30","subject":"Re: [PATCH 2/9] include: linux: videodev2: Add BIND_CONTEXT","submitter":{"id":215,"url":"https://patchwork.libcamera.org/api/people/215/","name":"Isaac Scott","email":"isaac.scott@ideasonboard.com"},"content":"Hi Jacopo,\n\nOn Fri, 2025-07-25 at 12:33 +0200, Jacopo Mondi wrote:\n> Temporary update the media.h header from Linux kernel using the flags\n> introduced by:\n> https://patchwork.linuxtv.org/project/linux-media/patch/20250724-multicontext-mainline-2025-v2-6-c9b316773486@ideasonboard.com/\n> \n> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>\n> ---\n>  include/linux/videodev2.h | 10 ++++++++++\n>  1 file changed, 10 insertions(+)\n> \n> diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h\n> index\n> 317d063a7e2bf5c54b01b8c2328a1857dc2f6fc3..3025db045572a867b1da12b26da\n> 703a31d1dd453 100644\n> --- a/include/linux/videodev2.h\n> +++ b/include/linux/videodev2.h\n> @@ -1011,6 +1011,14 @@ struct v4l2_jpegcompression {\n>  \t\t\t\t\t* always use APP0 */\n>  };\n>  \n> +/*\n> + *     V I D E O   D E V I C E  C O N T E X T\n> + */\n> +\n> +struct v4l2_context {\n> +\t__u32 context_fd;\n> +};\n> +\n\nReviewed-by: Isaac Scott <isaac.scott@ideasonboard.com>\n\n>  /*\n>   *\tM E M O R Y - M A P P I N G   B U F F E R S\n>   */\n> @@ -2733,6 +2741,8 @@ struct v4l2_remove_buffers {\n>  #define VIDIOC_QUERY_EXT_CTRL\t_IOWR('V', 103, struct\n> v4l2_query_ext_ctrl)\n>  #define VIDIOC_REMOVE_BUFS\t_IOWR('V', 104, struct\n> v4l2_remove_buffers)\n>  \n> +/* Context handling */\n> +#define VIDIOC_BIND_CONTEXT\t_IOW('V', 105, struct v4l2_context)\n>  \n>  /* Reminder: when adding new ioctls please add support for them to\n>     drivers/media/v4l2-core/v4l2-compat-ioctl32.c as well! */","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 52EF5C3237\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 25 Jul 2025 10:52:34 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 0A132690BF;\n\tFri, 25 Jul 2025 12:52:34 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 23789690A6\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 25 Jul 2025 12:52:33 +0200 (CEST)","from isaac-ThinkPad-T16-Gen-2.lan\n\t(cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 6C162C0B;\n\tFri, 25 Jul 2025 12:51:53 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"SBiUwhFT\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1753440713;\n\tbh=utsGCXZOXjjkwO58c7qZkaEZopr0z5LsrEVPXGFajJI=;\n\th=Subject:From:To:Date:In-Reply-To:References:From;\n\tb=SBiUwhFTGIu6UIAMQSGZN4tut8HYZ7D218LXYKfM8VfSnKx9c19dmx8u6pBom/7BW\n\tbC/35CPz2qS7+ai2JNxaJ/97z7oAf560yAydMGZSF6Ii1ExSrOya3IUq0y6TrGEzGh\n\twlhOEqWkf7QOUrS9dm1BS1vJoSg03hjCZlL6cDlw=","Message-ID":"<0d856197d59845ee0e1fc69ae578e37be2fb33d6.camel@ideasonboard.com>","Subject":"Re: [PATCH 2/9] include: linux: videodev2: Add BIND_CONTEXT","From":"Isaac Scott <isaac.scott@ideasonboard.com>","To":"Jacopo Mondi <jacopo.mondi@ideasonboard.com>, \n\tlibcamera-devel@lists.libcamera.org","Date":"Fri, 25 Jul 2025 11:52:30 +0100","In-Reply-To":"<20250725-multicontext-v1-2-ea558291e101@ideasonboard.com>","References":"<20250725-multicontext-v1-0-ea558291e101@ideasonboard.com>\n\t<20250725-multicontext-v1-2-ea558291e101@ideasonboard.com>","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","User-Agent":"Evolution 3.56.2 (by Flathub.org) ","MIME-Version":"1.0","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}}]