minix/lib/libsys/sys_schedule.c
2012-03-25 21:58:14 +02:00

15 lines
289 B
C

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