source: trunk/minix/lib/syslib/sys_trace.c@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

  • Property svn:executable set to *
File size: 333 bytes
Line 
1#include "syslib.h"
2
3PUBLIC int sys_trace(req, proc_nr, addr, data_p)
4int req, proc_nr;
5long addr, *data_p;
6{
7 message m;
8 int r;
9
10 m.CTL_ENDPT = proc_nr;
11 m.CTL_REQUEST = req;
12 m.CTL_ADDRESS = addr;
13 if (data_p) m.CTL_DATA = *data_p;
14 r = _taskcall(SYSTASK, SYS_TRACE, &m);
15 if (data_p) *data_p = m.CTL_DATA;
16 return(r);
17}
Note: See TracBrowser for help on using the repository browser.