repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
VM: simplify slab allocator
[minix.git]
/
lib
/
libsys
/
sys_schedule.c
blob
40d5a1ea13adbd70b7e5a7d9cf5d5fbc50dadc40
1
#include
"syslib.h"
2
3
int
sys_schedule
(
endpoint_t proc_ep
,
4
int
priority
,
5
int
quantum
,
6
int
cpu
)
7
{
8
message m
;
9
10
m
.
SCHEDULING_ENDPOINT
=
proc_ep
;
11
m
.
SCHEDULING_PRIORITY
=
priority
;
12
m
.
SCHEDULING_QUANTUM
=
quantum
;
13
m
.
SCHEDULING_CPU
=
cpu
;
14
return
(
_kernel_call
(
SYS_SCHEDULE
, &
m
));
15
}