semtimedop on riscv64
System V semaphore operations
sys_semtimedop(int semid, struct sembuf *sops, unsigned nsops, const struct __kernel_timespec *timeout)
| number | 192 (0xc0) |
|---|---|
| abi | 64 |
| kconfig | CONFIG_SYSVIPC |
| family | sysvipc see the whole family on riscv64 |
| entry point | sys_semtimedop |
| since | Linux 4.15 or earlier (4.15 is the first release scanned for riscv64) |
| man page | semtimedop(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 192, the syscall number |
a0 | int semid |
a1 | struct sembuf *sops |
a2 | unsigned nsops |
a3 | const struct __kernel_timespec *timeout |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 220
- arm64 192
- arm 312
- x32 1073742044
- loongarch64 192
- ppc64 392
- s390x 392
- mips64 5214
- mipsn32 6215
- alpha 423
- arc 192
- blackfin 357, removed in 4.17
- csky 192
- hexagon 192
- ia64 1247, removed in 6.7
- metag 192, removed in 4.17
- microblaze 325
- nds32 192, removed in 5.18
- nios2 192
- openrisc 192
- parisc 228
- score 192, removed in 4.17
- sparc64 392
- tilegx 192, removed in 4.17
- tilepro 192, removed in 4.17
- xtensa 161
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/semtimedop