← Architectures

Linux ioctl requests

How an ioctl request number is put together, a decoder for it, the magic numbers registered in the kernel documentation, and the terminal and socket commands.

Request-number layout

Back to top ↑

Request-number layout
FieldWidth in bitsPositionSource

Decode a request number

Back to top ↑

Hexadecimal with 0x, or decimal. The architecture selected above decides the layout.

Terminal and socket commands

Back to top ↑

Loading…

ioctl commands for the selected architecture
NameValueDefinitionGroupKernel commentSource

Registered magic numbers

Back to top ↑

Registered magic numbers
CodeSequenceInclude fileComments

About this data

Back to top ↑

Generated from Linux 7.3 only.

Source files and checksums

Updating from the kernel source

Regenerate from the kernel source:

python3 scripts/sync_abi.py --refs v7.3

# Or read an existing Linux checkout, without network access:
python3 scripts/sync_abi.py --refs v7.3 --kernel-tree /path/to/linux