Go to the documentation of this file.
35 #ifndef IPC_VOTEQUORUM_H_DEFINED
36 #define IPC_VOTEQUORUM_H_DEFINED
39 #define VOTEQUORUM_QDEVICE_NODEID 0
40 #define VOTEQUORUM_QDEVICE_MAX_NAME_LEN 255
41 #define VOTEQUORUM_QDEVICE_DEFAULT_TIMEOUT 10000
171 #define VOTEQUORUM_INFO_TWONODE 1
172 #define VOTEQUORUM_INFO_QUORATE 2
173 #define VOTEQUORUM_INFO_WAIT_FOR_ALL 4
174 #define VOTEQUORUM_INFO_LAST_MAN_STANDING 8
175 #define VOTEQUORUM_INFO_AUTO_TIE_BREAKER 16
176 #define VOTEQUORUM_INFO_ALLOW_DOWNSCALE 32
177 #define VOTEQUORUM_INFO_QDEVICE_REGISTERED 64
178 #define VOTEQUORUM_INFO_QDEVICE_ALIVE 128
179 #define VOTEQUORUM_INFO_QDEVICE_CAST_VOTE 256
180 #define VOTEQUORUM_INFO_QDEVICE_MASTER_WINS 512
182 #define VOTEQUORUM_NODESTATE_MEMBER 1
183 #define VOTEQUORUM_NODESTATE_DEAD 2
184 #define VOTEQUORUM_NODESTATE_LEAVING 3
244 static inline void marshall_from_mar_votequorum_ring_id (
257 static inline void marshall_to_mar_votequorum_ring_id (
struct qb_ipc_request_header header __attribute__((aligned(8)))
@ MESSAGE_REQ_VOTEQUORUM_TRACKSTART
req_votequorum_types
The req_votequorum_types enum.
struct qb_ipc_response_header header __attribute__((aligned(8)))
The req_lib_votequorum_qdevice_update struct.
The mar_votequorum_ring_id struct.
struct qb_ipc_response_header header __attribute__((aligned(8)))
The req_lib_votequorum_getinfo struct.
unsigned int expected_votes
mar_uint32_t expected_votes __attribute__((aligned(8)))
mar_uint64_t context __attribute__((aligned(8)))
mar_uint32_t quorate __attribute__((aligned(8)))
The req_lib_votequorum_qdevice_register struct.
The votequorum_node struct.
@ MESSAGE_RES_VOTEQUORUM_STATUS
@ MESSAGE_RES_VOTEQUORUM_EXPECTEDVOTES_NOTIFICATION
The res_lib_votequorum_status struct.
@ MESSAGE_REQ_VOTEQUORUM_QDEVICE_MASTER_WINS
char qdevice_name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
struct qb_ipc_request_header header __attribute__((aligned(8)))
@ MESSAGE_REQ_VOTEQUORUM_SETEXPECTED
@ MESSAGE_REQ_VOTEQUORUM_SETVOTES
char name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
struct totem_message_header header
unsigned int expected_votes
@ MESSAGE_RES_VOTEQUORUM_TRACKSTART
res_votequorum_types
The res_votequorum_types enum.
The req_lib_votequorum_setexpected struct.
The res_lib_votequorum_quorum_notification struct.
struct qb_ipc_request_header header __attribute__((aligned(8)))
struct qb_ipc_request_header header __attribute__((aligned(8)))
char name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
@ MESSAGE_REQ_VOTEQUORUM_GETINFO
struct qb_ipc_request_header header __attribute__((aligned(8)))
struct qb_ipc_response_header header __attribute__((aligned(8)))
@ MESSAGE_RES_VOTEQUORUM_GETINFO
@ MESSAGE_RES_VOTEQUORUM_QUORUM_NOTIFICATION
The req_lib_votequorum_qdevice_unregister struct.
The req_lib_votequorum_qdevice_poll struct.
char name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
The req_lib_votequorum_trackstart struct.
The res_lib_votequorum_getinfo struct.
unsigned int qdevice_votes
#define VOTEQUORUM_QDEVICE_MAX_NAME_LEN
mar_uint32_t node_list_entries __attribute__((aligned(8)))
struct qb_ipc_request_header header __attribute__((aligned(8)))
@ MESSAGE_REQ_VOTEQUORUM_QDEVICE_REGISTER
struct qb_ipc_response_header header __attribute__((aligned(8)))
struct qb_ipc_request_header header __attribute__((aligned(8)))
char newname[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
struct qb_ipc_request_header header __attribute__((aligned(8)))
struct qb_ipc_request_header header __attribute__((aligned(8)))
struct mar_votequorum_ring_id ring_id __attribute__((aligned(8)))
struct memb_ring_id ring_id
@ MESSAGE_RES_VOTEQUORUM_NODELIST_NOTIFICATION
The req_lib_votequorum_general struct.
@ MESSAGE_REQ_VOTEQUORUM_TRACKSTOP
struct qb_ipc_response_header header __attribute__((aligned(8)))
The res_lib_votequorum_expectedvotes_notification struct.
@ MESSAGE_REQ_VOTEQUORUM_QDEVICE_POLL
struct qb_ipc_request_header header __attribute__((aligned(8)))
The req_lib_votequorum_qdevice_master_wins struct.
mar_uint32_t node_list_entries __attribute__((aligned(8)))
char name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
The votequorum_ring_id_t struct.
@ MESSAGE_REQ_VOTEQUORUM_QDEVICE_UPDATE
unsigned int highest_expected
mar_uint64_t context __attribute__((aligned(8)))
@ MESSAGE_REQ_VOTEQUORUM_QDEVICE_UNREGISTER
char oldname[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
The req_lib_votequorum_setvotes struct.