--- projects/libstatgrab/docs/sg_get_mem_stats.xml 2004/05/02 09:35:15 1.4 +++ projects/libstatgrab/docs/sg_get_mem_stats.xml 2004/05/02 17:21:35 1.5 @@ -3,50 +3,50 @@ - + - $Date: 2004/05/02 09:35:15 $ - $Id: sg_get_mem_stats.xml,v 1.4 2004/05/02 09:35:15 tdb Exp $ + $Date: 2004/05/02 17:21:35 $ + $Id: sg_get_mem_stats.xml,v 1.5 2004/05/02 17:21:35 tdb Exp $ - + - get_memory_stats + sg_get_mem_stats 3 i-scream - + - get_memory_stats - get_swap_stats + sg_get_mem_stats + sg_get_swap_stats get VM statistics - + #include <statgrab.h> - mem_stat_t *get_memory_stats + sg_mem_stats *sg_get_mem_stats - swap_stat_t *get_swap_stats + sg_swap_stats *sg_get_swap_stats - + Description Memory statistics are accessed through the - get_memory_stats function. It returns a - pointer to a static mem_stat_t. + sg_get_mem_stats function. It returns a + pointer to a static sg_mem_stats. - The get_swap_stats returns returns swap + The sg_get_swap_stats returns returns swap statistics. It returns a pointer to a static - swap_stat_t. + sg_swap_stats. On the FreeBSD operating system elevated privileges are required @@ -55,14 +55,14 @@ problem. - + Return Values The VM system calls can return a pointer to either a - mem_stat_t or a - swap_stat_t. + sg_mem_stats or a + sg_swap_stats. @@ -71,7 +71,7 @@ typedef struct{ long long free; long long used; long long cache; -}mem_stat_t; +}sg_mem_stats; @@ -122,39 +122,39 @@ typedef struct{ long long total; long long used; long long free; -}swap_stat_t; +}sg_swap_stats; total - + - + The total swap space in bytes. - + used - + - + The used swap in bytes. - + free - - - + + + The free swap in bytes. - - + + @@ -180,10 +180,10 @@ typedef struct{ - + Website - +