repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
make vfs & filesystems use failable copying
[minix3.git]
/
lib
/
libsys
/
sys_schedctl.c
blob
97ff4832c18648a64e5f60d52afa940e5d221b5b
1
#include
"syslib.h"
2
3
int
sys_schedctl
(
unsigned
flags
,
4
endpoint_t proc_ep
,
5
int
priority
,
6
int
quantum
,
7
int
cpu
)
8
{
9
message m
;
10
11
m
.
SCHEDCTL_FLAGS
= (
int
)
flags
;
12
m
.
SCHEDCTL_ENDPOINT
=
proc_ep
;
13
m
.
SCHEDCTL_PRIORITY
=
priority
;
14
m
.
SCHEDCTL_QUANTUM
=
quantum
;
15
m
.
SCHEDCTL_CPU
=
cpu
;
16
return
(
_kernel_call
(
SYS_SCHEDCTL
, &
m
));
17
}