syscall.sh / x32 / flock

flock

apply or remove an advisory lock on an open file

sys_flock(unsigned int fd, unsigned int cmd)
number1073741897 (0x40000049)
abicommon
entry pointsys_flock
sinceLinux 3.4
man pageflock(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073741897, the syscall number
rdiunsigned int fd
rsiunsigned int cmd
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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