source: trunk/minix/lib/other/mstats.c@ 12

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

Minix 3.1.2a

File size: 322 bytes
Line 
1#include <minix/config.h>
2
3#if ENABLE_MESSAGE_STATS
4
5#include <lib.h>
6#include <unistd.h>
7
8PUBLIC int mstats(struct message_statentry *ms, int entries, int reset)
9{
10 message m;
11
12 m.m1_i1 = entries;
13 m.m1_i2 = reset;
14 m.m1_p1 = (void *) ms;
15
16 if(_syscall(MM, MSTATS, &m) < 0) {
17 return -1;
18 }
19
20 return m.m_type;
21}
22
23#endif
Note: See TracBrowser for help on using the repository browser.