Motr  M0
Console_it

Data Structures

struct  m0_cons_atom_ops
 operation to get value of ATOM type (i.e. CHAR, U64 etc). More...
 

Enumerations

enum  m0_cons_data_process_type { CONS_IT_INPUT, CONS_IT_OUTPUT, CONS_IT_SHOW }
 

Functions

static void depth_print (int depth)
 
static void default_show (const struct m0_xcode_type *xct, const char *name, void *data)
 
static void void_get (const struct m0_xcode_type *xct, const char *name, void *data)
 
static void void_set (const struct m0_xcode_type *xct, const char *name, void *data)
 
static void byte_get (const struct m0_xcode_type *xct, const char *name, void *data)
 
static void * cons_yaml_get_unsafe (const char *name)
 
static void byte_set (const struct m0_xcode_type *xct, const char *name, void *data)
 
static void u32_get (const struct m0_xcode_type *xct, const char *name, void *data)
 
static void u32_set (const struct m0_xcode_type *xct, const char *name, void *data)
 
static void u64_get (const struct m0_xcode_type *xct, const char *name, void *data)
 
static void u64_set (const struct m0_xcode_type *xct, const char *name, void *data)
 
static void console_xc_atom_process (struct m0_xcode_cursor_frame *top, enum m0_cons_data_process_type type)
 
static int cons_fop_iterate (struct m0_fop *fop, enum m0_cons_data_process_type type)
 
M0_INTERNAL int m0_cons_fop_obj_input (struct m0_fop *fop)
 Helper function for FOP input. More...
 
M0_INTERNAL int m0_cons_fop_obj_output (struct m0_fop *fop)
 Helper function for FOP output. More...
 
M0_INTERNAL int m0_cons_fop_fields_show (struct m0_fop *fop)
 Iterate over FOP fields and prints the names. More...
 

Variables

bool m0_console_verbose
 
static struct m0_cons_atom_ops atom_ops [M0_XAT_NR]
 Methods to handle U64, U32 etc. More...
 
enum m0_cons_data_process_type M0_XCA_DOMAIN
 

Detailed Description

Enumeration Type Documentation

◆ m0_cons_data_process_type

Enumerator
CONS_IT_INPUT 
CONS_IT_OUTPUT 
CONS_IT_SHOW 

Definition at line 36 of file console_it.h.

Function Documentation

◆ byte_get()

static void byte_get ( const struct m0_xcode_type xct,
const char *  name,
void *  data 
)
static

Definition at line 63 of file console_it.c.

◆ byte_set()

static void byte_set ( const struct m0_xcode_type xct,
const char *  name,
void *  data 
)
static

Definition at line 77 of file console_it.c.

Here is the call graph for this function:

◆ cons_fop_iterate()

static int cons_fop_iterate ( struct m0_fop fop,
enum m0_cons_data_process_type  type 
)
static

Definition at line 200 of file console_it.c.

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

◆ cons_yaml_get_unsafe()

static void* cons_yaml_get_unsafe ( const char *  name)
static

Definition at line 70 of file console_it.c.

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

◆ console_xc_atom_process()

static void console_xc_atom_process ( struct m0_xcode_cursor_frame *  top,
enum m0_cons_data_process_type  type 
)
static

Definition at line 159 of file console_it.c.

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

◆ default_show()

static void default_show ( const struct m0_xcode_type xct,
const char *  name,
void *  data 
)
static

Definition at line 47 of file console_it.c.

◆ depth_print()

static void depth_print ( int  depth)
static

Definition at line 40 of file console_it.c.

Here is the caller graph for this function:

◆ m0_cons_fop_fields_show()

M0_INTERNAL int m0_cons_fop_fields_show ( struct m0_fop fop)

Iterate over FOP fields and prints the names.

Parameters
fopfop object.

Definition at line 277 of file console_it.c.

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

◆ m0_cons_fop_obj_input()

M0_INTERNAL int m0_cons_fop_obj_input ( struct m0_fop fop)

Helper function for FOP input.

Parameters
fopfop object.

Definition at line 267 of file console_it.c.

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

◆ m0_cons_fop_obj_output()

M0_INTERNAL int m0_cons_fop_obj_output ( struct m0_fop fop)

Helper function for FOP output.

Parameters
fopfop object.

Definition at line 272 of file console_it.c.

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

◆ u32_get()

static void u32_get ( const struct m0_xcode_type xct,
const char *  name,
void *  data 
)
static

Definition at line 96 of file console_it.c.

◆ u32_set()

static void u32_set ( const struct m0_xcode_type xct,
const char *  name,
void *  data 
)
static

Definition at line 103 of file console_it.c.

Here is the call graph for this function:

◆ u64_get()

static void u64_get ( const struct m0_xcode_type xct,
const char *  name,
void *  data 
)
static

Definition at line 122 of file console_it.c.

◆ u64_set()

static void u64_set ( const struct m0_xcode_type xct,
const char *  name,
void *  data 
)
static

Definition at line 130 of file console_it.c.

Here is the call graph for this function:

◆ void_get()

static void void_get ( const struct m0_xcode_type xct,
const char *  name,
void *  data 
)
static

Definition at line 53 of file console_it.c.

◆ void_set()

static void void_set ( const struct m0_xcode_type xct,
const char *  name,
void *  data 
)
static

Definition at line 58 of file console_it.c.

Variable Documentation

◆ atom_ops

struct m0_cons_atom_ops atom_ops[M0_XAT_NR]
static
Initial value:
= {
}
static void u64_set(const struct m0_xcode_type *xct, const char *name, void *data)
Definition: console_it.c:130
static void u32_get(const struct m0_xcode_type *xct, const char *name, void *data)
Definition: console_it.c:96
static void void_get(const struct m0_xcode_type *xct, const char *name, void *data)
Definition: console_it.c:53
static void byte_set(const struct m0_xcode_type *xct, const char *name, void *data)
Definition: console_it.c:77
static void byte_get(const struct m0_xcode_type *xct, const char *name, void *data)
Definition: console_it.c:63
static void void_set(const struct m0_xcode_type *xct, const char *name, void *data)
Definition: console_it.c:58
static void default_show(const struct m0_xcode_type *xct, const char *name, void *data)
Definition: console_it.c:47
static void u32_set(const struct m0_xcode_type *xct, const char *name, void *data)
Definition: console_it.c:103
static void u64_get(const struct m0_xcode_type *xct, const char *name, void *data)
Definition: console_it.c:122

Methods to handle U64, U32 etc.

Definition at line 152 of file console_it.c.

◆ m0_console_verbose

bool m0_console_verbose

Definition at line 38 of file console_it.c.

◆ M0_XCA_DOMAIN

enum m0_cons_data_process_type M0_XCA_DOMAIN