setpriority on score
get/set program scheduling priority
sys_setpriority(int which, int who, int niceval)
| number | 140 (0x8c) |
|---|---|
| abi | common |
| entry point | sys_setpriority |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | setpriority(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 140, the syscall number |
r4 | int which |
r5 | int who |
r6 | int niceval |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
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 141
- x86 97
- arm64 140
- arm 97
- riscv64 140
- ia32 97
- x32 1073741965
- loongarch64 140
- ppc64 97
- ppc 97
- s390x 97
- mips64 5138
- mipsn32 6138
- mipso32 4097
- alpha 96
- arc 140
- blackfin 97, removed in 4.17
- cris 97, removed in 4.17
- csky 140
- frv 97, removed in 4.17
- hexagon 140
- ia64 1102, removed in 6.7
- m32r 97, removed in 4.17
- m68k 97
- metag 140, removed in 4.17
- microblaze 97
- mn10300 97, removed in 4.17
- nds32 140, removed in 5.18
- nios2 140
- openrisc 140
- parisc 97
- sh 97
- sparc 96
- sparc64 96
- tilegx 140, removed in 4.17
- tilepro 140, removed in 4.17
- xtensa 133
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/setpriority?kernel=all