shmget on loongarch64
allocates a System V shared memory segment
sys_shmget(key_t key, size_t size, int flag)
| number | 194 (0xc2) |
|---|---|
| abi | common |
| kconfig | CONFIG_SYSVIPC |
| family | sysvipc see the whole family on loongarch64 |
| entry point | sys_shmget |
| since | Linux 5.19 or earlier (5.19 is the first release scanned for loongarch64) |
| man page | shmget(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 194, the syscall number |
a0 | key_t key |
a1 | size_t size |
a2 | int flag |
a0 | the return value |
Then run syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 29
- x86 395
- arm64 194
- arm 307
- riscv64 194
- ia32 395
- x32 1073741853
- ppc64 395
- ppc 395
- s390x 395
- mips64 5028
- mipsn32 6028
- mipso32 4395
- alpha 212
- arc 194
- blackfin 341, removed in 4.17
- csky 194
- hexagon 194
- ia64 1113, removed in 6.7
- m68k 395
- metag 194, removed in 4.17
- microblaze 338
- nds32 194, removed in 5.18
- nios2 194
- openrisc 194
- parisc 194
- score 194, removed in 4.17
- sh 395
- sparc 395
- sparc64 395
- tilegx 194, removed in 4.17
- tilepro 194, removed in 4.17
- xtensa 92
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/shmget