syscall.sh / xtensa / ioctl

ioctl

control device

sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
number66 (0x42)
abicommon
entry pointsys_ioctl
sinceLinux 5.0
man pageioctl(2)
sourceelixir.bootlin.com

Registers

registervalue
a266, the syscall number
a6unsigned int fd
a3unsigned int cmd
a4unsigned long arg
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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