semctl on ia32
System V semaphore control operations
compat_sys_semctl(int semid, int semnum, int cmd, unsigned long arg)
| number | 394 (0x18a) |
|---|---|
| abi | i386 |
| kconfig | CONFIG_SYSVIPC |
| family | sysvipc |
| entry point | compat_sys_semctl |
| since | Linux 5.1 |
| man page | semctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 394, the syscall number |
ebx | int semid |
ecx | int semnum |
edx | int cmd |
esi | unsigned long arg |
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 66
- x86 394
- arm64 191
- arm 300
- riscv64 191
- x32 1073741890
- loongarch64 191
- ppc64 394
- ppc 394
- s390x 394
- mips64 5064
- mipsn32 6064
- mipso32 4394
- alpha 204
- arc 191
- csky 191
- hexagon 191
- m68k 394
- microblaze 328
- nios2 191
- openrisc 191
- parisc 187
- sh 394
- sparc 394
- sparc64 394
- xtensa 164
Get this as JSON: https://api.syscall.sh/v2/syscalls/ia32/semctl