syscall.sh / sparc64 / 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
g1394, the syscall number
o0int semid
o1int semnum
o2int cmd
o3unsigned long arg
o0the return value

Then run t 0x6d to enter the kernel.

Same syscall on other architectures

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