Motr  M0
process.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 process.c:

Go to the source code of this file.

Macros

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

Functions

 M0_BASSERT (offsetof(struct m0_confx_process, xr_header)==0)
 
static bool process_check (const void *bob)
 
 M0_CONF__BOB_DEFINE (m0_conf_process, M0_CONF_PROCESS_MAGIC, process_check)
 
 M0_CONF__INVARIANT_DEFINE (process_invariant, m0_conf_process)
 
static size_t _bitmap_width (const struct m0_bitmap_onwire *bow)
 
static int process_decode (struct m0_conf_obj *dest, const struct m0_confx_obj *src)
 
static int process_encode (struct m0_confx_obj *dest, const struct m0_conf_obj *src)
 
static bool process_match (const struct m0_conf_obj *cached, const struct m0_confx_obj *flat)
 
static int process_lookup (const struct m0_conf_obj *parent, const struct m0_fid *name, struct m0_conf_obj **out)
 
static const struct m0_fid ** process_downlinks (const struct m0_conf_obj *obj)
 
static void process_delete (struct m0_conf_obj *obj)
 
 M0_CONF__CTOR_DEFINE (process_create, m0_conf_process, &process_ops)
 

Variables

static const struct m0_conf_obj_ops process_ops
 
const struct m0_conf_obj_type M0_CONF_PROCESS_TYPE
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CONF

Definition at line 22 of file process.c.

◆ XCAST

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

Definition at line 29 of file process.c.

Function Documentation

◆ _bitmap_width()

static size_t _bitmap_width ( const struct m0_bitmap_onwire bow)
static

Definition at line 45 of file process.c.

Here is the caller graph for this function:

◆ M0_BASSERT()

M0_BASSERT ( offsetof(struct m0_confx_process, xr_header = =0)

◆ M0_CONF__BOB_DEFINE()

M0_CONF__BOB_DEFINE ( m0_conf_process  ,
M0_CONF_PROCESS_MAGIC  ,
process_check   
)

◆ M0_CONF__CTOR_DEFINE()

M0_CONF__CTOR_DEFINE ( process_create  ,
m0_conf_process  ,
process_ops 
)

◆ M0_CONF__INVARIANT_DEFINE()

M0_CONF__INVARIANT_DEFINE ( process_invariant  ,
m0_conf_process   
)

◆ process_check()

static bool process_check ( const void *  bob)
static

Definition at line 32 of file process.c.

Here is the call graph for this function:

◆ process_decode()

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

Definition at line 51 of file process.c.

Here is the call graph for this function:

◆ process_delete()

static void process_delete ( struct m0_conf_obj obj)
static

Definition at line 137 of file process.c.

Here is the call graph for this function:

◆ process_downlinks()

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

Definition at line 129 of file process.c.

Here is the call graph for this function:

◆ process_encode()

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

Definition at line 78 of file process.c.

Here is the call graph for this function:

◆ process_lookup()

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

Definition at line 117 of file process.c.

Here is the call graph for this function:

◆ process_match()

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

Definition at line 103 of file process.c.

Here is the call graph for this function:

Variable Documentation

◆ M0_CONF_PROCESS_TYPE

const struct m0_conf_obj_type M0_CONF_PROCESS_TYPE
Initial value:
= {
.cot_ftype = {
.ft_id = M0_CONF__PROCESS_FT_ID,
.ft_name = "conf_process",
},
.cot_create = &process_create,
.cot_xt = &m0_confx_process_xc,
.cot_branch = "u_process",
.cot_xc_init = &m0_xc_m0_confx_process_struct_init,
.cot_magic = M0_CONF_PROCESS_MAGIC
}

Definition at line 161 of file process.c.

◆ process_ops

const struct m0_conf_obj_ops process_ops
static
Initial value:
= {
.coo_invariant = process_invariant,
.coo_decode = process_decode,
.coo_encode = process_encode,
.coo_match = process_match,
.coo_lookup = process_lookup,
.coo_readdir = NULL,
.coo_downlinks = process_downlinks,
.coo_delete = process_delete
}
static int process_lookup(const struct m0_conf_obj *parent, const struct m0_fid *name, struct m0_conf_obj **out)
Definition: process.c:117
#define NULL
Definition: misc.h:38
static bool process_match(const struct m0_conf_obj *cached, const struct m0_confx_obj *flat)
Definition: process.c:103
static int process_decode(struct m0_conf_obj *dest, const struct m0_confx_obj *src)
Definition: process.c:51
static int process_encode(struct m0_confx_obj *dest, const struct m0_conf_obj *src)
Definition: process.c:78
static const struct m0_fid ** process_downlinks(const struct m0_conf_obj *obj)
Definition: process.c:129
static void process_delete(struct m0_conf_obj *obj)
Definition: process.c:137

Definition at line 148 of file process.c.