sched_getscheduler on riscv64

set and get scheduling policy/parameters

sys_sched_getscheduler(pid_t pid)
number120 (0x78)
abicommon
entry pointsys_sched_getscheduler
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pagesched_getscheduler(2)
sourceelixir.bootlin.com

Registers

registervalue
a7120, the syscall number
a0pid_t pid
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/sched_getscheduler