sched_getattr on ia32

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.

This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.

Same syscall on other architectures

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