semctl on metag
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 metag |
| entry point | sys_semctl |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | semctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 191, the syscall number |
D1Ar1 | int semid |
D0Ar2 | int semnum |
D1Ar3 | int cmd |
D0Ar4 | unsigned long arg |
D0Re0 | the return value |
Then run SWITCH #0x440001 to enter the kernel.
Values wider than one register are packed into consecutive arguments.
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
- blackfin 331, removed in 4.17
- csky 191
- hexagon 191
- ia64 1108, removed in 6.7
- m68k 394
- 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/metag/semctl?kernel=all