semop on loongarch64
System V semaphore operations
sys_semop(int semid, struct sembuf *sops, unsigned nsops)
| number | 193 (0xc1) |
|---|---|
| abi | common |
| kconfig | CONFIG_SYSVIPC |
| family | sysvipc see the whole family on loongarch64 |
| entry point | sys_semop |
| since | Linux 5.19 or earlier (5.19 is the first release scanned for loongarch64) |
| man page | semop(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 193, the syscall number |
a0 | int semid |
a1 | struct sembuf *sops |
a2 | unsigned nsops |
a0 | the return value |
Then run syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 65
- arm64 193
- arm 298
- riscv64 193
- x32 1073741889
- mips64 5063
- mipsn32 6063
- alpha 206
- arc 193
- blackfin 333, removed in 4.17
- csky 193
- hexagon 193
- ia64 1107, removed in 6.7
- metag 193, removed in 4.17
- microblaze 330
- nds32 193, removed in 5.18
- nios2 193
- openrisc 193
- parisc 185
- score 193, removed in 4.17
- tilegx 193, removed in 4.17
- tilepro 193, removed in 4.17
- xtensa 163
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/semop