Motr  M0
flt_eval.c File Reference
#include "lib/trace.h"
#include "lib/types.h"
#include "lib/errno.h"
#include "fdmi/filter.h"
#include "fdmi/flt_eval.h"
#include "conf/obj.h"
Include dependency graph for flt_eval.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_FDMI
 

Functions

static int eval_or (struct m0_fdmi_flt_operands *opnds, struct m0_fdmi_flt_operand *res)
 
static int eval_gt (struct m0_fdmi_flt_operands *opnds, struct m0_fdmi_flt_operand *res)
 
static void init_std_operation_handlers (m0_fdmi_flt_op_cb_t *handlers)
 
M0_INTERNAL int m0_fdmi_eval_add_op_cb (struct m0_fdmi_eval_ctx *ctx, enum m0_fdmi_flt_op_code op, m0_fdmi_flt_op_cb_t cb)
 
M0_INTERNAL void m0_fdmi_eval_del_op_cb (struct m0_fdmi_eval_ctx *ctx, enum m0_fdmi_flt_op_code op)
 
M0_INTERNAL void m0_fdmi_eval_init (struct m0_fdmi_eval_ctx *ctx)
 
static int eval_flt_node (struct m0_fdmi_eval_ctx *ctx, struct m0_fdmi_flt_node *node, struct m0_fdmi_flt_operand *res, struct m0_fdmi_eval_var_info *var_info)
 
M0_INTERNAL int m0_fdmi_eval_flt (struct m0_fdmi_eval_ctx *ctx, struct m0_conf_fdmi_filter *filter, struct m0_fdmi_eval_var_info *var_info)
 
M0_INTERNAL void m0_fdmi_eval_fini (struct m0_fdmi_eval_ctx *ctx)
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_FDMI

Definition at line 23 of file flt_eval.c.

Function Documentation

◆ eval_flt_node()

static int eval_flt_node ( struct m0_fdmi_eval_ctx ctx,
struct m0_fdmi_flt_node node,
struct m0_fdmi_flt_operand res,
struct m0_fdmi_eval_var_info var_info 
)
static
Todo:
Free resources from operands?

Definition at line 138 of file flt_eval.c.

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

◆ eval_gt()

static int eval_gt ( struct m0_fdmi_flt_operands opnds,
struct m0_fdmi_flt_operand res 
)
static

Definition at line 53 of file flt_eval.c.

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

◆ eval_or()

static int eval_or ( struct m0_fdmi_flt_operands opnds,
struct m0_fdmi_flt_operand res 
)
static

Definition at line 34 of file flt_eval.c.

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

◆ init_std_operation_handlers()

static void init_std_operation_handlers ( m0_fdmi_flt_op_cb_t handlers)
static

Definition at line 95 of file flt_eval.c.

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