minix/lib/libsys/sys_schedule.c
Tomas Hruby 06b6e5624a SMP - Changed prototype of sys_schedule()
- sys_schedule can change only selected values, -1 means that the
  current value should be kept unchanged. For instance we mostly want
  to change the scheduling quantum and priority but we want to keep
  the process at the current cpu

- RS can hand off its processes to scheduler

- service can read the destination cpu from system.conf

- RS can pass the information farther
2010-09-15 14:10:42 +00:00

15 lines
296 B
C

#include "syslib.h"
PUBLIC 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));
}