Motr  M0
sw_update_fom.c File Reference
#include "lib/trace.h"
#include "lib/bob.h"
#include "lib/misc.h"
#include "lib/errno.h"
#include "reqh/reqh.h"
#include "sm/sm.h"
#include "rpc/rpc_opcodes.h"
#include "cm/sw.h"
#include "cm/cm.h"
#include "cm/proxy.h"
#include "be/op.h"
Include dependency graph for sw_update_fom.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CM
 

Enumerations

enum  cm_sw_update_fom_phase { SWU_UPDATE = M0_FOM_PHASE_INIT, SWU_FINI = M0_FOM_PHASE_FINISH, SWU_NR }
 

Functions

static struct m0_cmcm_swu2cm (struct m0_cm_sw_update *swu)
 
static struct m0_cm_sw_updatecm_fom2swu (struct m0_fom *fom)
 
static int swu_update (struct m0_cm_sw_update *swu)
 
static uint64_t cm_swu_fom_locality (const struct m0_fom *fom)
 
static int cm_swu_fom_tick (struct m0_fom *fom)
 
static void cm_swu_fom_fini (struct m0_fom *fom)
 
M0_INTERNAL void m0_cm_sw_update_init (struct m0_cm_type *cmtype)
 
M0_INTERNAL void m0_cm_sw_update_start (struct m0_cm *cm)
 
M0_INTERNAL void m0_cm_sw_update_complete (struct m0_cm *cm)
 

Variables

static const struct m0_fom_type_ops cm_sw_update_fom_type_ops
 
static struct m0_sm_state_descr cm_sw_update_sd [SWU_NR]
 
struct m0_sm_conf cm_sw_update_conf
 
static int(* swu_action [])(struct m0_cm_sw_update *swu)
 
static const struct m0_fom_ops cm_sw_update_fom_ops
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CM

Definition at line 23 of file sw_update_fom.c.