syscall.sh / loongarch64 / semget
semget
get a System V semaphore set identifier
sys_semget(key_t key, int nsems, int semflg)
| number | 190 (0xbe) |
|---|---|
| abi | common |
| entry point | sys_semget |
| since | Linux 5.19 |
| man page | semget(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 190, the syscall number |
a0 | key_t key |
a1 | int nsems |
a2 | int semflg |
a0 | the return value |
Then run syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 64
- x86 393
- arm64 190
- arm 299
- riscv64 190
- x32 1073741888
- ppc64 393
- ppc 393
- s390x 393
- mips64 5062
- mipsn32 6062
- mipso32 4393
- alpha 205
- arc 190
- csky 190
- hexagon 190
- m68k 393
- microblaze 329
- nios2 190
- openrisc 190
- parisc 186
- sh 393
- sparc 393
- sparc64 393
- xtensa 162
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/semget