Motr  M0
ha.h File Reference
#include "lib/tlist.h"
#include "lib/types.h"
#include "lib/mutex.h"
#include "fid/fid.h"
#include "module/module.h"
#include "ha/entrypoint.h"
#include "ha/cookie.h"
Include dependency graph for ha.h:

Go to the source code of this file.

Data Structures

struct  m0_ha_ops
 
struct  m0_ha_cfg
 
struct  m0_ha
 

Macros

#define __MOTR_HA_HA_H__
 

Enumerations

enum  m0_ha_level {
  M0_HA_LEVEL_ASSIGNS, M0_HA_LEVEL_ADDR_STRDUP, M0_HA_LEVEL_LINK_SERVICE, M0_HA_LEVEL_ENTRYPOINT_SERVER_INIT,
  M0_HA_LEVEL_ENTRYPOINT_CLIENT_INIT, M0_HA_LEVEL_INIT, M0_HA_LEVEL_ENTRYPOINT_SERVER_START, M0_HA_LEVEL_INCOMING_LINKS,
  M0_HA_LEVEL_START, M0_HA_LEVEL_LINK_CTX_ALLOC, M0_HA_LEVEL_LINK_CTX_INIT, M0_HA_LEVEL_ENTRYPOINT_CLIENT_START,
  M0_HA_LEVEL_ENTRYPOINT_CLIENT_WAIT, M0_HA_LEVEL_LINK_ASSIGN, M0_HA_LEVEL_CONNECT
}
 

Functions

M0_INTERNAL int m0_ha_init (struct m0_ha *ha, struct m0_ha_cfg *ha_cfg)
 
M0_INTERNAL int m0_ha_start (struct m0_ha *ha)
 
M0_INTERNAL void m0_ha_stop (struct m0_ha *ha)
 
M0_INTERNAL void m0_ha_fini (struct m0_ha *ha)
 
void m0_ha_entrypoint_reply (struct m0_ha *ha, const struct m0_uint128 *req_id, const struct m0_ha_entrypoint_rep *rep, struct m0_ha_link **hl_ptr)
 
M0_INTERNAL struct m0_ha_linkm0_ha_connect (struct m0_ha *ha)
 
M0_INTERNAL void m0_ha_disconnect (struct m0_ha *ha)
 
M0_INTERNAL void m0_ha_disconnect_incoming (struct m0_ha *ha, struct m0_ha_link *hl)
 
M0_INTERNAL void m0_ha_send (struct m0_ha *ha, struct m0_ha_link *hl, const struct m0_ha_msg *msg, uint64_t *tag)
 
M0_INTERNAL void m0_ha_delivered (struct m0_ha *ha, struct m0_ha_link *hl, struct m0_ha_msg *msg)
 
M0_INTERNAL void m0_ha_flush (struct m0_ha *ha, struct m0_ha_link *hl)
 
M0_INTERNAL void m0_ha_process_failed (struct m0_ha *ha, const struct m0_fid *process_fid)
 
M0_INTERNAL struct m0_ha_linkm0_ha_outgoing_link (struct m0_ha *ha)
 
M0_INTERNAL struct m0_rpc_sessionm0_ha_outgoing_session (struct m0_ha *ha)
 
M0_INTERNAL void m0_ha_rpc_endpoint (struct m0_ha *ha, struct m0_ha_link *hl, char *buf, m0_bcount_t buf_len)
 
M0_INTERNAL int m0_ha_mod_init (void)
 
M0_INTERNAL void m0_ha_mod_fini (void)
 

Macro Definition Documentation

◆ __MOTR_HA_HA_H__

#define __MOTR_HA_HA_H__

Definition at line 26 of file ha.h.