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
custom message type for VM_INFO
[minix3.git]
/
lib
/
libsys
/
vm_set_priv.c
blob
ae105e407f47c72bf9fbb20489a95ca74f5df690
1
#include
"syslib.h"
2
3
#include <unistd.h>
4
#include <string.h>
5
6
int
7
vm_set_priv
(
endpoint_t ep
,
void
*
buf
,
int
sys_proc
)
8
{
9
message m
;
10
11
memset
(&
m
,
0
,
sizeof
(
m
));
12
m
.
VM_RS_NR
=
ep
;
13
m
.
VM_RS_BUF
= (
long
)
buf
;
14
m
.
VM_RS_SYS
=
sys_proc
;
15
16
return
_taskcall
(
VM_PROC_NR
,
VM_RS_SET_PRIV
, &
m
);
17
}