shmctl on loongarch64
System V shared memory control
sys_shmctl(int shmid, int cmd, struct shmid_ds *buf)
| number | 195 (0xc3) |
|---|---|
| abi | common |
| kconfig | CONFIG_SYSVIPC |
| family | sysvipc see the whole family on loongarch64 |
| entry point | sys_shmctl |
| since | Linux 5.19 or earlier (5.19 is the first release scanned for loongarch64) |
| man page | shmctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 195, the syscall number |
a0 | int shmid |
a1 | int cmd |
a2 | struct shmid_ds *buf |
a0 | the return value |
Then run syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 31
- x86 396
- arm64 195
- arm 308
- riscv64 195
- ia32 396
- x32 1073741855
- ppc64 396
- ppc 396
- s390x 396
- mips64 5030
- mipsn32 6030
- mipso32 4396
- alpha 210
- arc 195
- blackfin 339, removed in 4.17
- csky 195
- hexagon 195
- ia64 1116, removed in 6.7
- m68k 396
- metag 195, removed in 4.17
- microblaze 336
- nds32 195, removed in 5.18
- nios2 195
- openrisc 195
- parisc 195
- score 195, removed in 4.17
- sh 396
- sparc 396
- sparc64 396
- tilegx 195, removed in 4.17
- tilepro 195, removed in 4.17
- xtensa 94
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/shmctl