syscall.sh / xtensa / setpriority
setpriority
get/set program scheduling priority
sys_setpriority(int which, int who, int niceval)
| number | 133 (0x85) |
|---|---|
| abi | common |
| entry point | sys_setpriority |
| since | Linux 5.0 |
| man page | setpriority(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a2 | 133, the syscall number |
a6 | int which |
a3 | int who |
a4 | int niceval |
a2 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 141
- x86 97
- arm64 140
- arm 97
- riscv64 140
- x32 1073741965
- loongarch64 140
- 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
Get this as JSON: https://api.syscall.sh/v2/syscalls/xtensa/setpriority