Motr
M0
|
Data Structures | |
struct | conf_walker |
Macros | |
#define | M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CONF |
Enumerations | |
enum | { M0_CW_STOP, M0_CW_CONTINUE, M0_CW_SKIP_SUBTREE, M0_CW_SKIP_SIBLINGS } |
Functions | |
static int | conf_walker_down (struct conf_walker *w, void *args) |
static int | conf_walker_up (struct conf_walker *w) |
static struct m0_conf_obj * | conf_downlink_first (const struct m0_conf_obj *obj) |
static struct m0_conf_obj * | conf_downlink_next (const struct m0_conf_obj *parent, const struct m0_conf_obj *child) |
M0_INTERNAL int | m0_conf_walk (int(*fn)(struct m0_conf_obj *obj, void *args), struct m0_conf_obj *origin, void *args) |
static void | conf_walker_turn (struct conf_walker *w) |
anonymous enum |
fn() parameter of m0_conf_walk() should return one of these values. In case of error, negative error code (-Exxx) should be returned.
|
static |
|
static |
|
static |
|
static |
|
static |
M0_INTERNAL int m0_conf_walk | ( | int(*)(struct m0_conf_obj *obj, void *args) | fn, |
struct m0_conf_obj * | origin, | ||
void * | args | ||
) |
Performs depth-first traversal of the tree of conf objects, starting from ‘origin’, and calls fn() once for each conf object in the tree.
fn() should return one of M0_CW_* values (see enum above), or -Exxx in case of error.
Definition at line 49 of file walk.c.