Motr  M0
note_foms.c File Reference
#include "lib/trace.h"
#include "lib/memory.h"
#include "lib/string.h"
#include "fop/fom_generic.h"
#include "fop/fop.h"
#include "fop/fom.h"
#include "ha/note.h"
#include "ha/note_fops.h"
#include "rpc/rpc.h"
#include "reqh/reqh.h"
#include "conf/confc.h"
Include dependency graph for note_foms.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_HA
 

Functions

static void ha_state_fom_fini (struct m0_fom *fom)
 
static size_t ha_state_fom_home_locality (const struct m0_fom *fom)
 
static int ha_state_set_fom_tick (struct m0_fom *fom)
 
static int ha_state_set_fom_create (struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh)
 
static void ha_state_get (struct m0_conf_cache *cache, struct m0_ha_nvec *req_fop, struct m0_ha_state_fop *rep_fop)
 
static int ha_state_get_fom_tick (struct m0_fom *fom)
 
static int ha_state_get_fom_create (struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh)
 

Variables

const struct m0_fom_ops m0_ha_state_set_fom_ops
 
const struct m0_fom_ops ha_state_get_fom_ops
 
static const struct m0_fom_type_ops ha_get_fomt_ops
 
static const struct m0_fom_type_ops ha_set_fomt_ops
 
const struct m0_fom_type_opsm0_ha_state_get_fom_type_ops = &ha_get_fomt_ops
 
const struct m0_fom_type_opsm0_ha_state_set_fom_type_ops = &ha_set_fomt_ops
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_HA

Definition at line 23 of file note_foms.c.

Function Documentation

◆ ha_state_fom_fini()

static void ha_state_fom_fini ( struct m0_fom fom)
static

Definition at line 37 of file note_foms.c.

Here is the call graph for this function:

◆ ha_state_fom_home_locality()

static size_t ha_state_fom_home_locality ( const struct m0_fom fom)
static

Definition at line 43 of file note_foms.c.

Here is the call graph for this function:

◆ ha_state_get()

static void ha_state_get ( struct m0_conf_cache cache,
struct m0_ha_nvec req_fop,
struct m0_ha_state_fop rep_fop 
)
static

Definition at line 93 of file note_foms.c.

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

◆ ha_state_get_fom_create()

static int ha_state_get_fom_create ( struct m0_fop fop,
struct m0_fom **  m,
struct m0_reqh reqh 
)
static

Definition at line 139 of file note_foms.c.

Here is the call graph for this function:

◆ ha_state_get_fom_tick()

static int ha_state_get_fom_tick ( struct m0_fom fom)
static

Definition at line 117 of file note_foms.c.

Here is the call graph for this function:

◆ ha_state_set_fom_create()

static int ha_state_set_fom_create ( struct m0_fop fop,
struct m0_fom **  m,
struct m0_reqh reqh 
)
static

Definition at line 64 of file note_foms.c.

Here is the call graph for this function:

◆ ha_state_set_fom_tick()

static int ha_state_set_fom_tick ( struct m0_fom fom)
static

Definition at line 48 of file note_foms.c.

Here is the call graph for this function:

Variable Documentation

◆ ha_get_fomt_ops

const struct m0_fom_type_ops ha_get_fomt_ops
static
Initial value:
= {
.fto_create = &ha_state_get_fom_create
}
static int ha_state_get_fom_create(struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh)
Definition: note_foms.c:139

Definition at line 183 of file note_foms.c.

◆ ha_set_fomt_ops

const struct m0_fom_type_ops ha_set_fomt_ops
static
Initial value:
= {
.fto_create = &ha_state_set_fom_create
}
static int ha_state_set_fom_create(struct m0_fop *fop, struct m0_fom **m, struct m0_reqh *reqh)
Definition: note_foms.c:64

Definition at line 187 of file note_foms.c.

◆ ha_state_get_fom_ops

const struct m0_fom_ops ha_state_get_fom_ops
Initial value:
= {
.fo_fini = ha_state_fom_fini,
.fo_home_locality = ha_state_fom_home_locality,
}
static size_t ha_state_fom_home_locality(const struct m0_fom *fom)
Definition: note_foms.c:43
static int ha_state_get_fom_tick(struct m0_fom *fom)
Definition: note_foms.c:117
static void ha_state_fom_fini(struct m0_fom *fom)
Definition: note_foms.c:37

Definition at line 133 of file note_foms.c.

◆ m0_ha_state_set_fom_ops

const struct m0_fom_ops m0_ha_state_set_fom_ops
Initial value:
= {
.fo_tick = &ha_state_set_fom_tick,
.fo_fini = &ha_state_fom_fini,
.fo_home_locality = &ha_state_fom_home_locality,
}
static int ha_state_set_fom_tick(struct m0_fom *fom)
Definition: note_foms.c:48
static size_t ha_state_fom_home_locality(const struct m0_fom *fom)
Definition: note_foms.c:43
static void ha_state_fom_fini(struct m0_fom *fom)
Definition: note_foms.c:37

Definition at line 58 of file note_foms.c.