Includes
#include <glibtop/swap.h>
 
Functions
glibtop_get_swap ()
void
glibtop_get_swap (glibtop_swap *buf);
Get the swap usage.
 
 
Types and Values
GLIBTOP_SWAP_TOTAL
#define GLIBTOP_SWAP_TOTAL 0
 
GLIBTOP_SWAP_USED
#define GLIBTOP_SWAP_USED 1
 
GLIBTOP_SWAP_FREE
#define GLIBTOP_SWAP_FREE 2
 
GLIBTOP_SWAP_PAGEIN
#define GLIBTOP_SWAP_PAGEIN 3
 
GLIBTOP_SWAP_PAGEOUT
#define GLIBTOP_SWAP_PAGEOUT 4
 
GLIBTOP_MAX_SWAP
#define GLIBTOP_MAX_SWAP 5
 
struct glibtop_swap
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 */
};
 
glibtop_get_swap_r
#define glibtop_get_swap_r		glibtop_get_swap_p