syscall.sh / riscv64 / setpriority

setpriority

get/set program scheduling priority

sys_setpriority(int which, int who, int niceval)
number140 (0x8c)
abicommon
entry pointsys_setpriority
sinceLinux 4.15
man pagesetpriority(2)
sourceelixir.bootlin.com

Registers

registervalue
a7140, the syscall number
a0int which
a1int who
a2int niceval
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/setpriority