flock on ia32
apply or remove an advisory lock on an open file
sys_flock(unsigned int fd, unsigned int cmd)
| number | 143 (0x8f) |
|---|---|
| abi | i386 |
| entry point | sys_flock |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for ia32) |
| man page | flock(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 143, the syscall number |
ebx | unsigned int fd |
ecx | unsigned int cmd |
eax | the return value |
Then run int 0x80 to enter the kernel.
This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.
Same syscall on other architectures
- x64 73
- x86 143
- arm64 32
- arm 143
- riscv64 32
- x32 1073741897
- loongarch64 32
- ppc64 143
- ppc 143
- s390x 143
- mips64 5071
- mipsn32 6071
- mipso32 4143
- alpha 131
- arc 32
- csky 32
- hexagon 32
- m68k 143
- microblaze 143
- nios2 32
- openrisc 32
- parisc 143
- sh 143
- sparc 131
- sparc64 131
- xtensa 56
Get this as JSON: https://api.syscall.sh/v2/syscalls/ia32/flock