|  |  |  | Libgtop Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
#include <glibtop/mem.h> #define GLIBTOP_MEM_TOTAL #define GLIBTOP_MEM_USED #define GLIBTOP_MEM_FREE #define GLIBTOP_MEM_SHARED #define GLIBTOP_MEM_BUFFER #define GLIBTOP_MEM_CACHED #define GLIBTOP_MEM_USER #define GLIBTOP_MEM_LOCKED #define GLIBTOP_MAX_MEM struct glibtop_mem; void glibtop_get_mem (glibtop_mem *buf); #define glibtop_get_mem_r void glibtop_get_mem_l (glibtop *server,glibtop_mem *buf); void glibtop_get_mem_p (glibtop *server,glibtop_mem *buf); void glibtop_get_mem_s (glibtop *server,glibtop_mem *buf);
struct glibtop_mem {
	guint64 flags;
	guint64 total;		/* GLIBTOP_MEM_TOTAL */
	guint64 used;		/* GLIBTOP_MEM_USED */
	guint64 free;		/* GLIBTOP_MEM_FREE */
	guint64 shared;		/* GLIBTOP_MEM_SHARED */
	guint64 buffer;		/* GLIBTOP_MEM_BUFFER */
	guint64 cached;		/* GLIBTOP_MEM_CACHED */
	guint64 user;		/* GLIBTOP_MEM_USER */
	guint64 locked;		/* GLIBTOP_MEM_LOCKED */
};
void                glibtop_get_mem                     (glibtop_mem *buf);
Get the memory usage. Unless explicitly stated otherwise, all memory units are in bytes.
| 
 | Buffer where the output will be given. |