Motr  M0
stob.c File Reference
#include "lib/trace.h"
#include "ut/stob.h"
#include "lib/misc.h"
#include "lib/mutex.h"
#include "lib/memory.h"
#include "lib/errno.h"
#include "module/instance.h"
#include "be/tx_credit.h"
#include "be/ut/helper.h"
#include "dtm/dtm.h"
#include "stob/domain.h"
#include "stob/stob.h"
Include dependency graph for stob.c:

Go to the source code of this file.

Data Structures

struct  ut_stob_module
 

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_UT
 

Enumerations

enum  { UT_STOB_KEY_BEGIN = 42 }
 

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 = ""
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_UT

Definition at line 23 of file stob.c.