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
kernel debug: priv can be NULL early on
[minix.git]
/
lib
/
libminlib
/
vm_set_priv.c
blob
ea286526a2a089c35f6aec357496c9bb099fd433
1
#include <lib.h>
2
#include <unistd.h>
3
4
int
vm_set_priv
(
int
nr
,
void
*
buf
)
5
{
6
message m
;
7
m
.
VM_RS_NR
=
nr
;
8
m
.
VM_RS_BUF
= (
long
)
buf
;
9
return
_syscall
(
VM_PROC_NR
,
VM_RS_SET_PRIV
, &
m
);
10
}
11