Motr  M0
dispatcher.c File Reference
#include "lib/trace.h"
#include "ha/dispatcher.h"
#include "lib/memory.h"
#include "lib/errno.h"
#include "ha/note.h"
#include "ha/failvec.h"
#include "motr/keepalive.h"
#include "module/instance.h"
Include dependency graph for dispatcher.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_HA
 

Enumerations

enum  ha_dispatcher_level {
  HA_DISPATCHER_LEVEL_TLIST, HA_DISPATCHER_LEVEL_NOTE_HANDLER_ALLOC, HA_DISPATCHER_LEVEL_NOTE_HANDLER_INIT, HA_DISPATCHER_LEVEL_FVEC_HANDLER_ALLOC,
  HA_DISPATCHER_LEVEL_FVEC_HANDLER_INIT, HA_DISPATCHER_LEVEL_KEEPALIVE_HANDLER_ALLOC, HA_DISPATCHER_LEVEL_KEEPALIVE_HANDLER_INIT, HA_DISPATCHER_LEVEL_READY
}
 

Functions

 M0_TL_DESCR_DEFINE (ha_dispatcher_handlers, "m0_ha_dispatcher::hds_handlers", static, struct m0_ha_handler, hh_link, hh_magic, 21, 22)
 
 M0_TL_DEFINE (ha_dispatcher_handlers, static, struct m0_ha_handler)
 
static int ha_dispatcher_level_enter (struct m0_module *module)
 
static void ha_dispatcher_level_leave (struct m0_module *module)
 
M0_INTERNAL int m0_ha_dispatcher_init (struct m0_ha_dispatcher *hd, struct m0_ha_dispatcher_cfg *hd_cfg)
 
M0_INTERNAL void m0_ha_dispatcher_fini (struct m0_ha_dispatcher *hd)
 
M0_INTERNAL void m0_ha_dispatcher_attach (struct m0_ha_dispatcher *hd, struct m0_ha_handler *hh)
 
M0_INTERNAL void m0_ha_dispatcher_detach (struct m0_ha_dispatcher *hd, struct m0_ha_handler *hh)
 
M0_INTERNAL void m0_ha_dispatcher_handle (struct m0_ha_dispatcher *hd, struct m0_ha *ha, struct m0_ha_link *hl, struct m0_ha_msg *msg, uint64_t tag)
 

Variables

enum ha_dispatcher_level M0_XCA_DOMAIN
 
static const struct m0_modlev ha_dispatcher_levels []