semget on metag
get a System V semaphore set identifier
sys_semget(key_t key, int nsems, int semflg)
| number | 190 (0xbe) |
|---|---|
| abi | common |
| kconfig | CONFIG_SYSVIPC |
| family | sysvipc see the whole family on metag |
| entry point | sys_semget |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | semget(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 190, the syscall number |
D1Ar1 | key_t key |
D0Ar2 | int nsems |
D1Ar3 | int semflg |
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 64
- x86 393
- arm64 190
- arm 299
- riscv64 190
- ia32 393
- x32 1073741888
- loongarch64 190
- ppc64 393
- ppc 393
- s390x 393
- mips64 5062
- mipsn32 6062
- mipso32 4393
- alpha 205
- arc 190
- blackfin 332, removed in 4.17
- csky 190
- hexagon 190
- ia64 1106, removed in 6.7
- m68k 393
- microblaze 329
- nds32 190, removed in 5.18
- nios2 190
- openrisc 190
- parisc 186
- score 190, removed in 4.17
- sh 393
- sparc 393
- sparc64 393
- tilegx 190, removed in 4.17
- tilepro 190, removed in 4.17
- xtensa 162
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/semget?kernel=all