semctl on blackfin
System V semaphore control operations
sys_semctl(int semid, int semnum, int cmd, unsigned long arg)
| number | 331 (0x14b) |
|---|---|
| abi | common |
| kconfig | CONFIG_SYSVIPC |
| family | sysvipc see the whole family on blackfin |
| entry point | sys_semctl |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for blackfin) |
| man page | semctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
P0 | 331, the syscall number |
R0 | int semid |
R1 | int semnum |
R2 | int cmd |
R3 | unsigned long arg |
R0 | the return value |
Then run excpt 0 to enter the kernel.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. 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
- csky 191
- hexagon 191
- ia64 1108, removed in 6.7
- m68k 394
- metag 191, removed in 4.17
- microblaze 328
- nds32 191, removed in 5.18
- 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/blackfin/semctl?kernel=all