syscall.sh / x64 / ioctl

ioctl

control device

sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
number16 (0x10)
abi64
entry pointsys_ioctl
sinceLinux 3.3
man pageioctl(2)
sourceelixir.bootlin.com

Registers

registervalue
rax16, the syscall number
rdiunsigned int fd
rsiunsigned int cmd
rdxunsigned long arg
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/ioctl