95 int sa_get_swaps(struct
sa_swap* dst, uint16_t dst_size, uint16_t* written) SA_EXPORT SA_NONNULL;
int sa_get_swaps(struct sa_swap *dst, uint16_t dst_size, uint16_t *written) SA_EXPORT SA_NONNULL
uint64_t free
Available amount of swap in this device.
Definition: swap.h:39
int8_t type
The type of swap media. If it's in a device the value is 1. If it's based in a file the value is 2...
Definition: swap.h:42
int sa_close_swap(void) SA_EXPORT
char name[SA_SWAP_NAME]
The name of the swap device.
Definition: swap.h:33
int sa_get_swap(uint16_t index, struct sa_swap *dst) SA_EXPORT SA_NONNULL
int sa_reset_swaps() SA_EXPORT
int sa_count_swaps(uint16_t *number) SA_EXPORT SA_NONNULL
uint64_t total
Total amount of swap in this device.
Definition: swap.h:36
int sa_open_swap(void) SA_EXPORT