|
corosync 3.1.9
|
Data Structures | |
| struct | cpg_address |
| The cpg_address struct. More... | |
| struct | cpg_name |
| The cpg_name struct. More... | |
| struct | cpg_iteration_description_t |
| The cpg_iteration_description_t struct. More... | |
| struct | cpg_ring_id |
| The cpg_ring_id struct. More... | |
| struct | cpg_callbacks_t |
| The cpg_callbacks_t struct. More... | |
| struct | cpg_model_data_t |
| The cpg_model_data_t struct. More... | |
| struct | cpg_model_v1_data_t |
| The cpg_model_v1_data_t struct. More... | |
Macros | |
| #define | CPG_MAX_NAME_LENGTH 128 |
| #define | CPG_MEMBERS_MAX 128 |
| #define | CPG_MODEL_V1_DELIVER_INITIAL_TOTEM_CONF 0x01 |
Typedefs | |
| typedef uint64_t | cpg_handle_t |
| cpg_handle_t | |
| typedef uint64_t | cpg_iteration_handle_t |
| cpg_iteration_handle_t | |
| typedef void(* | cpg_deliver_fn_t) (cpg_handle_t handle, const struct cpg_name *group_name, uint32_t nodeid, uint32_t pid, void *msg, size_t msg_len) |
| The cpg_deliver_fn_t callback. | |
| typedef void(* | cpg_confchg_fn_t) (cpg_handle_t handle, const struct cpg_name *group_name, const struct cpg_address *member_list, size_t member_list_entries, const struct cpg_address *left_list, size_t left_list_entries, const struct cpg_address *joined_list, size_t joined_list_entries) |
| The cpg_confchg_fn_t callback. | |
| typedef void(* | cpg_totem_confchg_fn_t) (cpg_handle_t handle, struct cpg_ring_id ring_id, uint32_t member_list_entries, const uint32_t *member_list) |
| The cpg_totem_confchg_fn_t callback. | |
Enumerations | |
| enum | cpg_guarantee_t { CPG_TYPE_UNORDERED , CPG_TYPE_FIFO , CPG_TYPE_AGREED , CPG_TYPE_SAFE } |
| The cpg_guarantee_t enum. More... | |
| enum | cpg_flow_control_state_t { CPG_FLOW_CONTROL_DISABLED , CPG_FLOW_CONTROL_ENABLED } |
| The cpg_flow_control_state_t enum. More... | |
| enum | cpg_reason_t { CPG_REASON_UNDEFINED = 0 , CPG_REASON_JOIN = 1 , CPG_REASON_LEAVE = 2 , CPG_REASON_NODEDOWN = 3 , CPG_REASON_NODEUP = 4 , CPG_REASON_PROCDOWN = 5 } |
| The cpg_reason_t enum. More... | |
| enum | cpg_iteration_type_t { CPG_ITERATION_NAME_ONLY = 1 , CPG_ITERATION_ONE_GROUP = 2 , CPG_ITERATION_ALL = 3 } |
| The cpg_iteration_type_t enum. More... | |
| enum | cpg_model_t { CPG_MODEL_V1 = 1 } |
| The cpg_model_t enum. More... | |
| #define CPG_MAX_NAME_LENGTH 128 |
Definition at line 117 of file cpg.h.
Referenced by mar_cpg_name_t::__attribute__(), cpg_iteration_initialize(), cpg_join(), cpg_leave(), and cpg_membership_get().
| #define CPG_MEMBERS_MAX 128 |
Definition at line 126 of file cpg.h.
Referenced by cpg_dispatch().
| #define CPG_MODEL_V1_DELIVER_INITIAL_TOTEM_CONF 0x01 |
Definition at line 194 of file cpg.h.
Referenced by cpg_model_initialize().
| typedef void(* cpg_confchg_fn_t) (cpg_handle_t handle, const struct cpg_name *group_name, const struct cpg_address *member_list, size_t member_list_entries, const struct cpg_address *left_list, size_t left_list_entries, const struct cpg_address *joined_list, size_t joined_list_entries) |
The cpg_confchg_fn_t callback.
| typedef void(* cpg_deliver_fn_t) (cpg_handle_t handle, const struct cpg_name *group_name, uint32_t nodeid, uint32_t pid, void *msg, size_t msg_len) |
The cpg_deliver_fn_t callback.
| msg | Unlike many "msg" pointers, this one is deliberately not declared const in order to permit in-place endian conversion. |
| typedef uint64_t cpg_handle_t |
| typedef uint64_t cpg_iteration_handle_t |
| typedef void(* cpg_totem_confchg_fn_t) (cpg_handle_t handle, struct cpg_ring_id ring_id, uint32_t member_list_entries, const uint32_t *member_list) |
The cpg_totem_confchg_fn_t callback.
The cpg_flow_control_state_t enum.
| Enumerator | |
|---|---|
| CPG_FLOW_CONTROL_DISABLED | flow control is disabled - new messages may be sent |
| CPG_FLOW_CONTROL_ENABLED | flow control is enabled - new messages should not be sent |
| enum cpg_guarantee_t |
The cpg_guarantee_t enum.
| Enumerator | |
|---|---|
| CPG_TYPE_UNORDERED | not implemented |
| CPG_TYPE_FIFO | same as agreed |
| CPG_TYPE_AGREED | |
| CPG_TYPE_SAFE | not implemented |
| enum cpg_iteration_type_t |
The cpg_iteration_type_t enum.
| Enumerator | |
|---|---|
| CPG_ITERATION_NAME_ONLY | |
| CPG_ITERATION_ONE_GROUP | |
| CPG_ITERATION_ALL | |
| enum cpg_model_t |
| enum cpg_reason_t |
The cpg_reason_t enum.
| Enumerator | |
|---|---|
| CPG_REASON_UNDEFINED | |
| CPG_REASON_JOIN | |
| CPG_REASON_LEAVE | |
| CPG_REASON_NODEDOWN | |
| CPG_REASON_NODEUP | |
| CPG_REASON_PROCDOWN | |