Motr  M0
Utstob

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_moduleut_stob_module_get (void)
 
M0_INTERNAL int m0_ut_stob_init (void)
 
M0_INTERNAL void m0_ut_stob_fini (void)
 
static struct m0_stobut_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_stobm0_ut_stob_linux_get (void)
 
M0_INTERNAL struct m0_stobm0_ut_stob_linux_get_by_key (uint64_t stob_key)
 
M0_INTERNAL struct m0_stobm0_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_stobm0_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_dtxm0_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
 

Detailed Description

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
UT_STOB_KEY_BEGIN 

Definition at line 47 of file stob.c.

◆ anonymous enum

anonymous enum
Enumerator
M0_LEVEL_UT_STOB 

Definition at line 44 of file stob.h.

Function Documentation

◆ level_ut_stob_enter()

static int level_ut_stob_enter ( struct m0_module module)
static

Definition at line 75 of file stob.c.

Here is the call graph for this function:

◆ level_ut_stob_leave()

static void level_ut_stob_leave ( struct m0_module module)
static

Definition at line 80 of file stob.c.

Here is the call graph for this function:

◆ m0_ut_dtx_close()

M0_INTERNAL void m0_ut_dtx_close ( struct m0_dtx dtx)

Definition at line 359 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ut_dtx_open()

M0_INTERNAL struct m0_dtx * m0_ut_dtx_open ( struct m0_be_tx_credit cred,
struct m0_be_domain be_dom 
)

Definition at line 333 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ut_stob_close()

M0_INTERNAL void m0_ut_stob_close ( struct m0_stob stob,
bool  destroy 
)

Definition at line 292 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ut_stob_create()

M0_INTERNAL int m0_ut_stob_create ( struct m0_stob stob,
const char *  str_cfg,
struct m0_be_domain be_dom 
)

Definition at line 202 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ut_stob_create_by_stob_id()

M0_INTERNAL int m0_ut_stob_create_by_stob_id ( struct m0_stob_id stob_id,
const char *  str_cfg 
)

Definition at line 301 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ut_stob_destroy()

M0_INTERNAL int m0_ut_stob_destroy ( struct m0_stob stob,
struct m0_be_domain be_dom 
)

Definition at line 222 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ut_stob_destroy_by_stob_id()

M0_INTERNAL int m0_ut_stob_destroy_by_stob_id ( struct m0_stob_id stob_id)

Definition at line 317 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ut_stob_fini()

M0_INTERNAL void m0_ut_stob_fini ( void  )

Definition at line 123 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ut_stob_init()

M0_INTERNAL int m0_ut_stob_init ( void  )

Definition at line 106 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ut_stob_linux_create()

M0_INTERNAL struct m0_stob * m0_ut_stob_linux_create ( char *  stob_create_cfg)

Definition at line 179 of file stob.c.

Here is the call graph for this function:

◆ m0_ut_stob_linux_get()

M0_INTERNAL struct m0_stob * m0_ut_stob_linux_get ( void  )

Definition at line 169 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ut_stob_linux_get_by_key()

M0_INTERNAL struct m0_stob * m0_ut_stob_linux_get_by_key ( uint64_t  stob_key)

Definition at line 174 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ut_stob_open()

M0_INTERNAL struct m0_stob * m0_ut_stob_open ( struct m0_stob_domain dom,
uint64_t  stob_key,
const char *  str_cfg 
)

Definition at line 274 of file stob.c.

Here is the call graph for this function:

◆ m0_ut_stob_put()

M0_INTERNAL void m0_ut_stob_put ( struct m0_stob stob,
bool  destroy 
)

Definition at line 185 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ut_stob_linux_create_by_key()

static struct m0_stob* ut_stob_linux_create_by_key ( uint64_t  stob_key,
char *  stob_create_cfg 
)
static

Definition at line 135 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ut_stob_linux_key_alloc()

static uint64_t ut_stob_linux_key_alloc ( void  )
static

Definition at line 158 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ut_stob_module_get()

static struct ut_stob_module* ut_stob_module_get ( void  )
static

Definition at line 85 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ut_stob_use_dtx()

static bool ut_stob_use_dtx ( struct m0_stob_domain dom)
static

Definition at line 194 of file stob.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ m0_levels_ut_stob [1/2]

struct m0_modlev m0_levels_ut_stob[]

Definition at line 60 of file stob.c.

◆ m0_levels_ut_stob [2/2]

struct m0_modlev m0_levels_ut_stob[]
Initial value:
= {
.ml_name = "stob UT helper is initialised",
.ml_enter = level_ut_stob_enter,
.ml_leave = level_ut_stob_leave,
},
}
static void level_ut_stob_leave(struct m0_module *module)
Definition: stob.c:80
static int level_ut_stob_enter(struct m0_module *module)
Definition: stob.c:75

Definition at line 60 of file stob.c.

◆ m0_levels_ut_stob_nr [1/2]

const unsigned m0_levels_ut_stob_nr

Definition at line 67 of file stob.c.

◆ m0_levels_ut_stob_nr [2/2]

const unsigned m0_levels_ut_stob_nr = ARRAY_SIZE(m0_levels_ut_stob)

Definition at line 67 of file stob.c.

◆ ut_stob_domain_create_cfg

const char* ut_stob_domain_create_cfg = ""
static

Definition at line 73 of file stob.c.

◆ ut_stob_domain_init_cfg

const char* ut_stob_domain_init_cfg = ""
static

Definition at line 72 of file stob.c.

◆ ut_stob_domain_key

const uint64_t ut_stob_domain_key = 0x10000
static

Definition at line 71 of file stob.c.

◆ ut_stob_domain_location

const char* ut_stob_domain_location = "linuxstob:./ut_stob"
static

Definition at line 70 of file stob.c.