syscall.sh / x64 / semctl

semctl

System V semaphore control operations

sys_semctl(int semid, int semnum, int cmd, unsigned long arg)
number66 (0x42)
abicommon
entry pointsys_semctl
sinceLinux 3.3
man pagesemctl(2)
sourceelixir.bootlin.com

Registers

registervalue
rax66, the syscall number
rdiint semid
rsiint semnum
rdxint cmd
r10unsigned long arg
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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