[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250527055648.503884-3-sakari.ailus@linux.intel.com>
Date: Tue, 27 May 2025 08:56:47 +0300
From: Sakari Ailus <sakari.ailus@...ux.intel.com>
To: linux-doc@...r.kernel.org
Cc: Jonathan Corbet <corbet@....net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Madhavan Srinivasan <maddy@...ux.ibm.com>,
Haren Myneni <haren@...ux.ibm.com>,
Bagas Sanjaya <bagasdotme@...il.com>,
Andrew Donnellan <ajd@...ux.ibm.com>,
Michael Ellerman <mpe@...erman.id.au>,
Akshay Gupta <akshay.gupta@....com>,
linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org,
hans@...erkuil.nl,
laurent.pinchart@...asonboard.com,
Mauro Carvalho Chehab <mchehab+huawei@...nel.org>,
Lee Jones <lee@...nel.org>
Subject: [PATCH v2 2/3] media: uapi: Document IOCTL number assignment
Document MC IOCTL number assignment in linux/media.h. In the past the
assignment up to 0x7f was missed so to prevent that from happening again,
document the value here as well.
Signed-off-by: Sakari Ailus <sakari.ailus@...ux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@...asonboard.com>
---
include/uapi/linux/media.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h
index 1c80b1d6bbaf..2808132fcf49 100644
--- a/include/uapi/linux/media.h
+++ b/include/uapi/linux/media.h
@@ -381,6 +381,10 @@ struct media_v2_topology {
*/
#define MEDIA_REQUEST_IOC_QUEUE _IO('|', 0x80)
#define MEDIA_REQUEST_IOC_REINIT _IO('|', 0x81)
+/*
+ * Don't allocate new IOCTL numbers past 0x8f, MC IOCTL number assignment ends
+ * there!
+ */
#ifndef __KERNEL__
--
2.39.5
Powered by blists - more mailing lists