setgid on metag
set group identity
sys_setgid(gid_t gid)
| number | 144 (0x90) |
|---|---|
| abi | common |
| entry point | sys_setgid |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | setgid(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 144, the syscall number |
D1Ar1 | gid_t gid |
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 106
- x86 46
- arm64 144
- arm 46
- riscv64 144
- ia32 46
- x32 1073741930
- loongarch64 144
- ppc64 46
- ppc 46
- s390x 214
- mips64 5104
- mipsn32 6104
- mipso32 4046
- alpha 132
- arc 144
- blackfin 46, removed in 4.17
- cris 46, removed in 4.17
- csky 144
- frv 46, removed in 4.17
- hexagon 144
- ia64 1061, removed in 6.7
- m68k 46
- microblaze 46
- mn10300 46, removed in 4.17
- nds32 144, removed in 5.18
- nios2 144
- openrisc 144
- parisc 46
- score 144, removed in 4.17
- sh 46
- sparc 46
- sparc64 46
- tilegx 144, removed in 4.17
- tilepro 144, removed in 4.17
- xtensa 138
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/setgid?kernel=all