Motr
M0
|
Data Structures | |
struct | ut_stob_module |
struct | m0_ut_stob_module |
Enumerations | |
enum | { UT_STOB_KEY_BEGIN = 42 } |
enum | { M0_LEVEL_UT_STOB } |
Functions | |
static int | level_ut_stob_enter (struct m0_module *module) |
static void | level_ut_stob_leave (struct m0_module *module) |
static struct ut_stob_module * | ut_stob_module_get (void) |
M0_INTERNAL int | m0_ut_stob_init (void) |
M0_INTERNAL void | m0_ut_stob_fini (void) |
static struct m0_stob * | ut_stob_linux_create_by_key (uint64_t stob_key, char *stob_create_cfg) |
static uint64_t | ut_stob_linux_key_alloc (void) |
M0_INTERNAL struct m0_stob * | m0_ut_stob_linux_get (void) |
M0_INTERNAL struct m0_stob * | m0_ut_stob_linux_get_by_key (uint64_t stob_key) |
M0_INTERNAL struct m0_stob * | m0_ut_stob_linux_create (char *stob_create_cfg) |
M0_INTERNAL void | m0_ut_stob_put (struct m0_stob *stob, bool destroy) |
static bool | ut_stob_use_dtx (struct m0_stob_domain *dom) |
M0_INTERNAL int | m0_ut_stob_create (struct m0_stob *stob, const char *str_cfg, struct m0_be_domain *be_dom) |
M0_INTERNAL int | m0_ut_stob_destroy (struct m0_stob *stob, struct m0_be_domain *be_dom) |
M0_INTERNAL struct m0_stob * | m0_ut_stob_open (struct m0_stob_domain *dom, uint64_t stob_key, const char *str_cfg) |
M0_INTERNAL void | m0_ut_stob_close (struct m0_stob *stob, bool destroy) |
M0_INTERNAL int | m0_ut_stob_create_by_stob_id (struct m0_stob_id *stob_id, const char *str_cfg) |
M0_INTERNAL int | m0_ut_stob_destroy_by_stob_id (struct m0_stob_id *stob_id) |
M0_INTERNAL struct m0_dtx * | m0_ut_dtx_open (struct m0_be_tx_credit *cred, struct m0_be_domain *be_dom) |
M0_INTERNAL void | m0_ut_dtx_close (struct m0_dtx *dtx) |
Variables | |
struct m0_modlev | m0_levels_ut_stob [] |
const unsigned | m0_levels_ut_stob_nr = ARRAY_SIZE(m0_levels_ut_stob) |
static const char * | ut_stob_domain_location = "linuxstob:./ut_stob" |
static const uint64_t | ut_stob_domain_key = 0x10000 |
static const char * | ut_stob_domain_init_cfg = "" |
static const char * | ut_stob_domain_create_cfg = "" |
struct m0_modlev | m0_levels_ut_stob [] |
const unsigned | m0_levels_ut_stob_nr |
|
static |
|
static |
M0_INTERNAL void m0_ut_dtx_close | ( | struct m0_dtx * | dtx | ) |
M0_INTERNAL struct m0_dtx * m0_ut_dtx_open | ( | struct m0_be_tx_credit * | cred, |
struct m0_be_domain * | be_dom | ||
) |
M0_INTERNAL void m0_ut_stob_close | ( | struct m0_stob * | stob, |
bool | destroy | ||
) |
M0_INTERNAL int m0_ut_stob_create | ( | struct m0_stob * | stob, |
const char * | str_cfg, | ||
struct m0_be_domain * | be_dom | ||
) |
M0_INTERNAL int m0_ut_stob_create_by_stob_id | ( | struct m0_stob_id * | stob_id, |
const char * | str_cfg | ||
) |
M0_INTERNAL int m0_ut_stob_destroy | ( | struct m0_stob * | stob, |
struct m0_be_domain * | be_dom | ||
) |
M0_INTERNAL int m0_ut_stob_destroy_by_stob_id | ( | struct m0_stob_id * | stob_id | ) |
M0_INTERNAL void m0_ut_stob_fini | ( | void | ) |
M0_INTERNAL int m0_ut_stob_init | ( | void | ) |
M0_INTERNAL struct m0_stob * m0_ut_stob_linux_create | ( | char * | stob_create_cfg | ) |
M0_INTERNAL struct m0_stob * m0_ut_stob_linux_get | ( | void | ) |
M0_INTERNAL struct m0_stob * m0_ut_stob_linux_get_by_key | ( | uint64_t | stob_key | ) |
M0_INTERNAL struct m0_stob * m0_ut_stob_open | ( | struct m0_stob_domain * | dom, |
uint64_t | stob_key, | ||
const char * | str_cfg | ||
) |
M0_INTERNAL void m0_ut_stob_put | ( | struct m0_stob * | stob, |
bool | destroy | ||
) |
|
static |
|
static |
|
static |
|
static |
struct m0_modlev m0_levels_ut_stob[] |
const unsigned m0_levels_ut_stob_nr = ARRAY_SIZE(m0_levels_ut_stob) |