semget on score
get a System V semaphore set identifier
sys_semget(key_t key, int nsems, int semflg)
| number | 190 (0xbe) |
|---|---|
| abi | common |
| kconfig | CONFIG_SYSVIPC |
| family | sysvipc see the whole family on score |
| entry point | sys_semget |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | semget(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 190, the syscall number |
r4 | key_t key |
r5 | int nsems |
r6 | int semflg |
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 64
- x86 393
- arm64 190
- arm 299
- riscv64 190
- ia32 393
- x32 1073741888
- loongarch64 190
- ppc64 393
- ppc 393
- s390x 393
- mips64 5062
- mipsn32 6062
- mipso32 4393
- alpha 205
- arc 190
- blackfin 332, removed in 4.17
- csky 190
- hexagon 190
- ia64 1106, removed in 6.7
- m68k 393
- metag 190, removed in 4.17
- microblaze 329
- nds32 190, removed in 5.18
- nios2 190
- openrisc 190
- parisc 186
- sh 393
- sparc 393
- sparc64 393
- tilegx 190, removed in 4.17
- tilepro 190, removed in 4.17
- xtensa 162
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/semget?kernel=all