syscall.sh / xtensa / shmctl
shmctl
System V shared memory control
sys_old_shmctl(int shmid, int cmd, struct shmid_ds *buf)
| number | 94 (0x5e) |
|---|---|
| abi | common |
| entry point | sys_old_shmctl |
| since | Linux 5.0 |
| man page | shmctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a2 | 94, the syscall number |
a6 | int shmid |
a3 | int cmd |
a4 | struct shmid_ds *buf |
a2 | 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
- 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
Get this as JSON: https://api.syscall.sh/v2/syscalls/xtensa/shmctl