Motr  M0
msg.h File Reference
#include "lib/types.h"
#include "lib/time.h"
#include "lib/cookie.h"
#include "fid/fid.h"
#include "stob/ioq_error.h"
#include "ha/note.h"
#include "ha/failvec.h"
#include "motr/keepalive.h"
#include "conf/ha.h"
#include "rpc/ha.h"
#include "be/ha.h"
#include "sns/cm/ha.h"
#include "stob/ioq_error_xc.h"
#include "lib/types_xc.h"
#include "lib/cookie_xc.h"
#include "ha/note_xc.h"
#include "ha/failvec_xc.h"
#include "motr/keepalive_xc.h"
#include "conf/ha_xc.h"
#include "rpc/ha_xc.h"
#include "be/ha_xc.h"
#include "sns/cm/ha_xc.h"
Include dependency graph for msg.h:

Go to the source code of this file.

Data Structures

struct  m0_ha_msg_data
 
struct  m0_ha_msg
 

Macros

#define __MOTR_HA_MSG_H__
 

Enumerations

enum  { M0_HA_MSG_FAILURE_VEC_LIMIT = 1024 }
 
enum  { M0_HA_MSG_TAG_UNKNOWN = 0, M0_HA_MSG_TAG_INVALID = UINT64_MAX }
 
enum  m0_ha_msg_type {
  M0_HA_MSG_INVALID, M0_HA_MSG_STOB_IOQ, M0_HA_MSG_NVEC, M0_HA_MSG_FAILURE_VEC_REQ,
  M0_HA_MSG_FAILURE_VEC_REP, M0_HA_MSG_KEEPALIVE_REQ, M0_HA_MSG_KEEPALIVE_REP, M0_HA_MSG_EVENT_PROCESS,
  M0_HA_MSG_EVENT_SERVICE, M0_HA_MSG_EVENT_RPC, M0_HA_MSG_BE_IO_ERR, M0_HA_MSG_SNS_ERR
}
 

Functions

struct m0_ha_cookie_xc M0_XCA_DOMAIN (rpc)
 
M0_INTERNAL uint64_t m0_ha_msg_tag (const struct m0_ha_msg *msg)
 
M0_INTERNAL enum m0_ha_msg_type m0_ha_msg_type_get (const struct m0_ha_msg *msg)
 
M0_INTERNAL bool m0_ha_msg_eq (const struct m0_ha_msg *msg1, const struct m0_ha_msg *msg2)
 
M0_INTERNAL void m0_ha_msg_debug_print (const struct m0_ha_msg *msg, const char *prefix)
 

Variables

uint64_t hed_type
 
union {
u
 
struct m0_fid hm_fid
 
struct m0_fid hm_source_process
 
struct m0_fid hm_source_service
 
m0_time_t hm_time
 
uint64_t hm_epoch
 
struct m0_ha_msg_data hm_data
 
uint64_t hm_tag
 

Macro Definition Documentation

◆ __MOTR_HA_MSG_H__

#define __MOTR_HA_MSG_H__

Definition at line 26 of file msg.h.

Variable Documentation

◆ hed_type

uint64_t hed_type

m0_ha_msg_type

Definition at line 64 of file msg.h.

◆ hm_data

struct m0_ha_msg_data hm_data

user data

Definition at line 70 of file msg.h.

◆ hm_epoch

uint64_t hm_epoch

message epoch

Definition at line 69 of file msg.h.

◆ hm_fid

struct m0_fid hm_fid

conf object fid

Definition at line 65 of file msg.h.

◆ hm_source_process

struct m0_fid hm_source_process

source process fid

Definition at line 66 of file msg.h.

◆ hm_source_service

struct m0_fid hm_source_service

source service fid

Definition at line 67 of file msg.h.

◆ hm_tag

uint64_t hm_tag

unique across a pair of m0_ha_link tag

Definition at line 73 of file msg.h.

◆ hm_time

m0_time_t hm_time

event timestamp

Definition at line 68 of file msg.h.

◆ u

union { ... } u