syscall.sh / x86 / getpriority
getpriority
get/set program scheduling priority
sys_getpriority(int which, int who)
| number | 96 (0x60) |
|---|---|
| abi | i386 |
| entry point | sys_getpriority |
| since | Linux 3.3 |
| man page | getpriority(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 96, the syscall number |
ebx | int which |
ecx | int who |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 140
- 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
- nios2 141
- openrisc 141
- parisc 96
- sh 96
- sparc 100
- sparc64 100
- xtensa 132
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/getpriority