syscall.sh / openrisc / ioctl

ioctl

control device

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

Registers

registervalue
r1129, the syscall number
r3unsigned int fd
r4unsigned int cmd
r5unsigned long arg
r11the return value

Then run l.sys 1 to enter the kernel.

Same syscall on other architectures

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