syscall.sh / x64 / sched_setattr

sched_setattr

set and get scheduling policy and attributes

sys_sched_setattr(pid_t pid, struct sched_attr *attr, unsigned int flags)
number314 (0x13a)
abicommon
entry pointsys_sched_setattr
sinceLinux 3.14
man pagesched_setattr(2)
sourceelixir.bootlin.com

Registers

registervalue
rax314, the syscall number
rdipid_t pid
rsistruct sched_attr *attr
rdxunsigned int flags
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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