sched_get_priority_min on x64
get static priority range
sys_sched_get_priority_min(int policy)
| number | 147 (0x93) |
|---|---|
| abi | common |
| entry point | sys_sched_get_priority_min |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for x64) |
| man page | sched_get_priority_min(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 147, the syscall number |
rdi | int policy |
rax | the return value |
Then run syscall to enter the kernel.
The syscall instruction clobbers rcx (the return address lands in rcx) and r11 (the flags land in r11).
Since Linux 5.14 the kernel reads the syscall number from eax and ignores the upper 32 bits of rax. Older kernels fail with ENOSYS when those bits are not zero, and mov eax, N clears them, so it works on both.
Same syscall on other architectures
- x86 160
- arm64 126
- arm 160
- riscv64 126
- ia32 160
- x32 1073741971
- loongarch64 126
- ppc64 160
- ppc 160
- s390x 160
- mips64 5144
- mipsn32 6144
- mipso32 4164
- alpha 336
- arc 126
- blackfin 160, removed in 4.17
- cris 160, removed in 4.17
- csky 126
- frv 160, removed in 4.17
- hexagon 126
- ia64 1166, removed in 6.7
- m32r 160, removed in 4.17
- m68k 160
- metag 126, removed in 4.17
- microblaze 160
- mn10300 160, removed in 4.17
- nds32 126, removed in 5.18
- nios2 126
- openrisc 126
- parisc 160
- score 126, removed in 4.17
- sh 160
- sparc 247
- sparc64 247
- tilegx 126, removed in 4.17
- tilepro 126, removed in 4.17
- xtensa 217
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/sched_get_priority_min