--- projects/libstatgrab/docs/statgrab.xml 2003/10/02 17:38:03 1.1 +++ projects/libstatgrab/docs/statgrab.xml 2003/10/21 15:48:55 1.2 @@ -6,8 +6,8 @@ - $Date: 2003/10/02 17:38:03 $ - $Id: statgrab.xml,v 1.1 2003/10/02 17:38:03 tdb Exp $ + $Date: 2003/10/21 15:48:55 $ + $Id: statgrab.xml,v 1.2 2003/10/21 15:48:55 pajs Exp $ @@ -26,6 +26,11 @@ #include <statgrab.h> + int statgrab_init + + + + cpu_percent_t *cpu_percent_usage @@ -104,6 +109,19 @@ system statistics. Each of the function calls returns a structure containing statistics. See the manual page for each individual function for more details on usage. + + + statgrab_init(void) should be the first + function you call before you start to use libstatgrab. This + function on *bsd systems opens up the kernel structures and + leaves them open for future use. Because of this, any special + privileges the program has (e.g. setgid kmem) can be dropped + after this call, and all the libstatgrab calls should continue to + work. + + + statgrab_init returns 0 on success, and + non-zero on failure. The library was originally written to support the i-scream central