semctl on nds32
System V semaphore control operations
sys_semctl(int semid, int semnum, int cmd, unsigned long arg)
| number | 191 (0xbf) |
|---|---|
| abi | common |
| kconfig | CONFIG_SYSVIPC |
| family | sysvipc see the whole family on nds32 |
| entry point | sys_semctl |
| since | Linux 4.17 or earlier (4.17 is the first release scanned for nds32) |
| man page | semctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r15 | 191, the syscall number |
r0 | int semid |
r1 | int semnum |
r2 | int cmd |
r3 | unsigned long arg |
r0 | the return value |
Then run syscall to enter the kernel.
This architecture was removed from the Linux kernel in Linux 5.18. The newest release with a syscall table here is Linux 5.17. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 66
- x86 394
- arm64 191
- arm 300
- riscv64 191
- ia32 394
- x32 1073741890
- loongarch64 191
- ppc64 394
- ppc 394
- s390x 394
- mips64 5064
- mipsn32 6064
- mipso32 4394
- alpha 204
- arc 191
- blackfin 331, removed in 4.17
- csky 191
- hexagon 191
- ia64 1108, removed in 6.7
- m68k 394
- metag 191, removed in 4.17
- microblaze 328
- nios2 191
- openrisc 191
- parisc 187
- score 191, removed in 4.17
- sh 394
- sparc 394
- sparc64 394
- tilegx 191, removed in 4.17
- tilepro 191, removed in 4.17
- xtensa 164
Get this as JSON: https://api.syscall.sh/v2/syscalls/nds32/semctl?kernel=all