Motr  M0
common.c File Reference
#include "lib/trace.h"
#include "conf/ut/common.h"
#include "lib/fs.h"
#include "rpc/rpclib.h"
#include "ut/ut.h"
Include dependency graph for common.c:

Go to the source code of this file.

Data Structures

struct  conf_ut_ast
 

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_UT
 

Functions

static bool _filter (struct m0_clink *link)
 
M0_INTERNAL void m0_conf_ut_waiter_init (struct m0_conf_ut_waiter *w, struct m0_confc *confc)
 
M0_INTERNAL void m0_conf_ut_waiter_fini (struct m0_conf_ut_waiter *w)
 
M0_INTERNAL int m0_conf_ut_waiter_wait (struct m0_conf_ut_waiter *w, struct m0_conf_obj **result)
 
static void conf_ut_ast_thread (int _ M0_UNUSED)
 
M0_INTERNAL int m0_conf_ut_ast_thread_init (void)
 
M0_INTERNAL int m0_conf_ut_ast_thread_fini (void)
 
M0_INTERNAL int m0_conf_ut_cache_init (void)
 
M0_INTERNAL int m0_conf_ut_cache_fini (void)
 
M0_INTERNAL void m0_conf_ut_cache_from_file (struct m0_conf_cache *cache, const char *path)
 

Variables

struct m0_conf_cache m0_conf_ut_cache
 
struct m0_sm_group m0_conf_ut_grp
 
static struct conf_ut_ast g_ast
 
static struct m0_mutex conf_ut_lock
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_UT

Definition at line 23 of file common.c.

Function Documentation

◆ _filter()

static bool _filter ( struct m0_clink link)
static

Definition at line 35 of file common.c.

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

◆ conf_ut_ast_thread()

static void conf_ut_ast_thread ( int _  M0_UNUSED)
static

Definition at line 76 of file common.c.

Here is the caller graph for this function:

◆ m0_conf_ut_ast_thread_fini()

M0_INTERNAL int m0_conf_ut_ast_thread_fini ( void  )

Definition at line 96 of file common.c.

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

◆ m0_conf_ut_ast_thread_init()

M0_INTERNAL int m0_conf_ut_ast_thread_init ( void  )

Definition at line 86 of file common.c.

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

◆ m0_conf_ut_cache_fini()

M0_INTERNAL int m0_conf_ut_cache_fini ( void  )

Definition at line 114 of file common.c.

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

◆ m0_conf_ut_cache_from_file()

M0_INTERNAL void m0_conf_ut_cache_from_file ( struct m0_conf_cache cache,
const char *  path 
)

Definition at line 123 of file common.c.

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

◆ m0_conf_ut_cache_init()

M0_INTERNAL int m0_conf_ut_cache_init ( void  )

Definition at line 107 of file common.c.

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

◆ m0_conf_ut_waiter_fini()

M0_INTERNAL void m0_conf_ut_waiter_fini ( struct m0_conf_ut_waiter w)

Definition at line 49 of file common.c.

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

◆ m0_conf_ut_waiter_init()

M0_INTERNAL void m0_conf_ut_waiter_init ( struct m0_conf_ut_waiter w,
struct m0_confc confc 
)

Definition at line 41 of file common.c.

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

◆ m0_conf_ut_waiter_wait()

M0_INTERNAL int m0_conf_ut_waiter_wait ( struct m0_conf_ut_waiter w,
struct m0_conf_obj **  result 
)

Definition at line 56 of file common.c.

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

Variable Documentation

◆ conf_ut_lock

struct m0_mutex conf_ut_lock
static

Definition at line 105 of file common.c.

◆ g_ast

struct conf_ut_ast g_ast
static

◆ m0_conf_ut_cache

struct m0_conf_cache m0_conf_ut_cache

Definition at line 31 of file common.c.

◆ m0_conf_ut_grp

struct m0_sm_group m0_conf_ut_grp

Definition at line 32 of file common.c.