syscall.sh / parisc / 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 5.0
man pageflock(2)
sourceelixir.bootlin.com

Registers

registervalue
r20143, the syscall number
r26unsigned int fd
r25unsigned int cmd
r28the return value

Then run ble 0x100(%sr2, %r0) to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/flock