syscall.sh / x86 / sched_getattr

sched_getattr

set and get scheduling policy and attributes

sys_sched_getattr(pid_t pid, struct sched_attr *attr, unsigned int size, unsigned int flags)
number352 (0x160)
abii386
entry pointsys_sched_getattr
sinceLinux 3.14
man pagesched_getattr(2)
sourceelixir.bootlin.com

Registers

registervalue
eax352, the syscall number
ebxpid_t pid
ecxstruct sched_attr *attr
edxunsigned int size
esiunsigned int flags
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

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