syscall.sh / x32 / shmctl
shmctl
System V shared memory control
sys_shmctl(int shmid, int cmd, struct shmid_ds *buf)
| number | 1073741855 (0x4000001f) |
|---|---|
| abi | common |
| entry point | sys_shmctl |
| since | Linux 3.4 |
| man page | shmctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073741855, the syscall number |
rdi | int shmid |
rsi | int cmd |
rdx | struct shmid_ds *buf |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 31
- x86 396
- arm64 195
- arm 308
- riscv64 195
- 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/x32/shmctl