syscall.sh / arc / sched_getscheduler
sched_getscheduler
set and get scheduling policy/parameters
sys_sched_getscheduler(pid_t pid)
| number | 120 (0x78) |
|---|---|
| abi | common |
| entry point | sys_sched_getscheduler |
| since | Linux 3.9 |
| man page | sched_getscheduler(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r8 | 120, the syscall number |
r0 | pid_t pid |
r0 | the return value |
Then run trap0 to enter the kernel.
Same syscall on other architectures
- x64 145
- x86 157
- arm64 120
- arm 157
- riscv64 120
- x32 1073741969
- loongarch64 120
- ppc64 157
- ppc 157
- s390x 157
- mips64 5142
- mipsn32 6142
- mipso32 4161
- alpha 333
- csky 120
- hexagon 120
- m68k 157
- microblaze 157
- nios2 120
- openrisc 120
- parisc 157
- sh 157
- sparc 244
- sparc64 244
- xtensa 215
Get this as JSON: https://api.syscall.sh/v2/syscalls/arc/sched_getscheduler