![]() |
![]() |
![]() |
Libgtop Reference Manual | |
---|---|---|---|---|
#include <glibtop/swap.h> #define GLIBTOP_SWAP_TOTAL #define GLIBTOP_SWAP_USED #define GLIBTOP_SWAP_FREE #define GLIBTOP_SWAP_PAGEIN #define GLIBTOP_SWAP_PAGEOUT #define GLIBTOP_MAX_SWAP glibtop_swap; void glibtop_get_swap (glibtop_swap *buf); #define glibtop_get_swap_r void glibtop_get_swap_l (glibtop *server, glibtop_swap *buf); void glibtop_get_swap_p (glibtop *server, glibtop_swap *buf); void glibtop_get_swap_s (glibtop *server, glibtop_swap *buf);
typedef struct { guint64 flags; guint64 total; /* GLIBTOP_SWAP_TOTAL */ guint64 used; /* GLIBTOP_SWAP_USED */ guint64 free; /* GLIBTOP_SWAP_FREE */ guint64 pagein; /* GLIBTOP_SWAP_PAGEIN */ guint64 pageout; /* GLIBTOP_SWAP_PAGEOUT */ } glibtop_swap;
void glibtop_get_swap (glibtop_swap *buf);
Get the swap usage.
buf : |
A location to return a glibtop_swap. |