syscall.sh / s390x / fcntl

fcntl

manipulate file descriptor

sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
number55 (0x37)
abicommon
entry pointsys_fcntl
sinceLinux 4.16
man pagefcntl(2)
sourceelixir.bootlin.com

Registers

registervalue
r155, the syscall number
r2unsigned int fd
r3unsigned int cmd
r4unsigned long arg
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/s390x/fcntl