Motr  M0
fom_generic.c File Reference
#include "lib/trace.h"
#include "lib/errno.h"
#include "lib/assert.h"
#include "lib/memory.h"
#include "lib/misc.h"
#include "lib/string.h"
#include "stob/stob.h"
#include "net/net.h"
#include "fop/fop.h"
#include "dtm/dtm.h"
#include "rpc/rpc.h"
#include "rpc/rpc_opcodes.h"
#include "rpc/item_internal.h"
#include "reqh/reqh.h"
#include "fop/fom_generic.h"
#include "fop/fom_generic_xc.h"
#include "addb2/addb2.h"
#include "addb2/identifier.h"
#include "dtm0/service.h"
Include dependency graph for fom_generic.c:

Go to the source code of this file.

Data Structures

struct  fom_phase_desc
 

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_FOP
 

Functions

M0_INTERNAL void m0_fom_generic_fini (void)
 
M0_INTERNAL int m0_fom_generic_init (void)
 
M0_INTERNAL void m0_fom_mod_rep_fill (struct m0_fop_mod_rep *rep, struct m0_fom *fom)
 
bool m0_rpc_item_is_generic_reply_fop (const struct m0_rpc_item *item)
 
int32_t m0_rpc_item_generic_reply_rc (const struct m0_rpc_item *reply)
 
static bool fom_is_update (const struct m0_fom *fom)
 
static int fom_phase_init (struct m0_fom *fom)
 
static int fom_authen (struct m0_fom *fom)
 
static int fom_authen_wait (struct m0_fom *fom)
 
static int fom_loc_resource (struct m0_fom *fom)
 
static int fom_loc_resource_wait (struct m0_fom *fom)
 
static int fom_dist_resource (struct m0_fom *fom)
 
static int fom_dist_resource_wait (struct m0_fom *fom)
 
static int fom_obj_check (struct m0_fom *fom)
 
static int fom_obj_check_wait (struct m0_fom *fom)
 
static int fom_auth (struct m0_fom *fom)
 
static int fom_auth_wait (struct m0_fom *fom)
 
static int fom_tx_init (struct m0_fom *fom)
 
static int fom_tx_open (struct m0_fom *fom)
 
static int fom_tx_wait (struct m0_fom *fom)
 
static void generic_reply_build (struct m0_fom *fom)
 
static int fom_failure (struct m0_fom *fom)
 
static int fom_success (struct m0_fom *fom)
 
static int fom_fol_rec_add (struct m0_fom *fom)
 
static int fom_tx_commit (struct m0_fom *fom)
 
M0_INTERNAL int m0_fom_tx_logged_wait (struct m0_fom *fom)
 
M0_INTERNAL int m0_fom_tx_done_wait (struct m0_fom *fom)
 
static int fom_queue_reply (struct m0_fom *fom)
 
static int fom_queue_reply_wait (struct m0_fom *fom)
 
static int fom_timeout (struct m0_fom *fom)
 
 M0_BASSERT (ARRAY_SIZE(m0_generic_phases_trans)==M0_FOM_GENERIC_TRANS_NR)
 
int m0_fom_tick_generic (struct m0_fom *fom)
 

Variables

struct m0_fop_type m0_fop_generic_reply_fopt
 
static const struct fom_phase_desc fpd_table []
 
static struct m0_sm_state_descr generic_phases []
 
struct m0_sm_trans_descr m0_generic_phases_trans []
 
const struct m0_sm_conf m0_generic_conf
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_FOP

Definition at line 23 of file fom_generic.c.