Motr  M0
fom_simple.c File Reference
#include "lib/misc.h"
#include "lib/errno.h"
#include "lib/memory.h"
#include "lib/locality.h"
#include "lib/trace.h"
#include "lib/finject.h"
#include "reqh/reqh.h"
#include "reqh/reqh_service.h"
#include "fop/fom.h"
#include "fop/fom_simple.h"
Include dependency graph for fom_simple.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_FOP
 
#define FOM_SIMPLE(fom)   (container_of(fom, struct m0_fom_simple, si_fom))
 

Functions

M0_INTERNAL void m0_fom_simple_post (struct m0_fom_simple *simpleton, struct m0_reqh *reqh, struct m0_sm_conf *conf, int(*tick)(struct m0_fom *, void *, int *), void(*free)(struct m0_fom_simple *sfom), void *data, size_t locality)
 
M0_INTERNAL void m0_fom_simple_hoard (struct m0_fom_simple *cat, size_t nr, struct m0_reqh *reqh, struct m0_sm_conf *conf, int(*tick)(struct m0_fom *, void *, int *), void(*free)(struct m0_fom_simple *sfom), void *data)
 
M0_INTERNAL int m0_fom_simples_init (void)
 
M0_INTERNAL void m0_fom_simples_fini (void)
 
static int fom_simple_tick (struct m0_fom *fom)
 
static size_t fom_simple_locality_get (const struct m0_fom *fom)
 
static void fom_simple_fini (struct m0_fom *fom)
 
static int fom_simple_service_start (struct m0_reqh_service *service)
 
static void fom_simple_service_prepare_to_stop (struct m0_reqh_service *service)
 
static void fom_simple_service_stop (struct m0_reqh_service *service)
 
static void fom_simple_service_fini (struct m0_reqh_service *service)
 
static int fom_simple_service_allocate (struct m0_reqh_service **out, const struct m0_reqh_service_type *stype)
 

Variables

static const struct m0_fom_type_ops fom_simple_ft_ops
 
static struct m0_reqh_service_type fom_simple_rstype
 
static const struct m0_fom_ops fom_simple_ops
 
static struct m0_sm_conf fom_simple_conf
 
M0_EXTERN struct m0_sm_conf fom_states_conf
 
static struct m0_sm_state_descr fom_simple_phases []
 
static const struct m0_reqh_service_ops fom_simple_service_ops
 
static const struct m0_reqh_service_type_ops fom_simple_rsops