syscall.sh / s390x / flock

flock

apply or remove an advisory lock on an open file

sys_flock(unsigned int fd, unsigned int cmd)
number143 (0x8f)
abicommon
entry pointsys_flock
sinceLinux 4.16
man pageflock(2)
sourceelixir.bootlin.com

Registers

registervalue
r1143, the syscall number
r2unsigned int fd
r3unsigned int cmd
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/flock