syscall.sh / xtensa / flock

flock

apply or remove an advisory lock on an open file

sys_flock(unsigned int fd, unsigned int cmd)
number56 (0x38)
abicommon
entry pointsys_flock
sinceLinux 5.0
man pageflock(2)
sourceelixir.bootlin.com

Registers

registervalue
a256, the syscall number
a6unsigned int fd
a3unsigned int cmd
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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