Motr  M0
Fop State Machines for Spiel FOPs

Data Structures

struct  m0_conf_flip_fom
 
struct  m0_conf_load_fom
 

Enumerations

enum  m0_conf_flip_fom_phase { M0_FOPH_CONF_FLIP_PREPARE = M0_FOPH_NR + 1, M0_FOPH_CONF_APPLY }
 
enum  m0_conf_load_fom_phase {
  M0_FOPH_CONF_FOM_PREPARE = M0_FOPH_NR + 1, M0_FOPH_CONF_FOM_BUFFER_ALLOCATE, M0_FOPH_CONF_ZERO_COPY_INIT, M0_FOPH_CONF_ZERO_COPY_WAIT,
  M0_FOPH_CONF_BUFFER_FREE
}
 

Functions

M0_INTERNAL int m0_conf_flip_fom_create (struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
 
M0_INTERNAL int m0_conf_load_fom_create (struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
 

Detailed Description

Fop state machine for Spiel operations

See also
fom

FOP state machines for various Spiel operation

Note
Naming convention: For operation xyz, the FOP is named as m0_fop_xyz, its corresponding reply FOP is named as m0_fop_xyz_rep and FOM is named as m0_fom_xyz. For each FOM type, its corresponding create, state and fini methods are named as m0_fom_xyz_create, m0_fom_xyz_state, m0_fom_xyz_fini respectively.

Enumeration Type Documentation

◆ m0_conf_flip_fom_phase

The various phases for Confd flip FOM. complete FOM and reqh infrastructure is in place.

Enumerator
M0_FOPH_CONF_FLIP_PREPARE 
M0_FOPH_CONF_APPLY 

Definition at line 69 of file flip_fom.h.

◆ m0_conf_load_fom_phase

The various phases for Confd load FOM. complete FOM and reqh infrastructure is in place.

Enumerator
M0_FOPH_CONF_FOM_PREPARE 
M0_FOPH_CONF_FOM_BUFFER_ALLOCATE 
M0_FOPH_CONF_ZERO_COPY_INIT 
M0_FOPH_CONF_ZERO_COPY_WAIT 
M0_FOPH_CONF_BUFFER_FREE 

Definition at line 72 of file load_fom.h.

Function Documentation

◆ m0_conf_flip_fom_create()

M0_INTERNAL int m0_conf_flip_fom_create ( struct m0_fop fop,
struct m0_fom **  out,
struct m0_reqh reqh 
)

Create and initiate Spiel FOM and return generic struct m0_fom Find the corresponding fom_type and associate it with m0_fom. Associate fop with fom type.

Parameters
fopfile operation packet need to process
outfile operation machine need to allocate and initiate
Precondition
fop != NULL
fop is m0_fop_conf_flip
out != NULL
reqh != NULL

Definition at line 121 of file flip_fom.c.

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

◆ m0_conf_load_fom_create()

M0_INTERNAL int m0_conf_load_fom_create ( struct m0_fop fop,
struct m0_fom **  out,
struct m0_reqh reqh 
)

Creates and initiates Spiel FOM and return generic struct m0_fom Find the corresponding fom_type and associate it with m0_fom. Associate fop with fom type.

Parameters
fopfile operation packet need to process
outfile operation machine need to allocate and initiate
Precondition
fop != NULL
fop is m0_fop_conf_load
out != NULL

Definition at line 119 of file load_fom.c.

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