06b6e5624a
- 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
17 lines
339 B
C
17 lines
339 B
C
#include "syslib.h"
|
|
|
|
PUBLIC int sys_schedctl(unsigned flags,
|
|
endpoint_t proc_ep,
|
|
int priority,
|
|
int quantum,
|
|
int cpu)
|
|
{
|
|
message m;
|
|
|
|
m.SCHEDCTL_FLAGS = (int) flags;
|
|
m.SCHEDCTL_ENDPOINT = proc_ep;
|
|
m.SCHEDCTL_PRIORITY = priority;
|
|
m.SCHEDCTL_QUANTUM = quantum;
|
|
m.SCHEDCTL_CPU = cpu;
|
|
return(_kernel_call(SYS_SCHEDCTL, &m));
|
|
}
|