syscall.sh / x86 / shmctl
shmctl
System V shared memory control
sys_shmctl(int shmid, int cmd, struct shmid_ds *buf)
| number | 396 (0x18c) |
|---|---|
| abi | i386 |
| entry point | sys_shmctl |
| since | Linux 5.1 |
| man page | shmctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 396, the syscall number |
ebx | int shmid |
ecx | int cmd |
edx | struct shmid_ds *buf |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 31
- arm64 195
- arm 308
- riscv64 195
- x32 1073741855
- loongarch64 195
- ppc64 396
- ppc 396
- s390x 396
- mips64 5030
- mipsn32 6030
- mipso32 4396
- alpha 210
- arc 195
- csky 195
- hexagon 195
- m68k 396
- microblaze 336
- nios2 195
- openrisc 195
- parisc 195
- sh 396
- sparc 396
- sparc64 396
- xtensa 94
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/shmctl