Motr  M0
m0_fom_ops Struct Reference

#include <fom.h>

Collaboration diagram for m0_fom_ops:
Collaboration graph

Data Fields

void(* fo_fini )(struct m0_fom *fom)
 
int(* fo_tick )(struct m0_fom *fom)
 
size_t(* fo_home_locality )(const struct m0_fom *fom)
 
void(* fo_addb2_descr )(struct m0_fom *fom)
 
void(* fo_hung_notify )(const struct m0_fom *fom)
 

Detailed Description

Fom operations vector.

Definition at line 655 of file fom.h.

Field Documentation

◆ fo_addb2_descr

void(* fo_addb2_descr) (struct m0_fom *fom)

Optional method to post additional fom description to addb2.

Definition at line 675 of file fom.h.

◆ fo_fini

void(* fo_fini) (struct m0_fom *fom)

Finalise this fom.

Definition at line 657 of file fom.h.

◆ fo_home_locality

size_t(* fo_home_locality) (const struct m0_fom *fom)

Finds home locality for this fom.

Returns numerical value based on certain fom parameters that is used to select the home locality from m0_fom_domain::fd_localities array.

Definition at line 671 of file fom.h.

◆ fo_hung_notify

void(* fo_hung_notify) (const struct m0_fom *fom)

Optional method to try and recover from a blocked situation. Invoked from fom.c::hung_fom_notify().

Definition at line 681 of file fom.h.

◆ fo_tick

int(* fo_tick) (struct m0_fom *fom)

Executes the next phase transition, "ticking" the fom machine.

Returns value of enum m0_fom_phase_outcome.

Definition at line 663 of file fom.h.


The documentation for this struct was generated from the following file: