syscall.sh / nios2 / getpriority
getpriority
get/set program scheduling priority
sys_getpriority(int which, int who)
| number | 141 (0x8d) |
|---|---|
| abi | common |
| entry point | sys_getpriority |
| since | Linux 3.19 |
| man page | getpriority(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r2 | 141, the syscall number |
r4 | int which |
r5 | int who |
r2 | the return value |
Then run trap to enter the kernel.
Same syscall on other architectures
- x64 140
- x86 96
- arm64 141
- arm 96
- riscv64 141
- x32 1073741964
- loongarch64 141
- ppc64 96
- ppc 96
- s390x 96
- mips64 5137
- mipsn32 6137
- mipso32 4096
- alpha 100
- arc 141
- csky 141
- hexagon 141
- m68k 96
- microblaze 96
- openrisc 141
- parisc 96
- sh 96
- sparc 100
- sparc64 100
- xtensa 132
Get this as JSON: https://api.syscall.sh/v2/syscalls/nios2/getpriority