Motr  M0
tx_group_format.h File Reference
#include "be/io.h"
#include "be/tx_regmap.h"
#include "be/fmt.h"
#include "be/log.h"
#include "be/tx_credit.h"
Include dependency graph for tx_group_format.h:

Go to the source code of this file.

Data Structures

struct  m0_be_group_format_cfg
 
struct  m0_be_group_format
 

Macros

#define __MOTR_BE_TX_GROUP_ONDISK_H__
 

Typedefs

typedef void(* m0_be_group_format_reg_area_rebuild_t) (struct m0_be_reg_area *ra, struct m0_be_reg_area *ra_new, void *param)
 

Enumerations

enum  {
  M0_BE_GROUP_FORMAT_LEVEL_ASSIGNS, M0_BE_GROUP_FORMAT_LEVEL_OP_INIT, M0_BE_GROUP_FORMAT_LEVEL_FMT_GROUP_INIT, M0_BE_GROUP_FORMAT_LEVEL_FMT_CBLOCK_INIT,
  M0_BE_GROUP_FORMAT_LEVEL_LOG_RECORD_INIT, M0_BE_GROUP_FORMAT_LEVEL_LOG_RECORD_IO_CREATE_GROUP, M0_BE_GROUP_FORMAT_LEVEL_LOG_RECORD_IO_CREATE_CBLOCK, M0_BE_GROUP_FORMAT_LEVEL_LOG_RECORD_ITER_INIT,
  M0_BE_GROUP_FORMAT_LEVEL_INITED, M0_BE_GROUP_FORMAT_LEVEL_LOG_RECORD_ALLOCATE, M0_BE_GROUP_FORMAT_LEVEL_ALLOCATED
}
 

Functions

M0_INTERNAL int m0_be_group_format_init (struct m0_be_group_format *gft, struct m0_be_group_format_cfg *gft_cfg, struct m0_be_tx_group *group, struct m0_be_log *log)
 
M0_INTERNAL void m0_be_group_format_fini (struct m0_be_group_format *gft)
 
M0_INTERNAL bool m0_be_group_format__invariant (struct m0_be_group_format *go)
 
M0_INTERNAL void m0_be_group_format_reset (struct m0_be_group_format *gft)
 
M0_INTERNAL int m0_be_group_format_allocate (struct m0_be_group_format *gft)
 
M0_INTERNAL void m0_be_group_format_deallocate (struct m0_be_group_format *gft)
 
M0_INTERNAL void m0_be_group_format_module_setup (struct m0_be_group_format *gft, struct m0_be_group_format_cfg *gft_cfg)
 
M0_INTERNAL void m0_be_group_format_prepare (struct m0_be_group_format *gft, struct m0_be_op *op)
 
M0_INTERNAL void m0_be_group_format_encode (struct m0_be_group_format *gft)
 
M0_INTERNAL int m0_be_group_format_decode (struct m0_be_group_format *gft)
 
M0_INTERNAL void m0_be_group_format_reg_log_add (struct m0_be_group_format *gft, const struct m0_be_reg_d *rd)
 
M0_INTERNAL void m0_be_group_format_reg_seg_add (struct m0_be_group_format *gft, const struct m0_be_reg_d *rd)
 
M0_INTERNAL uint32_t m0_be_group_format_reg_nr (const struct m0_be_group_format *gft)
 
M0_INTERNAL void m0_be_group_format_reg_get (const struct m0_be_group_format *gft, uint32_t index, struct m0_be_reg_d *rd)
 
M0_INTERNAL void m0_be_group_format_tx_add (struct m0_be_group_format *gft, struct m0_be_fmt_tx *ftx)
 
M0_INTERNAL uint32_t m0_be_group_format_tx_nr (const struct m0_be_group_format *gft)
 
M0_INTERNAL void m0_be_group_format_tx_get (const struct m0_be_group_format *gft, uint32_t index, struct m0_be_fmt_tx *ftx)
 
M0_INTERNAL struct m0_be_fmt_group_infom0_be_group_format_group_info (struct m0_be_group_format *gft)
 
M0_INTERNAL m0_bcount_t m0_be_group_format_log_reserved_size (struct m0_be_log *log, struct m0_be_tx_credit *cred, m0_bcount_t cred_payload)
 
M0_INTERNAL void m0_be_group_format_log_use (struct m0_be_group_format *gft, m0_bcount_t size_reserved)
 
M0_INTERNAL m0_bindex_t m0_be_group_format_log_position (const struct m0_be_group_format *gft)
 
M0_INTERNAL m0_bindex_t m0_be_group_format_log_discarded (const struct m0_be_group_format *gft)
 
M0_INTERNAL void m0_be_group_format_recovery_prepare (struct m0_be_group_format *gft, struct m0_be_log *log)
 
M0_INTERNAL void m0_be_group_format_log_write (struct m0_be_group_format *gft, struct m0_be_op *op)
 
M0_INTERNAL void m0_be_group_format_log_read (struct m0_be_group_format *gft, struct m0_be_op *op)
 
M0_INTERNAL void m0_be_group_format_seg_place_prepare (struct m0_be_group_format *gft)
 
M0_INTERNAL void m0_be_group_format_seg_place (struct m0_be_group_format *gft, struct m0_be_op *op)
 
M0_INTERNAL void m0_be_group_format_discard (struct m0_be_log_discard *ld, struct m0_be_log_discard_item *ldi)
 
M0_INTERNAL void m0_be_group_format_seg_io_credit (struct m0_be_group_format_cfg *gft_cfg, struct m0_be_io_credit *io_cred)
 

Macro Definition Documentation

◆ __MOTR_BE_TX_GROUP_ONDISK_H__

#define __MOTR_BE_TX_GROUP_ONDISK_H__

Definition at line 27 of file tx_group_format.h.