swap

swap —

Synopsis


#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_init_swap_p             (glibtop *server);
void        glibtop_get_swap_p              (glibtop *server,
                                             glibtop_swap *buf);
void        glibtop_init_swap_s             (glibtop *server);
void        glibtop_get_swap_s              (glibtop *server,
                                             glibtop_swap *buf);

Description

Details

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


glibtop_swap

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;


glibtop_get_swap ()

void        glibtop_get_swap                (glibtop_swap *buf);

Get the swap usage.

buf : A location to return a glibtop_swap.

glibtop_get_swap_r

#define     glibtop_get_swap_r


glibtop_get_swap_l ()

void        glibtop_get_swap_l              (glibtop *server,
                                             glibtop_swap *buf);

server :
buf :

glibtop_init_swap_p ()

void        glibtop_init_swap_p             (glibtop *server);

server :

glibtop_get_swap_p ()

void        glibtop_get_swap_p              (glibtop *server,
                                             glibtop_swap *buf);

server :
buf :

glibtop_init_swap_s ()

void        glibtop_init_swap_s             (glibtop *server);

server :

glibtop_get_swap_s ()

void        glibtop_get_swap_s              (glibtop *server,
                                             glibtop_swap *buf);

server :
buf :