minix/lib/libsys/sys_schedule.c
Lionel Sambuc b694a09a53 Message type for SCHEDULING_NO_QUANTUM, SYS_SCHEDULE
Change-Id: Ia0f2689067159b4d821092d4ac60efa75e396f7c
2014-07-28 17:05:42 +02:00

15 lines
325 B
C

#include "syslib.h"
int sys_schedule(endpoint_t proc_ep,
int priority,
int quantum,
int cpu)
{
message m;
m.m_lsys_krn_schedule.endpoint = proc_ep;
m.m_lsys_krn_schedule.priority = priority;
m.m_lsys_krn_schedule.quantum = quantum;
m.m_lsys_krn_schedule.cpu = cpu;
return(_kernel_call(SYS_SCHEDULE, &m));
}