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: full munmap
[minix.git]
/
lib
/
libsys
/
sys_sysctl.c
blob
443a9cc9783aec4fa5a676c1f7f78ebe90261e0d
1
2
#include
"syslib.h"
3
4
int
sys_sysctl
(
int
code
,
char
*
arg1
,
int
arg2
)
5
{
6
message m
;
7
8
m
.
SYSCTL_CODE
=
code
;
9
m
.
SYSCTL_ARG1
=
arg1
;
10
m
.
SYSCTL_ARG2
=
arg2
;
11
12
return
(
_kernel_call
(
SYS_SYSCTL
, &
m
));
13
14
}
15
16
int
sys_sysctl_stacktrace
(
endpoint_t ep
)
17
{
18
return
sys_sysctl
(
SYSCTL_CODE_STACKTRACE
,
NULL
,
ep
);
19
}
20