corosync 3.1.9
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
coroapi.h File Reference
#include <config.h>
#include <stdio.h>
#include <corosync/hdb.h>
#include <qb/qbloop.h>
#include <corosync/swab.h>
Include dependency graph for coroapi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mar_message_source_t
 The mar_message_source_t struct. More...
 
struct  corosync_tpg_group
 The corosync_tpg_group struct. More...
 
struct  totem_ip_address
 The totem_ip_address struct. More...
 
struct  memb_ring_id
 The memb_ring_id struct. More...
 
struct  quorum_callin_functions
 The quorum_callin_functions struct. More...
 
struct  corosync_api_v1
 The corosync_api_v1 struct. More...
 
struct  corosync_lib_handler
 The corosync_lib_handler struct. More...
 
struct  corosync_exec_handler
 The corosync_exec_handler struct. More...
 
struct  corosync_service_engine_iface_ver0
 The corosync_service_engine_iface_ver0 struct. More...
 
struct  corosync_service_engine
 The corosync_service_engine struct. More...
 

Macros

#define TIMER_HANDLE_T   1
 
#define TOTEMIP_ADDRLEN   (sizeof(struct in6_addr))
 
#define INTERFACE_MAX   8
 
#define PROCESSOR_COUNT_MAX   384
 
#define MESSAGE_SIZE_MAX   1024*1024
 
#define MESSAGE_QUEUE_MAX   ((4 * MESSAGE_SIZE_MAX) / totem_config->net_mtu)
 
#define TOTEM_AGREED   0
 
#define TOTEM_SAFE   1
 
#define MILLI_2_NANO_SECONDS   1000000ULL
 
#define corosync_lib_flow_control   cs_lib_flow_control
 
#define COROSYNC_LIB_FLOW_CONTROL_REQUIRED   CS_LIB_FLOW_CONTROL_REQUIRED
 
#define COROSYNC_LIB_FLOW_CONTROL_NOT_REQUIRED   CS_LIB_FLOW_CONTROL_NOT_REQUIRED
 
#define corosync_flow_control_state   cs_flow_control_state
 
#define CS_FLOW_CONTROL_STATE_DISABLED   CS_FLOW_CONTROL_STATE_DISABLED
 
#define CS_FLOW_CONTROL_STATE_ENABLED   CS_FLOW_CONTROL_STATE_ENABLED
 
#define corosync_fatal_error_t   cs_fatal_error_t;
 
#define corosync_fatal_error(err)   api->fatal_error ((err), __FILE__, __LINE__)
 
#define SERVICE_ID_MAKE(a, b)   ( ((a)<<16) | (b) )
 
#define SERVICE_HANDLER_MAXIMUM_COUNT   64
 
#define SERVICES_COUNT_MAX   64
 

Typedefs

typedef qb_loop_timer_handle corosync_timer_handle_t
 corosync_timer_handle_t
 
typedef void(* quorum_callback_fn_t) (int quorate, void *context)
 The quorum_callback_fn_t callback.
 
typedef void(* sync_callback_fn_t) (const unsigned int *view_list, size_t view_list_entries, int primary_designated, struct memb_ring_id *ring_id)
 The sync_callback_fn_t callback.
 

Enumerations

enum  totem_configuration_type { TOTEM_CONFIGURATION_REGULAR , TOTEM_CONFIGURATION_TRANSITIONAL }
 The totem_configuration_type enum. More...
 
enum  totem_callback_token_type { TOTEM_CALLBACK_TOKEN_RECEIVED = 1 , TOTEM_CALLBACK_TOKEN_SENT = 2 }
 The totem_callback_token_type enum. More...
 
enum  cs_lib_flow_control { CS_LIB_FLOW_CONTROL_REQUIRED = 1 , CS_LIB_FLOW_CONTROL_NOT_REQUIRED = 2 }
 The cs_lib_flow_control enum. More...
 
enum  cs_lib_allow_inquorate { CS_LIB_DISALLOW_INQUORATE = 0 , CS_LIB_ALLOW_INQUORATE = 1 }
 The cs_lib_allow_inquorate enum. More...
 
enum  cs_flow_control_state { CS_FLOW_CONTROL_STATE_DISABLED , CS_FLOW_CONTROL_STATE_ENABLED }
 The cs_flow_control_state enum. More...
 
enum  cs_fatal_error_t {
  COROSYNC_FATAL_ERROR_EXIT = -1 , COROSYNC_LIBAIS_SOCKET = -6 , COROSYNC_LIBAIS_BIND = -7 , COROSYNC_READKEY = -8 ,
  COROSYNC_INVALID_CONFIG = -9 , COROSYNC_DYNAMICLOAD = -12 , COROSYNC_OUT_OF_MEMORY = -15 , COROSYNC_FATAL_ERR = -16
}
 The cs_fatal_error_t enum. More...
 

Functions

struct totem_ip_address __attribute__ ((packed))
 

Variables

unsigned int nodeid
 
unsigned short family
 
unsigned char addr [TOTEMIP_ADDRLEN]
 
unsigned long long seq
 
enum totem_configuration_type __attribute__
 

Macro Definition Documentation

◆ corosync_fatal_error

#define corosync_fatal_error (   err)    api->fatal_error ((err), __FILE__, __LINE__)

Definition at line 424 of file coroapi.h.

◆ corosync_fatal_error_t

#define corosync_fatal_error_t   cs_fatal_error_t;

Definition at line 193 of file coroapi.h.

◆ corosync_flow_control_state

#define corosync_flow_control_state   cs_flow_control_state

Definition at line 175 of file coroapi.h.

◆ corosync_lib_flow_control

#define corosync_lib_flow_control   cs_lib_flow_control

Definition at line 155 of file coroapi.h.

◆ COROSYNC_LIB_FLOW_CONTROL_NOT_REQUIRED

#define COROSYNC_LIB_FLOW_CONTROL_NOT_REQUIRED   CS_LIB_FLOW_CONTROL_NOT_REQUIRED

Definition at line 157 of file coroapi.h.

◆ COROSYNC_LIB_FLOW_CONTROL_REQUIRED

#define COROSYNC_LIB_FLOW_CONTROL_REQUIRED   CS_LIB_FLOW_CONTROL_REQUIRED

Definition at line 156 of file coroapi.h.

◆ CS_FLOW_CONTROL_STATE_DISABLED

#define CS_FLOW_CONTROL_STATE_DISABLED   CS_FLOW_CONTROL_STATE_DISABLED

Definition at line 176 of file coroapi.h.

◆ CS_FLOW_CONTROL_STATE_ENABLED

#define CS_FLOW_CONTROL_STATE_ENABLED   CS_FLOW_CONTROL_STATE_ENABLED

Definition at line 177 of file coroapi.h.

◆ INTERFACE_MAX

#define INTERFACE_MAX   8

Definition at line 88 of file coroapi.h.

◆ MESSAGE_QUEUE_MAX

#define MESSAGE_QUEUE_MAX   ((4 * MESSAGE_SIZE_MAX) / totem_config->net_mtu)

Definition at line 98 of file coroapi.h.

◆ MESSAGE_SIZE_MAX

#define MESSAGE_SIZE_MAX   1024*1024

Definition at line 97 of file coroapi.h.

◆ MILLI_2_NANO_SECONDS

#define MILLI_2_NANO_SECONDS   1000000ULL

Definition at line 105 of file coroapi.h.

◆ PROCESSOR_COUNT_MAX

#define PROCESSOR_COUNT_MAX   384

Definition at line 96 of file coroapi.h.

◆ SERVICE_HANDLER_MAXIMUM_COUNT

#define SERVICE_HANDLER_MAXIMUM_COUNT   64

Definition at line 460 of file coroapi.h.

◆ SERVICE_ID_MAKE

#define SERVICE_ID_MAKE (   a,
  b 
)    ( ((a)<<16) | (b) )

Definition at line 458 of file coroapi.h.

◆ SERVICES_COUNT_MAX

#define SERVICES_COUNT_MAX   64

Definition at line 462 of file coroapi.h.

◆ TIMER_HANDLE_T

#define TIMER_HANDLE_T   1

Definition at line 75 of file coroapi.h.

◆ TOTEM_AGREED

#define TOTEM_AGREED   0

Definition at line 102 of file coroapi.h.

◆ TOTEM_SAFE

#define TOTEM_SAFE   1

Definition at line 103 of file coroapi.h.

◆ TOTEMIP_ADDRLEN

#define TOTEMIP_ADDRLEN   (sizeof(struct in6_addr))

Definition at line 86 of file coroapi.h.

Typedef Documentation

◆ corosync_timer_handle_t

corosync_timer_handle_t

Definition at line 74 of file coroapi.h.

◆ quorum_callback_fn_t

typedef void(* quorum_callback_fn_t) (int quorate, void *context)

The quorum_callback_fn_t callback.

Definition at line 199 of file coroapi.h.

◆ sync_callback_fn_t

typedef void(* sync_callback_fn_t) (const unsigned int *view_list, size_t view_list_entries, int primary_designated, struct memb_ring_id *ring_id)

The sync_callback_fn_t callback.

Definition at line 213 of file coroapi.h.

Enumeration Type Documentation

◆ cs_fatal_error_t

The cs_fatal_error_t enum.

Enumerator
COROSYNC_FATAL_ERROR_EXIT 
COROSYNC_LIBAIS_SOCKET 
COROSYNC_LIBAIS_BIND 
COROSYNC_READKEY 
COROSYNC_INVALID_CONFIG 
COROSYNC_DYNAMICLOAD 
COROSYNC_OUT_OF_MEMORY 
COROSYNC_FATAL_ERR 

Definition at line 183 of file coroapi.h.

◆ cs_flow_control_state

The cs_flow_control_state enum.

Enumerator
CS_FLOW_CONTROL_STATE_DISABLED 
CS_FLOW_CONTROL_STATE_ENABLED 

Definition at line 171 of file coroapi.h.

◆ cs_lib_allow_inquorate

The cs_lib_allow_inquorate enum.

Enumerator
CS_LIB_DISALLOW_INQUORATE 
CS_LIB_ALLOW_INQUORATE 

Definition at line 162 of file coroapi.h.

◆ cs_lib_flow_control

The cs_lib_flow_control enum.

Enumerator
CS_LIB_FLOW_CONTROL_REQUIRED 
CS_LIB_FLOW_CONTROL_NOT_REQUIRED 

Definition at line 151 of file coroapi.h.

◆ totem_callback_token_type

The totem_callback_token_type enum.

Enumerator
TOTEM_CALLBACK_TOKEN_RECEIVED 
TOTEM_CALLBACK_TOKEN_SENT 

Definition at line 142 of file coroapi.h.

◆ totem_configuration_type

The totem_configuration_type enum.

Enumerator
TOTEM_CONFIGURATION_REGULAR 
TOTEM_CONFIGURATION_TRANSITIONAL 

Definition at line 132 of file coroapi.h.

Function Documentation

◆ __attribute__()

struct totem_ip_address __attribute__ ( (packed )

Variable Documentation

◆ __attribute__

◆ addr

◆ family

unsigned short family

◆ nodeid

uint32_t nodeid

Definition at line 0 of file coroapi.h.

Referenced by _corosync_exit_error(), clust_time_now(), cmap_context_get(), cmap_context_set(), cmap_delete(), cmap_dispatch(), cmap_fd_get(), cmap_finalize(), cmap_get(), cmap_get_float(), cmap_get_int16(), cmap_get_int32(), cmap_get_int64(), cmap_get_int8(), cmap_get_string(), cmap_get_uint16(), cmap_get_uint32(), cmap_get_uint64(), cmap_get_uint8(), cmap_initialize(), cmap_initialize_map(), cmap_iter_finalize(), cmap_iter_init(), cmap_iter_next(), cmap_set(), cmap_set_string(), cmap_track_add(), cmap_track_delete(), corosync_cfg_dispatch(), corosync_cfg_fd_get(), corosync_cfg_finalize(), corosync_cfg_get_node_addrs(), corosync_cfg_initialize(), corosync_cfg_kill_node(), corosync_cfg_local_get(), corosync_cfg_node_status_get(), corosync_cfg_reload_config(), corosync_cfg_reopen_log_files(), corosync_cfg_replyto_shutdown(), corosync_cfg_ring_status_get(), corosync_cfg_trackstart(), corosync_cfg_trackstop(), corosync_cfg_try_shutdown(), corosync_quorum_initialize(), corosync_quorum_register_callback(), corosync_quorum_unregister_callback(), corosync_timer_add_absolute(), corosync_timer_add_duration(), corosync_timer_delete(), corosync_timer_expire_time_get(), cpg_context_get(), cpg_context_set(), cpg_dispatch(), cpg_fd_get(), cpg_finalize(), cpg_flow_control_state_get(), cpg_initialize(), cpg_iteration_finalize(), cpg_iteration_initialize(), cpg_iteration_next(), cpg_join(), cpg_leave(), cpg_local_get(), cpg_max_atomic_msgsize_get(), cpg_mcast_joined(), cpg_membership_get(), cpg_model_initialize(), cpg_zcb_alloc(), cpg_zcb_free(), cpg_zcb_mcast_joined(), cs_name_tisEqual(), cs_timer_time_get(), get_state_dir(), getcs_name_t(), main_deliver_fn(), main_iface_change_fn(), name_match(), quorum_context_get(), quorum_context_set(), quorum_dispatch(), quorum_fd_get(), quorum_finalize(), quorum_getquorate(), quorum_initialize(), quorum_model_initialize(), quorum_trackstart(), quorum_trackstop(), sam_data_getsize(), sam_data_restore(), sam_data_store(), sam_finalize(), sam_hc_callback_register(), sam_hc_send(), sam_initialize(), sam_mark_failed(), sam_register(), sam_start(), sam_stop(), sam_warn_signal_set(), setcs_name_t(), short_service_name_get(), stats_add_schedmiss_event(), stats_ipcs_add_connection(), stats_ipcs_del_connection(), stats_knet_add_handle(), stats_knet_add_member(), stats_knet_del_member(), stats_map_get(), stats_map_is_key_ro(), stats_map_iter_finalize(), stats_map_iter_init(), stats_map_iter_next(), stats_map_set(), stats_map_track_add(), stats_map_track_delete(), stats_map_track_get_user_data(), stats_trigger_trackers(), sync_abort(), sync_init(), sync_save_transitional(), sync_start(), totem_config_keyread(), totem_config_read(), totem_config_validate(), totem_reread_crypto_config(), totem_volatile_config_read(), totem_volatile_config_validate(), totemconfig_commit_new_params(), totemconfig_configure_new_params(), totemip_compare(), totemip_copy(), totemip_equal(), totemip_freeifaddrs(), totemip_getifaddrs(), totemip_iface_check(), totemip_is_mcast(), totemip_localhost(), totemip_parse(), totemip_print(), totemip_sa_equal(), totemip_sa_print(), totemip_sockaddr_to_totemip_convert(), totemip_totemip_to_sockaddr_convert(), totemip_udpip_header_size(), totemknet_buffer_alloc(), totemknet_buffer_release(), totemknet_configure_log_level(), totemknet_crypto_reconfigure_phase(), totemknet_finalize(), totemknet_handle_get_stats(), totemknet_iface_check(), totemknet_iface_set(), totemknet_ifaces_get(), totemknet_initialize(), totemknet_link_get_status(), totemknet_mcast_flush_send(), totemknet_mcast_noflush_send(), totemknet_member_add(), totemknet_member_remove(), totemknet_net_mtu_adjust(), totemknet_nodestatus_get(), totemknet_reconfigure(), totemknet_recv_mcast_empty(), totemknet_stats_clear(), totemknet_token_send(), totemknet_token_target_set(), totemnet_buffer_alloc(), totemnet_buffer_release(), totemnet_crypto_reconfigure_phase(), totemnet_crypto_set(), totemnet_finalize(), totemnet_iface_check(), totemnet_iface_set(), totemnet_ifaces_get(), totemnet_initialize(), totemnet_mcast_flush_send(), totemnet_mcast_noflush_send(), totemnet_member_add(), totemnet_member_remove(), totemnet_member_set_active(), totemnet_net_mtu_adjust(), totemnet_nodestatus_get(), totemnet_processor_count_set(), totemnet_reconfigure(), totemnet_recv_flush(), totemnet_recv_mcast_empty(), totemnet_send_flush(), totemnet_stats_clear(), totemnet_token_send(), totemnet_token_target_set(), totempg_callback_token_create(), totempg_callback_token_destroy(), totempg_check_q_level(), totempg_crypto_reconfigure_phase(), totempg_crypto_set(), totempg_finalize(), totempg_get_config(), totempg_groups_initialize(), totempg_groups_join(), totempg_groups_joined_release(), totempg_groups_joined_reserve(), totempg_groups_leave(), totempg_groups_mcast_groups(), totempg_groups_mcast_joined(), totempg_groups_send_ok_groups(), totempg_iface_set(), totempg_ifaces_get(), totempg_ifaces_print(), totempg_initialize(), totempg_member_add(), totempg_member_remove(), totempg_nodestatus_get(), totempg_put_config(), totempg_queue_level_register_callback(), totempg_service_ready_register(), totemsrp_avail(), totemsrp_callback_token_create(), totemsrp_callback_token_destroy(), totemsrp_crypto_reconfigure_phase(), totemsrp_crypto_set(), totemsrp_event_signal(), totemsrp_finalize(), totemsrp_iface_set(), totemsrp_ifaces_get(), totemsrp_initialize(), totemsrp_mcast(), totemsrp_member_add(), totemsrp_member_remove(), totemsrp_my_family_get(), totemsrp_my_nodeid_get(), totemsrp_nodestatus_get(), totemsrp_reconfigure(), totemsrp_service_ready_register(), totemsrp_stats_clear(), totemudp_buffer_alloc(), totemudp_buffer_release(), totemudp_finalize(), totemudp_iface_check(), totemudp_ifaces_get(), totemudp_initialize(), totemudp_mcast_flush_send(), totemudp_mcast_noflush_send(), totemudp_member_add(), totemudp_member_remove(), totemudp_nodestatus_get(), totemudp_processor_count_set(), totemudp_recv_flush(), totemudp_recv_mcast_empty(), totemudp_token_send(), totemudp_token_target_set(), totemudpu_buffer_alloc(), totemudpu_buffer_release(), totemudpu_finalize(), totemudpu_iface_check(), totemudpu_ifaces_get(), totemudpu_initialize(), totemudpu_mcast_flush_send(), totemudpu_mcast_noflush_send(), totemudpu_member_add(), totemudpu_member_list_rebind_ip(), totemudpu_member_remove(), totemudpu_nodestatus_get(), totemudpu_processor_count_set(), totemudpu_recv_flush(), totemudpu_recv_mcast_empty(), totemudpu_send_flush(), totemudpu_token_send(), totemudpu_token_target_set(), util_is_valid_knet_compress_model(), util_is_valid_knet_crypto_model(), votequorum_context_get(), votequorum_context_set(), votequorum_dispatch(), votequorum_fd_get(), votequorum_finalize(), votequorum_getinfo(), votequorum_initialize(), votequorum_qdevice_master_wins(), votequorum_qdevice_poll(), votequorum_qdevice_register(), votequorum_qdevice_unregister(), votequorum_qdevice_update(), votequorum_setexpected(), votequorum_setvotes(), votequorum_trackstart(), votequorum_trackstop(), and ykd_init().

◆ seq

Definition at line 1 of file coroapi.h.