syscall.sh / loongarch64 / setresgid
setresgid
set real, effective, and saved user or group ID
sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid)
| number | 149 (0x95) |
|---|---|
| abi | common |
| entry point | sys_setresgid |
| since | Linux 5.19 |
| man page | setresgid(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 149, the syscall number |
a0 | gid_t rgid |
a1 | gid_t egid |
a2 | gid_t sgid |
a0 | the return value |
Then run syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 119
- x86 170
- arm64 149
- arm 170
- riscv64 149
- x32 1073741943
- ppc64 169
- ppc 169
- s390x 210
- mips64 5117
- mipsn32 6117
- mipso32 4190
- alpha 371
- arc 149
- csky 149
- hexagon 149
- m68k 170
- microblaze 170
- nios2 149
- openrisc 149
- parisc 170
- sh 170
- sparc64 110
- xtensa 146
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/setresgid