Motr  M0
filterc.c File Reference
#include "lib/trace.h"
#include "lib/finject.h"
#include "filterc.h"
Include dependency graph for filterc.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_FDMI
 

Functions

static int m0_filterc_start (struct m0_filterc_ctx *ctx, struct m0_reqh *reqh)
 
static void m0_filterc_stop (struct m0_filterc_ctx *ctx)
 
static int m0_filterc_open (struct m0_filterc_ctx *ctx, enum m0_fdmi_rec_type_id rec_type_id, struct m0_filterc_iter *iter)
 
static int m0_filterc_get_next (struct m0_filterc_iter *iter, struct m0_conf_fdmi_filter **out)
 
static void m0_filterc_close (struct m0_filterc_iter *iter)
 
M0_INTERNAL void m0_filterc_ctx_init (struct m0_filterc_ctx *ctx, const struct m0_filterc_ops *ops)
 
M0_INTERNAL void m0_filterc_ctx_fini (struct m0_filterc_ctx *ctx)
 
static int open_filter_group (struct m0_filterc_ctx *ctx, enum m0_fdmi_rec_type_id rec_type_id, struct m0_conf_obj **out)
 

Variables

const struct m0_filterc_ops filterc_def_ops
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_FDMI

Definition at line 23 of file filterc.c.

Function Documentation

◆ m0_filterc_close()

static void m0_filterc_close ( struct m0_filterc_iter iter)
static

Definition at line 167 of file filterc.c.

Here is the call graph for this function:

◆ m0_filterc_get_next()

static int m0_filterc_get_next ( struct m0_filterc_iter iter,
struct m0_conf_fdmi_filter **  out 
)
static

Definition at line 151 of file filterc.c.

Here is the call graph for this function:

◆ m0_filterc_open()

static int m0_filterc_open ( struct m0_filterc_ctx ctx,
enum m0_fdmi_rec_type_id  rec_type_id,
struct m0_filterc_iter iter 
)
static

Definition at line 133 of file filterc.c.

Here is the call graph for this function:

◆ m0_filterc_start()

static int m0_filterc_start ( struct m0_filterc_ctx ctx,
struct m0_reqh reqh 
)
static

Starts filterc.

Definition at line 60 of file filterc.c.

Here is the call graph for this function:

◆ m0_filterc_stop()

static void m0_filterc_stop ( struct m0_filterc_ctx ctx)
static

Definition at line 73 of file filterc.c.

Here is the call graph for this function:

◆ open_filter_group()

static int open_filter_group ( struct m0_filterc_ctx ctx,
enum m0_fdmi_rec_type_id  rec_type_id,
struct m0_conf_obj **  out 
)
static

Some setups dont have conf or its root (example: cas-service ut)

Todo:
Close opened groups?

Definition at line 86 of file filterc.c.

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