shmget on score
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 score |
| entry point | sys_shmget |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | shmget(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 194, the syscall number |
r4 | key_t key |
r5 | size_t size |
r6 | int flag |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 29
- x86 395
- arm64 194
- arm 307
- riscv64 194
- ia32 395
- x32 1073741853
- loongarch64 194
- 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
- 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/score/shmget?kernel=all