syscall.sh / csky / getpriority
getpriority
get/set program scheduling priority
sys_getpriority(int which, int who)
| number | 141 (0x8d) |
|---|---|
| abi | common |
| entry point | sys_getpriority |
| since | Linux 4.20 |
| man page | getpriority(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r7 | 141, the syscall number |
a0 | int which |
a1 | int who |
a0 | the return value |
Then run trap 0 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
- hexagon 141
- m68k 96
- microblaze 96
- nios2 141
- openrisc 141
- parisc 96
- sh 96
- sparc 100
- sparc64 100
- xtensa 132
Get this as JSON: https://api.syscall.sh/v2/syscalls/csky/getpriority