Documentation: Document user_events ioctl code
Subsystems (2)
PATCH 1/1 Documentation: Document user_events ioctl code
The user events trace subsystem uses the 0x2A/'*' code for ioctls. These are published via the uapi/linux/user_events.h header file.
Add a line indicating user events as the owner of the 0x2A/'*' code and the current sequence numbers that are in use (00-02).
--- Documentation/userspace-api/ioctl/ioctl-number.rst | 2 ++ 1 file changed, 2 insertions(+)
Documentation/userspace-api/ioctl/ioctl-number.rst +2 -0
@@ -97,6 +97,8 @@ Code Seq# Include File Comments '%' 00-0F include/uapi/linux/stm.h System Trace Module subsystem <mailto:[email protected]> '&' 00-07 drivers/firewire/nosy-user.h +'*' 00-02 uapi/linux/user_events.h User Events Subsystem + <mailto:[email protected]> '1' 00-1F linux/timepps.h PPS kit from Ulrich Windl <ftp://ftp.de.kernel.org/pub/linux/daemons/ntp/PPS/> '2' 01-04 linux/i2o.h
Signature · 1 line
2.34.1
Mathieu Desnoyers
reviewerQuoted 16 lines · Beau Belgrave
The user events trace subsystem uses the 0x2A/'*' code for ioctls. These are published via the
uapi/linux/user_events.hheader file.Add a line indicating user events as the owner of the 0x2A/'*' code and the current sequence numbers that are in use (00-02).
Signed-off-by Beau Belgrave <[email protected]>--- Documentation/userspace-api/ioctl/ioctl-number.rst | 2 ++ 1 file changed, 2 insertions(+)Documentation/userspace-api/ioctl/ioctl-number.rst +0
-0
Documentation/userspace-api/ioctl/ioctl-number.rst Code Seq# Include File Comments · line 100
Quoted 4 lines
Documentation/userspace-api/ioctl/ioctl-number.rst +1
-0@@ -97,6 +97,8 @@ Code Seq# Include File Comments '%' 00-0F include/uapi/linux/stm.h System Trace Module subsystem <mailto:[email protected]> '&' 00-07 drivers/firewire/nosy-user.h +'*' 00-02 uapi/linux/user_events.h User Events Subsystem
You may want to consider reserving a wider sequence number range to plan ahead for future extensions to user events. This way you won't end up having to jump over sequence numbers eventually reserved by others within the '*' code.
Thanks,
Mathieu
Quoted 7 lines
Documentation/userspace-api/ioctl/ioctl-number.rst +1
-0+ <mailto:[email protected]> '1' 00-1F linux/timepps.h PPS kit from Ulrich Windl <ftp://ftp.de.kernel.org/pub/linux/daemons/ntp/PPS/> '2' 01-04 linux/i2o.hSignature · 1 line
2.34.1
Signature · 3 lines
Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com
Quoted 27 lines · Mathieu Desnoyers
Quoted 16 lines · Beau Belgrave
The user events trace subsystem uses the 0x2A/'*' code for ioctls. These are published via the
uapi/linux/user_events.hheader file.Add a line indicating user events as the owner of the 0x2A/'*' code and the current sequence numbers that are in use (00-02).
Signed-off-by Beau Belgrave <[email protected]>--- Documentation/userspace-api/ioctl/ioctl-number.rst | 2 ++ 1 file changed, 2 insertions(+)Documentation/userspace-api/ioctl/ioctl-number.rst +0
-0Documentation/userspace-api/ioctl/ioctl-number.rst Code Seq# Include File Comments · line 100
Quoted 4 lines
Documentation/userspace-api/ioctl/ioctl-number.rst +1
-0@@ -97,6 +97,8 @@ Code Seq# Include File Comments '%' 00-0F include/uapi/linux/stm.h System Trace Module subsystem <mailto:[email protected]> '&' 00-07 drivers/firewire/nosy-user.h +'*' 00-02 uapi/linux/user_events.h User Events SubsystemYou may want to consider reserving a wider sequence number range to plan ahead for future extensions to user events. This way you won't end up having to jump over sequence numbers eventually reserved by others within the '*' code.
Quoted 3 lines
Thanks,
Mathieu
Yeah, I thought about that, but really didn't know how greedy we could be. At first I had all, but then thought we would never use all of that sequence. We'll likely want a few more for libside integration.
Maybe I'll grab the first 16, that should leave a lot for others and give us quite bit of growing room.
How many do you think we'll need for libside? I think we'd only need 2-3 personally.
Thanks,
-Beau
Quoted 14 lines
Quoted 9 lines
Documentation/userspace-api/ioctl/ioctl-number.rst +1
-0+ <mailto:[email protected]> '1' 00-1F linux/timepps.h PPS kit from Ulrich Windl <ftp://ftp.de.kernel.org/pub/linux/daemons/ntp/PPS/> '2' 01-04 linux/i2o.hSignature · 1 line
2.34.1Signature · 3 lines
Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com
Masami Hiramatsu (Google)
maintainerQuoted 30 lines · On Wed, 3 Jul 2024 16:13:43 -0700 Beau Belgrave <[email protected]>…
Quoted 29 lines · Mathieu Desnoyers
Quoted 16 lines · Beau Belgrave
The user events trace subsystem uses the 0x2A/'*' code for ioctls. These are published via the
uapi/linux/user_events.hheader file.Add a line indicating user events as the owner of the 0x2A/'*' code and the current sequence numbers that are in use (00-02).
Signed-off-by Beau Belgrave <[email protected]>--- Documentation/userspace-api/ioctl/ioctl-number.rst | 2 ++ 1 file changed, 2 insertions(+)Documentation/userspace-api/ioctl/ioctl-number.rst +0
-0Documentation/userspace-api/ioctl/ioctl-number.rst Code Seq# Include File Comments · line 100
Quoted 4 lines
Documentation/userspace-api/ioctl/ioctl-number.rst +1
-0@@ -97,6 +97,8 @@ Code Seq# Include File Comments '%' 00-0F include/uapi/linux/stm.h System Trace Module subsystem <mailto:[email protected]> '&' 00-07 drivers/firewire/nosy-user.h +'*' 00-02 uapi/linux/user_events.h User Events SubsystemYou may want to consider reserving a wider sequence number range to plan ahead for future extensions to user events. This way you won't end up having to jump over sequence numbers eventually reserved by others within the '*' code.
Thanks,
Quoted 8 lines
Quoted 1 line
Mathieu
Yeah, I thought about that, but really didn't know how greedy we could be. At first I had all, but then thought we would never use all of that sequence. We'll likely want a few more for libside integration.
Maybe I'll grab the first 16, that should leave a lot for others and give us quite bit of growing room.
I think that sounds reasonable, there is a sentence in the same file:
----
If you are writing a driver for a new device and need a letter, pick an unused block with enough room for expansion: 32 to 256 ioctl commands.
----
Maybe you can reserve a block for 32 ioctl.
Thank you,
Quoted 21 lines
How many do you think we'll need for libside? I think we'd only need 2-3 personally.
Thanks,
-BeauQuoted 14 lines
Quoted 9 lines
Documentation/userspace-api/ioctl/ioctl-number.rst +1
-0+ <mailto:[email protected]> '1' 00-1F linux/timepps.h PPS kit from Ulrich Windl <ftp://ftp.de.kernel.org/pub/linux/daemons/ntp/PPS/> '2' 01-04 linux/i2o.hSignature · 1 line
2.34.1Signature · 3 lines
Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com
Signature · 1 line
Masami Hiramatsu (Google) <[email protected]>