. pci driver now returns devices, even when they have been pci_reserve()d
[minix3.git] / lib / other / mstats.c
blobda4a754f58d8b8b7d6196a6c92249a29e49f409b
1 #include <minix/config.h>
3 #if ENABLE_MESSAGE_STATS
5 #include <lib.h>
6 #include <unistd.h>
8 PUBLIC int mstats(struct message_statentry *ms, int entries, int reset)
10 message m;
12 m.m1_i1 = entries;
13 m.m1_i2 = reset;
14 m.m1_p1 = (void *) ms;
16 if(_syscall(MM, MSTATS, &m) < 0) {
17 return -1;
20 return m.m_type;
23 #endif