Motr  M0
fmt.c File Reference
#include "lib/trace.h"
#include "be/fmt.h"
#include "be/fmt_xc.h"
#include "lib/buf.h"
#include "lib/vec.h"
#include "lib/misc.h"
#include "lib/errno.h"
#include "lib/memory.h"
#include "xcode/xcode.h"
Include dependency graph for fmt.c:

Go to the source code of this file.

Data Structures

struct  m0_fmt_xcode_ctx
 

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_BE
 
#define M0_BE_FMT_DEFINE_INIT_SIMPLE(name)
 
#define M0_BE_FMT_DEFINE_XCODE(name)
 

Functions

static void * disabled_xcode_alloc (struct m0_xcode_cursor *it, size_t nob)
 
static void disabled_xcode_free (struct m0_xcode_cursor *it)
 
static m0_bcount_t be_fmt_xcoded_size (struct m0_xcode_type *type, void *object)
 
static int be_fmt_encode (struct m0_xcode_type *type, void *object, struct m0_bufvec_cursor *cur)
 
static void * be_fmt_alloc (struct m0_xcode_cursor *it, size_t nob)
 
static int be_fmt_decode (struct m0_xcode_type *type, void **object, struct m0_bufvec_cursor *cur, const struct m0_be_fmt_decode_cfg *cfg)
 
static void be_fmt_decoded_free (struct m0_xcode_type *type, void *object)
 
static bool m0_be_fmt_group__invariant (struct m0_be_fmt_group *fg)
 
static void be_fmt_content_bufs_init (struct m0_be_fmt_group *fg)
 
M0_INTERNAL void m0_be_fmt_type_trace_end (const struct m0_xcode_cursor *it)
 
M0_INTERNAL int m0_be_fmt_type_trace (const struct m0_xcode_cursor *it)
 
M0_INTERNAL int m0_be_fmt_group_init (struct m0_be_fmt_group *fg, const struct m0_be_fmt_group_cfg *cfg)
 
M0_INTERNAL void m0_be_fmt_group_fini (struct m0_be_fmt_group *fg)
 
M0_INTERNAL void m0_be_fmt_group_reset (struct m0_be_fmt_group *fg)
 
M0_INTERNAL m0_bcount_t m0_be_fmt_group_size (struct m0_be_fmt_group *fg)
 
M0_INTERNAL m0_bcount_t m0_be_fmt_group_size_max (const struct m0_be_fmt_group_cfg *cfg)
 
M0_INTERNAL int m0_be_fmt_group_encode (struct m0_be_fmt_group *fg, struct m0_bufvec_cursor *cur)
 
M0_INTERNAL int m0_be_fmt_group_decode (struct m0_be_fmt_group **fg, struct m0_bufvec_cursor *cur, const struct m0_be_fmt_decode_cfg *cfg)
 
M0_INTERNAL void m0_be_fmt_group_decoded_free (struct m0_be_fmt_group *fg)
 
M0_INTERNAL void m0_be_fmt_group_reg_add (struct m0_be_fmt_group *fg, const struct m0_be_fmt_reg *freg)
 
M0_INTERNAL uint32_t m0_be_fmt_group_reg_nr (const struct m0_be_fmt_group *fg)
 
M0_INTERNAL void m0_be_fmt_group_reg_by_id (const struct m0_be_fmt_group *fg, uint32_t index, struct m0_be_fmt_reg *freg)
 
M0_INTERNAL void m0_be_fmt_group_tx_add (struct m0_be_fmt_group *fg, const struct m0_be_fmt_tx *ftx)
 
M0_INTERNAL uint32_t m0_be_fmt_group_tx_nr (const struct m0_be_fmt_group *fg)
 
M0_INTERNAL void m0_be_fmt_group_tx_by_id (const struct m0_be_fmt_group *fg, uint32_t index, struct m0_be_fmt_tx *ftx)
 
M0_INTERNAL struct m0_be_fmt_group_infom0_be_fmt_group_info_get (struct m0_be_fmt_group *fg)
 
M0_INTERNAL bool m0_be_fmt_group_sanity_check (struct m0_be_fmt_group *fg)
 
M0_INTERNAL int m0_be_fmt_log_record_header_init (struct m0_be_fmt_log_record_header *obj, const struct m0_be_fmt_log_record_header_cfg *cfg)
 
M0_INTERNAL void m0_be_fmt_log_record_header_fini (struct m0_be_fmt_log_record_header *obj)
 
M0_INTERNAL void m0_be_fmt_log_record_header_reset (struct m0_be_fmt_log_record_header *obj)
 
M0_INTERNAL m0_bcount_t m0_be_fmt_log_record_header_size_max (const struct m0_be_fmt_log_record_header_cfg *cfg)
 
M0_INTERNAL void m0_be_fmt_log_record_header_io_size_add (struct m0_be_fmt_log_record_header *obj, m0_bcount_t size)
 
 M0_BE_FMT_DEFINE_XCODE (log_record_header)
 
 M0_BE_FMT_DEFINE_INIT_SIMPLE (log_record_footer)
 
 M0_BE_FMT_DEFINE_XCODE (log_record_footer)
 
 M0_BE_FMT_DEFINE_INIT_SIMPLE (log_store_header)
 
 M0_BE_FMT_DEFINE_XCODE (log_store_header)
 
 M0_BE_FMT_DEFINE_INIT_SIMPLE (cblock)
 
 M0_BE_FMT_DEFINE_XCODE (cblock)
 
 M0_BE_FMT_DEFINE_INIT_SIMPLE (log_header)
 
 M0_BE_FMT_DEFINE_XCODE (log_header)
 

Variables

struct m0_fmt_xcode_ctx M0_XCA_DOMAIN
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_BE

Definition at line 23 of file fmt.c.