minix/lib/libsys/sys_schedctl.c
Lionel Sambuc 8ba159d242 Message type for SYS_SCHEDCTL
Change-Id: Iaccbac1ef99124bc494b835e0d0cf999ea2e3f5a
2014-07-28 17:05:42 +02:00

15 lines
371 B
C

#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));
}