source: trunk/minix/lib/syslib/sys_getinfo.c@ 9

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

Minix 3.1.2a

File size: 760 bytes
Line 
1#include "syslib.h"
2
3/*===========================================================================*
4 * sys_getinfo *
5 *===========================================================================*/
6PUBLIC int sys_getinfo(request, ptr, len, ptr2, len2)
7int request; /* system info requested */
8void *ptr; /* pointer where to store it */
9int len; /* max length of value to get */
10void *ptr2; /* second pointer */
11int len2; /* length or process nr */
12{
13 message m;
14
15 m.I_REQUEST = request;
16 m.I_ENDPT = SELF; /* always store values at caller */
17 m.I_VAL_PTR = ptr;
18 m.I_VAL_LEN = len;
19 m.I_VAL_PTR2 = ptr2;
20 m.I_VAL_LEN2_E = len2;
21
22 return(_taskcall(SYSTASK, SYS_GETINFO, &m));
23}
24
25
Note: See TracBrowser for help on using the repository browser.