setpriority on arm64

get/set program scheduling priority

sys_setpriority(int which, int who, int niceval)
number140 (0x8c)
abicommon
entry pointsys_setpriority
sinceLinux 3.7 or earlier (3.7 is the first release scanned for arm64)
man pagesetpriority(2)
sourceelixir.bootlin.com

Registers

registervalue
x8140, the syscall number
x0int which
x1int who
x2int niceval
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

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