syscall.sh / loongarch64 / setpriority
setpriority
get/set program scheduling priority
sys_setpriority(int which, int who, int niceval)
| number | 140 (0x8c) |
|---|---|
| abi | common |
| entry point | sys_setpriority |
| since | Linux 5.19 |
| man page | setpriority(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 140, the syscall number |
a0 | int which |
a1 | int who |
a2 | int niceval |
a0 | the return value |
Then run syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 141
- x86 97
- arm64 140
- arm 97
- riscv64 140
- x32 1073741965
- ppc64 97
- ppc 97
- s390x 97
- mips64 5138
- mipsn32 6138
- mipso32 4097
- alpha 96
- arc 140
- csky 140
- hexagon 140
- m68k 97
- microblaze 97
- nios2 140
- openrisc 140
- parisc 97
- sh 97
- sparc 96
- sparc64 96
- xtensa 133
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/setpriority