Rev | Line | |
---|
[9] | 1 | #include "syslib.h"
|
---|
| 2 |
|
---|
| 3 | /*===========================================================================*
|
---|
| 4 | * sys_getinfo *
|
---|
| 5 | *===========================================================================*/
|
---|
| 6 | PUBLIC int sys_getinfo(request, ptr, len, ptr2, len2)
|
---|
| 7 | int request; /* system info requested */
|
---|
| 8 | void *ptr; /* pointer where to store it */
|
---|
| 9 | int len; /* max length of value to get */
|
---|
| 10 | void *ptr2; /* second pointer */
|
---|
| 11 | int 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.