minix3/lib/libsys/sys_schedctl.c

16 lines
371 B
C
Raw Normal View History

2020-02-21 00:59:27 +05:30
#include "syslib.h"
int sys_schedctl(uint32_t flags, endpoint_t proc_ep, int priority, int quantum,
int cpu)
{
message m;
m.m_lsys_krn_schedctl.flags = flags;
m.m_lsys_krn_schedctl.endpoint = proc_ep;
m.m_lsys_krn_schedctl.priority = priority;
m.m_lsys_krn_schedctl.quantum = quantum;
m.m_lsys_krn_schedctl.cpu = cpu;
return(_kernel_call(SYS_SCHEDCTL, &m));
}