syscall.sh / openrisc / flock

flock

apply or remove an advisory lock on an open file

sys_flock(unsigned int fd, unsigned int cmd)
number32 (0x20)
abicommon
entry pointsys_flock
sinceLinux 3.7
man pageflock(2)
sourceelixir.bootlin.com

Registers

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