syscall.sh / s390x / semctl

semctl

System V semaphore control operations

sys_semctl(int semid, int semnum, int cmd, unsigned long arg)
number394 (0x18a)
abicommon
entry pointsys_semctl
sinceLinux 5.1
man pagesemctl(2)
sourceelixir.bootlin.com

Registers

registervalue
r1394, the syscall number
r2int semid
r3int semnum
r4int cmd
r5unsigned long arg
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/s390x/semctl