Motr  M0
pool_foms.c File Reference
#include "lib/trace.h"
#include "lib/errno.h"
#include "lib/memory.h"
#include "lib/assert.h"
#include "lib/misc.h"
#include "fop/fop.h"
#include "fop/fom_generic.h"
#include "reqh/reqh_service.h"
#include "pool/pool.h"
#include "pool/pool_foms.h"
#include "pool/pool_fops.h"
#include "rpc/rpc_opcodes.h"
#include "motr/setup.h"
#include "conf/diter.h"
#include "conf/helpers.h"
Include dependency graph for pool_foms.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_POOL
 

Functions

static int poolmach_fom_create (struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
 
static void poolmach_set_op (struct m0_fom *fom)
 
static void poolmach_query_op (struct m0_fom *fom)
 
static int poolmach_fom_tick (struct m0_fom *fom)
 
static size_t poolmach_fom_home_locality (const struct m0_fom *fom)
 
static void poolmach_fom_fini (struct m0_fom *fom)
 

Variables

static const struct m0_fom_ops poolmach_ops
 
const struct m0_fom_type_ops poolmach_fom_type_ops
 
struct m0_sm_state_descr poolmach_phases []
 
const struct m0_sm_conf poolmach_conf
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_POOL

Definition at line 22 of file pool_foms.c.

Function Documentation

◆ poolmach_fom_create()

static int poolmach_fom_create ( struct m0_fop fop,
struct m0_fom **  out,
struct m0_reqh reqh 
)
static

Definition at line 42 of file pool_foms.c.

Here is the call graph for this function:

◆ poolmach_fom_fini()

static void poolmach_fom_fini ( struct m0_fom fom)
static

Definition at line 216 of file pool_foms.c.

Here is the call graph for this function:

◆ poolmach_fom_home_locality()

static size_t poolmach_fom_home_locality ( const struct m0_fom fom)
static

Definition at line 209 of file pool_foms.c.

Here is the call graph for this function:

◆ poolmach_fom_tick()

static int poolmach_fom_tick ( struct m0_fom fom)
static

Definition at line 182 of file pool_foms.c.

Here is the call graph for this function:

◆ poolmach_query_op()

static void poolmach_query_op ( struct m0_fom fom)
static

Definition at line 126 of file pool_foms.c.

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

◆ poolmach_set_op()

static void poolmach_set_op ( struct m0_fom fom)
static

Definition at line 80 of file pool_foms.c.

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

Variable Documentation

◆ poolmach_conf

const struct m0_sm_conf poolmach_conf
Initial value:
= {
.scf_name = "poolmach",
.scf_nr_states = ARRAY_SIZE(poolmach_phases),
.scf_state = poolmach_phases
}
struct m0_sm_state_descr poolmach_phases[]
Definition: pool_foms.c:238
#define ARRAY_SIZE(a)
Definition: misc.h:45

Definition at line 245 of file pool_foms.c.

◆ poolmach_fom_type_ops

const struct m0_fom_type_ops poolmach_fom_type_ops
Initial value:
= {
.fto_create = poolmach_fom_create
}
static int poolmach_fom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
Definition: pool_foms.c:42

I/O FOM type operation vector.

Definition at line 234 of file pool_foms.c.

◆ poolmach_ops

static const struct m0_fom_ops poolmach_ops
static
Initial value:
= {
.fo_fini = poolmach_fom_fini,
.fo_tick = poolmach_fom_tick,
.fo_home_locality = poolmach_fom_home_locality
}
static int poolmach_fom_tick(struct m0_fom *fom)
Definition: pool_foms.c:182
static void poolmach_fom_fini(struct m0_fom *fom)
Definition: pool_foms.c:216
static size_t poolmach_fom_home_locality(const struct m0_fom *fom)
Definition: pool_foms.c:209

I/O FOM operation vector.

Definition at line 40 of file pool_foms.c.

◆ poolmach_phases

struct m0_sm_state_descr poolmach_phases[]
Initial value:
= {
.sd_name = "Pool Machine query/set",
}
}
#define M0_BITS(...)
Definition: misc.h:236

Definition at line 238 of file pool_foms.c.