syscall.sh / sh / setpriority

setpriority

get/set program scheduling priority

sys_setpriority(int which, int who, int niceval)
number97 (0x61)
abicommon
entry pointsys_setpriority
sinceLinux 5.0
man pagesetpriority(2)
sourceelixir.bootlin.com

Registers

registervalue
r397, the syscall number
r4int which
r5int who
r6int niceval
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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