syscall.sh / alpha / shmctl
shmctl
System V shared memory control
sys_old_shmctl(int shmid, int cmd, struct shmid_ds *buf)
| number | 210 (0xd2) |
|---|---|
| abi | common |
| entry point | sys_old_shmctl |
| since | Linux 5.0 |
| man page | shmctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 210, the syscall number |
a0 | int shmid |
a1 | int cmd |
a2 | struct shmid_ds *buf |
v0 | the return value |
Then run callsys to enter the kernel.
Same syscall on other architectures
- x64 31
- x86 396
- arm64 195
- arm 308
- riscv64 195
- x32 1073741855
- loongarch64 195
- ppc64 396
- ppc 396
- s390x 396
- mips64 5030
- mipsn32 6030
- mipso32 4396
- 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/alpha/shmctl