Swap
Swap — plugin for operations with swap space
|
|
Includes
#include <swap.h>
Description
A plugin for operations with swap space.
Functions
bd_swap_error_quark ()
GQuark
bd_swap_error_quark (void
);
bd_swap_mkswap ()
gboolean
bd_swap_mkswap (gchar *device
,
gchar *label
,
GError **error
);
Returns
whether the swap space was successfully created or not
bd_swap_swapon ()
gboolean
bd_swap_swapon (gchar *device
,
gint priority
,
GError **error
);
Returns
whether the swap device was successfully activated or not
bd_swap_swapoff ()
gboolean
bd_swap_swapoff (gchar *device
,
GError **error
);
Returns
whether the swap device was successfully deactivated or not
bd_swap_swapstatus ()
gboolean
bd_swap_swapstatus (gchar *device
,
GError **error
);
Returns
TRUE
if the swap device is active, FALSE
if not active or failed
to determine (error
) is set not a non-NULL value in such case)
Types and Values
BD_SWAP_ERROR
#define BD_SWAP_ERROR bd_swap_error_quark ()