syscall.sh / nios2 / ioctl

ioctl

control device

sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
number29 (0x1d)
abicommon
entry pointsys_ioctl
sinceLinux 3.19
man pageioctl(2)
sourceelixir.bootlin.com

Registers

registervalue
r229, the syscall number
r4unsigned int fd
r5unsigned int cmd
r6unsigned long arg
r2the return value

Then run trap to enter the kernel.

Same syscall on other architectures

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