85 |
|
</funcprototype> |
86 |
|
|
87 |
|
<funcprototype> |
88 |
+ |
<funcdef>network_iface_stat_t *<function>get_network_iface_stats</function></funcdef> |
89 |
+ |
<paramdef>int *<parameter>entries</parameter></paramdef> |
90 |
+ |
</funcprototype> |
91 |
+ |
|
92 |
+ |
<funcprototype> |
93 |
|
<funcdef>page_stat_t *<function>get_page_stats</function></funcdef> |
94 |
|
<void/> |
95 |
|
</funcprototype> |
123 |
|
<function>statgrab_init</function> must be the first |
124 |
|
function you call before you start to use libstatgrab; it performs all |
125 |
|
the one-time initialisation operations that need setuid/setgid |
126 |
< |
privileges (for instance, on *BSD it opens a descriptor to be able to |
126 |
> |
privileges. For instance, on *BSD it opens a descriptor to be able to |
127 |
|
read kernel structures later on, and on Solaris it reads the device |
128 |
< |
mappings that are only accessible by root). Once this has run, |
129 |
< |
the other libstatgrab functions no longer need elevated privileges. |
130 |
< |
It is therefore a good idea to call |
128 |
> |
mappings that in some cases are only accessible by root (machines with |
129 |
> |
a /dev/osa). Once this has run, the other libstatgrab functions no longer |
130 |
> |
need elevated privileges. It is therefore a good idea to call |
131 |
|
<function>statgrab_drop_privileges</function>, which discards |
132 |
|
setuid and setgid privileges, immediately after you call |
133 |
|
<function>statgrab_init</function>, unless your application has |
139 |
|
non-zero on failure. |
140 |
|
</para> |
141 |
|
<para> |
142 |
< |
The library was originally written to support the i-scream central |
143 |
< |
monitoring system, but has since become a standalone package. It |
144 |
< |
has been ported to work on Linux, NetBSD, FreeBSD, Solaris and Cygwin. |
142 |
> |
The library was originally written to support the i-scream |
143 |
> |
central monitoring system, but has since become a standalone |
144 |
> |
package. It has been ported to work on Linux, NetBSD, FreeBSD, |
145 |
> |
OpenBSD, DragonFly BSD, Solaris and Cygwin. |
146 |
|
</para> |
147 |
|
</refsect1> |
148 |
|
|
173 |
|
</citerefentry> |
174 |
|
<citerefentry> |
175 |
|
<refentrytitle>get_network_stats</refentrytitle> |
176 |
+ |
<manvolnum>3</manvolnum> |
177 |
+ |
</citerefentry> |
178 |
+ |
<citerefentry> |
179 |
+ |
<refentrytitle>get_network_iface_stats</refentrytitle> |
180 |
|
<manvolnum>3</manvolnum> |
181 |
|
</citerefentry> |
182 |
|
<citerefentry> |