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_trace.c
blob
483e16783543048b7824bfef9a5a460569770ff3
1
#include
"syslib.h"
2
3
int
sys_trace
(
req
,
proc_ep
,
addr
,
data_p
)
4
int
req
;
5
endpoint_t proc_ep
;
6
long
addr
, *
data_p
;
7
{
8
message m
;
9
int
r
;
10
11
m
.
CTL_ENDPT
=
proc_ep
;
12
m
.
CTL_REQUEST
=
req
;
13
m
.
CTL_ADDRESS
=
addr
;
14
if
(
data_p
)
m
.
CTL_DATA
= *
data_p
;
15
r
=
_kernel_call
(
SYS_TRACE
, &
m
);
16
if
(
data_p
) *
data_p
=
m
.
CTL_DATA
;
17
return
(
r
);
18
}