syscall.sh / x86 / flock

flock

apply or remove an advisory lock on an open file

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

Registers

registervalue
eax143, the syscall number
ebxunsigned int fd
ecxunsigned int cmd
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

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