|  |  |  | Libgtop Reference Manual | |
|---|---|---|---|---|
| Top | Description | ||||
#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 struct 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);
struct glibtop_swap {
	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 */
};
void                glibtop_get_swap                    (glibtop_swap *buf);
Get the swap usage.
| 
 | A location to return a glibtop_swap. |