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

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CONF
 
#define XCAST(xobj)   ((struct m0_confx_objv *)(&(xobj)->xo_u))
 

Functions

 M0_BASSERT (offsetof(struct m0_confx_objv, xj_header)==0)
 
static const struct m0_fid ** objv_downlinks (const struct m0_conf_obj *obj)
 
static bool objv_check (const void *bob)
 
 M0_CONF__BOB_DEFINE (m0_conf_objv, M0_CONF_OBJV_MAGIC, objv_check)
 
 M0_CONF__INVARIANT_DEFINE (objv_invariant, m0_conf_objv)
 
static int objv_decode (struct m0_conf_obj *dest, const struct m0_confx_obj *src)
 
static int objv_encode (struct m0_confx_obj *dest, const struct m0_conf_obj *src)
 
static bool objv_match (const struct m0_conf_obj *cached, const struct m0_confx_obj *flat)
 
static int objv_lookup (const struct m0_conf_obj *parent, const struct m0_fid *name, struct m0_conf_obj **out)
 
static void objv_delete (struct m0_conf_obj *obj)
 
 M0_CONF__CTOR_DEFINE (objv_create, m0_conf_objv, &objv_ops)
 

Variables

static const struct m0_conf_obj_ops objv_ops
 
const struct m0_conf_obj_type M0_CONF_OBJV_TYPE
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CONF

Definition at line 22 of file objv.c.

◆ XCAST

#define XCAST (   xobj)    ((struct m0_confx_objv *)(&(xobj)->xo_u))

Definition at line 30 of file objv.c.

Function Documentation

◆ M0_BASSERT()

M0_BASSERT ( offsetof(struct m0_confx_objv, xj_header = =0)

◆ M0_CONF__BOB_DEFINE()

M0_CONF__BOB_DEFINE ( m0_conf_objv  ,
M0_CONF_OBJV_MAGIC  ,
objv_check   
)

◆ M0_CONF__CTOR_DEFINE()

M0_CONF__CTOR_DEFINE ( objv_create  ,
m0_conf_objv  ,
objv_ops 
)

◆ M0_CONF__INVARIANT_DEFINE()

M0_CONF__INVARIANT_DEFINE ( objv_invariant  ,
m0_conf_objv   
)

◆ objv_check()

static bool objv_check ( const void *  bob)
static

Definition at line 35 of file objv.c.

Here is the call graph for this function:

◆ objv_decode()

static int objv_decode ( struct m0_conf_obj dest,
const struct m0_confx_obj src 
)
static

Definition at line 47 of file objv.c.

Here is the call graph for this function:

◆ objv_delete()

static void objv_delete ( struct m0_conf_obj obj)
static

Definition at line 130 of file objv.c.

Here is the call graph for this function:

◆ objv_downlinks()

static const struct m0_fid ** objv_downlinks ( const struct m0_conf_obj obj)
static

Definition at line 105 of file objv.c.

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

◆ objv_encode()

static int objv_encode ( struct m0_confx_obj dest,
const struct m0_conf_obj src 
)
static

Definition at line 69 of file objv.c.

Here is the call graph for this function:

◆ objv_lookup()

static int objv_lookup ( const struct m0_conf_obj parent,
const struct m0_fid name,
struct m0_conf_obj **  out 
)
static

Definition at line 92 of file objv.c.

Here is the call graph for this function:

◆ objv_match()

static bool objv_match ( const struct m0_conf_obj cached,
const struct m0_confx_obj flat 
)
static

Definition at line 82 of file objv.c.

Here is the call graph for this function:

Variable Documentation

◆ M0_CONF_OBJV_TYPE

const struct m0_conf_obj_type M0_CONF_OBJV_TYPE
Initial value:
= {
.cot_ftype = {
.ft_id = M0_CONF__OBJV_FT_ID,
.ft_name = "conf_objv"
},
.cot_create = &objv_create,
.cot_xt = &m0_confx_objv_xc,
.cot_branch = "u_objv",
.cot_xc_init = &m0_xc_m0_confx_objv_struct_init,
.cot_magic = M0_CONF_OBJV_MAGIC
}

Definition at line 151 of file objv.c.

◆ objv_ops

const struct m0_conf_obj_ops objv_ops
static
Initial value:
= {
.coo_invariant = objv_invariant,
.coo_decode = objv_decode,
.coo_encode = objv_encode,
.coo_match = objv_match,
.coo_lookup = objv_lookup,
.coo_readdir = NULL,
.coo_downlinks = objv_downlinks,
.coo_delete = objv_delete
}
#define NULL
Definition: misc.h:38
static void objv_delete(struct m0_conf_obj *obj)
Definition: objv.c:130
static bool objv_match(const struct m0_conf_obj *cached, const struct m0_confx_obj *flat)
Definition: objv.c:82
static int objv_encode(struct m0_confx_obj *dest, const struct m0_conf_obj *src)
Definition: objv.c:69
static const struct m0_fid ** objv_downlinks(const struct m0_conf_obj *obj)
Definition: objv.c:105
static int objv_decode(struct m0_conf_obj *dest, const struct m0_confx_obj *src)
Definition: objv.c:47
static int objv_lookup(const struct m0_conf_obj *parent, const struct m0_fid *name, struct m0_conf_obj **out)
Definition: objv.c:92

Definition at line 138 of file objv.c.