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

Go to the source code of this file.

Macros

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

Functions

static bool fdmi_flt_grp_check (const void *bob)
 
 M0_CONF__BOB_DEFINE (m0_conf_fdmi_flt_grp, M0_CONF_FDMI_FLT_GRP_MAGIC, fdmi_flt_grp_check)
 
 M0_CONF__INVARIANT_DEFINE (fdmi_flt_grp_invariant, m0_conf_fdmi_flt_grp)
 
 M0_BASSERT (offsetof(struct m0_confx_fdmi_flt_grp, xfg_header)==0)
 
static int fdmi_flt_grp_decode (struct m0_conf_obj *dest, const struct m0_confx_obj *src)
 
static int fdmi_flt_grp_encode (struct m0_confx_obj *dest, const struct m0_conf_obj *src)
 
static bool fdmi_flt_grp_match (const struct m0_conf_obj *cached, const struct m0_confx_obj *flat)
 
static int fdmi_flt_grp_lookup (const struct m0_conf_obj *parent, const struct m0_fid *name, struct m0_conf_obj **out)
 
static void fdmi_flt_grp_delete (struct m0_conf_obj *obj)
 
static const struct m0_fid ** fdmi_flt_grp_downlinks (const struct m0_conf_obj *obj)
 
static struct m0_conf_objfdmi_flt_grp_create (void)
 

Variables

static const struct m0_conf_obj_ops conf_fdmi_flt_grp_ops
 
const struct m0_conf_obj_type M0_CONF_FDMI_FLT_GRP_TYPE
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CONF

Definition at line 23 of file fdmi_flt_grp.c.

◆ XCAST

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

Definition at line 44 of file fdmi_flt_grp.c.

Function Documentation

◆ fdmi_flt_grp_check()

static bool fdmi_flt_grp_check ( const void *  bob)
static

Definition at line 30 of file fdmi_flt_grp.c.

Here is the call graph for this function:

◆ fdmi_flt_grp_create()

static struct m0_conf_obj* fdmi_flt_grp_create ( void  )
static

Definition at line 137 of file fdmi_flt_grp.c.

◆ fdmi_flt_grp_decode()

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

Definition at line 48 of file fdmi_flt_grp.c.

Here is the call graph for this function:

◆ fdmi_flt_grp_delete()

static void fdmi_flt_grp_delete ( struct m0_conf_obj obj)
static

Definition at line 110 of file fdmi_flt_grp.c.

Here is the call graph for this function:

◆ fdmi_flt_grp_downlinks()

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

Definition at line 118 of file fdmi_flt_grp.c.

Here is the call graph for this function:

◆ fdmi_flt_grp_encode()

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

Definition at line 66 of file fdmi_flt_grp.c.

Here is the call graph for this function:

◆ fdmi_flt_grp_lookup()

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

Definition at line 95 of file fdmi_flt_grp.c.

Here is the call graph for this function:

◆ fdmi_flt_grp_match()

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

Definition at line 81 of file fdmi_flt_grp.c.

Here is the call graph for this function:

◆ M0_BASSERT()

M0_BASSERT ( offsetof(struct m0_confx_fdmi_flt_grp, xfg_header = =0)

◆ M0_CONF__BOB_DEFINE()

◆ M0_CONF__INVARIANT_DEFINE()

M0_CONF__INVARIANT_DEFINE ( fdmi_flt_grp_invariant  ,
m0_conf_fdmi_flt_grp   
)

Variable Documentation

◆ conf_fdmi_flt_grp_ops

const struct m0_conf_obj_ops conf_fdmi_flt_grp_ops
static
Initial value:
= {
.coo_downlinks = fdmi_flt_grp_downlinks,
.coo_invariant = fdmi_flt_grp_invariant,
.coo_decode = fdmi_flt_grp_decode,
.coo_encode = fdmi_flt_grp_encode,
.coo_match = fdmi_flt_grp_match,
.coo_lookup = fdmi_flt_grp_lookup,
.coo_readdir = NULL,
.coo_delete = fdmi_flt_grp_delete
}
#define NULL
Definition: misc.h:38
static void fdmi_flt_grp_delete(struct m0_conf_obj *obj)
Definition: fdmi_flt_grp.c:110
static bool fdmi_flt_grp_match(const struct m0_conf_obj *cached, const struct m0_confx_obj *flat)
Definition: fdmi_flt_grp.c:81
static int fdmi_flt_grp_lookup(const struct m0_conf_obj *parent, const struct m0_fid *name, struct m0_conf_obj **out)
Definition: fdmi_flt_grp.c:95
static int fdmi_flt_grp_decode(struct m0_conf_obj *dest, const struct m0_confx_obj *src)
Definition: fdmi_flt_grp.c:48
static const struct m0_fid ** fdmi_flt_grp_downlinks(const struct m0_conf_obj *obj)
Definition: fdmi_flt_grp.c:118
static int fdmi_flt_grp_encode(struct m0_confx_obj *dest, const struct m0_conf_obj *src)
Definition: fdmi_flt_grp.c:66

Definition at line 126 of file fdmi_flt_grp.c.

◆ M0_CONF_FDMI_FLT_GRP_TYPE

const struct m0_conf_obj_type M0_CONF_FDMI_FLT_GRP_TYPE
Initial value:
= {
.cot_ftype = {
.ft_id = M0_CONF__FDMI_FLT_GRP_FT_ID,
.ft_name = "conf_fdmi_flt_grp"
},
.cot_create = &fdmi_flt_grp_create,
.cot_xt = &m0_confx_fdmi_flt_grp_xc,
.cot_branch = "u_fdmi_flt_grp",
.cot_xc_init = &m0_xc_m0_confx_fdmi_flt_grp_struct_init,
}
static struct m0_conf_obj * fdmi_flt_grp_create(void)
Definition: fdmi_flt_grp.c:137

Definition at line 151 of file fdmi_flt_grp.c.