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

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CONF
 
#define X_CONF(name, key)   const struct m0_fid M0_CONF_ ## name ## _FID = M0_FID_TINIT('/', 0, (key));
 

Functions

M0_CONF_REL_FIDS M0_INTERNAL int dir_create_and_populate (struct m0_conf_dir **result, const struct conf_dir_entries *de, struct m0_conf_obj *dir_parent)
 
M0_INTERNAL int conf_dirs_encode (const struct conf_dir_encoding_pair *how, size_t how_nr)
 
M0_INTERNAL int conf_dirs_lookup (struct m0_conf_obj **out, const struct m0_fid *name, const struct conf_dir_relation *rels, size_t nr_rels)
 
M0_INTERNAL int arrfid_from_dir (struct m0_fid_arr *dest, const struct m0_conf_dir *dir)
 
M0_INTERNAL void arrfid_free (struct m0_fid_arr *arr)
 
M0_INTERNAL void confx_encode (struct m0_confx_obj *dest, const struct m0_conf_obj *src)
 
M0_INTERNAL int u32arr_decode (const struct arr_u32 *src, uint32_t **dest)
 
M0_INTERNAL int u32arr_encode (struct arr_u32 *dest, const uint32_t *src, uint32_t src_nr)
 
M0_INTERNAL bool u32arr_cmp (const struct arr_u32 *a1, const uint32_t *a2, uint32_t a2_nr)
 
M0_INTERNAL void u32arr_free (struct arr_u32 *arr)
 
M0_INTERNAL int conf_pvers_decode (struct m0_conf_pver ***dest, const struct m0_fid_arr *src, struct m0_conf_cache *cache)
 
M0_INTERNAL int conf_pvers_encode (struct m0_fid_arr *dest, const struct m0_conf_pver **src)
 
M0_INTERNAL int conf_obj_lookup_denied (const struct m0_conf_obj *parent, const struct m0_fid *name, struct m0_conf_obj **out)
 
M0_INTERNAL const struct m0_fid ** conf_obj_downlinks_none (const struct m0_conf_obj *obj)
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CONF

Definition at line 22 of file common.c.

◆ X_CONF

#define X_CONF (   name,
  key 
)    const struct m0_fid M0_CONF_ ## name ## _FID = M0_FID_TINIT('/', 0, (key));

Definition at line 27 of file common.c.

Function Documentation

◆ arrfid_free()

M0_INTERNAL void arrfid_free ( struct m0_fid_arr arr)

Definition at line 104 of file common.c.

Here is the caller graph for this function:

◆ arrfid_from_dir()

M0_INTERNAL int arrfid_from_dir ( struct m0_fid_arr dest,
const struct m0_conf_dir dir 
)

Definition at line 82 of file common.c.

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

◆ conf_dirs_encode()

M0_INTERNAL int conf_dirs_encode ( const struct conf_dir_encoding_pair how,
size_t  how_nr 
)

Definition at line 43 of file common.c.

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

◆ conf_dirs_lookup()

M0_INTERNAL int conf_dirs_lookup ( struct m0_conf_obj **  out,
const struct m0_fid name,
const struct conf_dir_relation rels,
size_t  nr_rels 
)

Definition at line 64 of file common.c.

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

◆ conf_obj_downlinks_none()

M0_INTERNAL const struct m0_fid** conf_obj_downlinks_none ( const struct m0_conf_obj obj)

Definition at line 226 of file common.c.

◆ conf_obj_lookup_denied()

M0_INTERNAL int conf_obj_lookup_denied ( const struct m0_conf_obj parent,
const struct m0_fid name,
struct m0_conf_obj **  out 
)

Definition at line 217 of file common.c.

Here is the call graph for this function:

◆ conf_pvers_decode()

M0_INTERNAL int conf_pvers_decode ( struct m0_conf_pver ***  dest,
const struct m0_fid_arr src,
struct m0_conf_cache cache 
)

Definition at line 161 of file common.c.

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

◆ conf_pvers_encode()

M0_INTERNAL int conf_pvers_encode ( struct m0_fid_arr dest,
const struct m0_conf_pver **  src 
)

Definition at line 194 of file common.c.

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

◆ confx_encode()

M0_INTERNAL void confx_encode ( struct m0_confx_obj dest,
const struct m0_conf_obj src 
)

Definition at line 110 of file common.c.

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

◆ dir_create_and_populate()

M0_CONF_REL_FIDS M0_INTERNAL int dir_create_and_populate ( struct m0_conf_dir **  result,
const struct conf_dir_entries de,
struct m0_conf_obj dir_parent 
)

Definition at line 33 of file common.c.

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

◆ u32arr_cmp()

M0_INTERNAL bool u32arr_cmp ( const struct arr_u32 a1,
const uint32_t *  a2,
uint32_t  a2_nr 
)

Definition at line 145 of file common.c.

Here is the caller graph for this function:

◆ u32arr_decode()

M0_INTERNAL int u32arr_decode ( const struct arr_u32 src,
uint32_t **  dest 
)

Definition at line 116 of file common.c.

Here is the call graph for this function:

◆ u32arr_encode()

M0_INTERNAL int u32arr_encode ( struct arr_u32 dest,
const uint32_t *  src,
uint32_t  src_nr 
)

Definition at line 129 of file common.c.

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

◆ u32arr_free()

M0_INTERNAL void u32arr_free ( struct arr_u32 arr)

Definition at line 151 of file common.c.

Here is the caller graph for this function: