Top | ![]() |
![]() |
![]() |
![]() |
enum | BDKBDBcacheMode |
BDKBDBcacheStats | |
enum | BDKBDError |
BDKBDZramStats | |
#define | BD_KBD_ERROR |
gboolean bd_kbd_bcache_attach (gchar *c_set_uuid
,gchar *bcache_device
,GError **error
);
gboolean bd_kbd_bcache_create (gchar *backing_device
,gchar *cache_device
,gchar **bcache_device
,GError **error
);
gboolean bd_kbd_bcache_detach (gchar *bcache_device
,gchar **c_set_uuid
,GError **error
);
gchar * bd_kbd_bcache_get_backing_device (gchar *bcache_device
,GError **error
);
bcache_device |
Bcache device to get the backing device for |
|
error |
place to store error (if any). |
[out] |
name of the backing device of the bcache_device
or NULL
if failed to determine (error
is populated).
[transfer full]
gchar * bd_kbd_bcache_get_cache_device (gchar *bcache_device
,GError **error
);
bcache_device |
Bcache device to get the cache device for |
|
error |
place to store error (if any). |
[out] |
name of the cache device of the bcache_device
or NULL
if failed to determine (error
is populated)
Note: returns the name of the first cache device of bcache_device
(in case
there are more).
[transfer full]
BDKBDBcacheMode bd_kbd_bcache_get_mode (gchar *bcache_device
,GError **error
);
BDKBDBcacheMode bd_kbd_bcache_get_mode_from_str (gchar *mode_str
,GError **error
);
const gchar * bd_kbd_bcache_get_mode_str (BDKBDBcacheMode mode
,GError **error
);
gboolean bd_kbd_bcache_set_mode (gchar *bcache_device
,BDKBDBcacheMode mode
,GError **error
);
BDKBDBcacheStats *
bd_kbd_bcache_stats_copy (BDKBDBcacheStats *data
);
Creates a new copy of data
.
[skip]
void
bd_kbd_bcache_stats_free (BDKBDBcacheStats *data
);
Frees data
.
[skip]
BDKBDBcacheStats * bd_kbd_bcache_status (gchar *bcache_device
,GError **error
);
gboolean bd_kbd_zram_create_devices (guint64 num_devices
,guint64 *sizes
,guint64 *nstreams
,GError **error
);
BDKBDZramStats *
bd_kbd_zram_stats_copy (BDKBDZramStats *data
);
Creates a new copy of data
.
[skip]
typedef struct { gchar *state; guint64 block_size; guint64 cache_size; guint64 cache_used; guint64 hits; guint64 misses; guint64 bypass_hits; guint64 bypass_misses; } BDKBDBcacheStats;
typedef struct { guint64 disksize; guint64 num_reads; guint64 num_writes; guint64 invalid_io; guint64 zero_pages; guint64 max_comp_streams; gchar* comp_algorithm; guint64 orig_data_size; guint64 compr_data_size; guint64 mem_used_total; } BDKBDZramStats;