syscall.sh / riscv64 / semop

semop

System V semaphore operations

sys_semop(int semid, struct sembuf *sops, unsigned nsops)
number193 (0xc1)
abicommon
entry pointsys_semop
sinceLinux 4.15
man pagesemop(2)
sourceelixir.bootlin.com

Registers

registervalue
a7193, the syscall number
a0int semid
a1struct sembuf *sops
a2unsigned nsops
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/semop