![]() |
![]() |
![]() |
libblockdev Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <swap.h> GQuark bd_swap_error_quark (void
); #define BD_SWAP_ERROR enum BDSwapError; gboolean bd_swap_mkswap (gchar *device
,gchar *label
,GError **error
); gboolean bd_swap_swapon (gchar *device
,gint priority
,GError **error
); gboolean bd_swap_swapoff (gchar *device
,GError **error
); gboolean bd_swap_swapstatus (gchar *device
,GError **error
);
gboolean bd_swap_mkswap (gchar *device
,gchar *label
,GError **error
);
|
a device to create swap space on |
|
a label for the swap space device. [allow-none] |
|
place to store error (if any). [out] |
Returns : |
whether the swap space was successfully created or not |
gboolean bd_swap_swapon (gchar *device
,gint priority
,GError **error
);
|
swap device to activate |
|
priority of the activated device or -1 to use the default |
|
place to store error (if any). [out] |
Returns : |
whether the swap device was successfully activated or not |
gboolean bd_swap_swapoff (gchar *device
,GError **error
);
|
swap device to deactivate |
|
place to store error (if any). [out] |
Returns : |
whether the swap device was successfully deactivated or not |