76 #include <sys/types.h>
81 #include <sys/socket.h>
84 #include <sys/resource.h>
86 #include <netinet/in.h>
87 #include <arpa/inet.h>
96 #include <semaphore.h>
98 #ifdef HAVE_LIBSYSTEMD
99 #include <systemd/sd-daemon.h>
102 #include <qb/qbdefs.h>
103 #include <qb/qblog.h>
104 #include <qb/qbloop.h>
105 #include <qb/qbutil.h>
106 #include <qb/qbipcs.h>
128 #ifdef HAVE_SMALL_MEMORY_FOOTPRINT
129 #define IPC_LOGSYS_SIZE 1024*64
131 #define IPC_LOGSYS_SIZE 8192*128
141 #define SERVER_BACKLOG 5
143 static int sched_priority = 0;
145 static unsigned int service_count = 32;
151 static int sync_in_process = 1;
153 static qb_loop_t *corosync_poll_handle;
159 static const char *corosync_lock_file =
LOCALSTATEDIR"/run/corosync.pid";
161 static int ip_version = AF_INET;
165 return (corosync_poll_handle);
173 int (*dispatch_fn) (
int fd,
177 return qb_loop_poll_add(handle, QB_LOOP_MED, fd, events, data,
183 return qb_loop_poll_del(handle, fd);
197 static void corosync_blackbox_write_to_file (
void)
199 char fname[PATH_MAX];
200 char fdata_fname[PATH_MAX];
201 char time_str[PATH_MAX];
202 struct tm cur_time_tm;
206 cur_time_t = time(NULL);
207 localtime_r(&cur_time_t, &cur_time_tm);
209 strftime(time_str, PATH_MAX,
"%Y-%m-%dT%H:%M:%S", &cur_time_tm);
210 snprintf(fname, PATH_MAX,
"%s/fdata-%s-%lld",
213 (
long long int)getpid());
215 if ((res = qb_log_blackbox_write_to_file(fname)) < 0) {
218 snprintf(fdata_fname,
sizeof(fdata_fname),
"%s/fdata",
get_run_dir());
220 if (symlink(fname, fdata_fname) == -1) {
226 static void unlink_all_completed (
void)
229 qb_loop_stop (corosync_poll_handle);
238 static int32_t sig_diag_handler (
int num,
void *data)
244 static int32_t sig_exit_handler (
int num,
void *data)
251 static void sigsegv_handler (
int num)
253 (void)signal (SIGSEGV, SIG_DFL);
254 corosync_blackbox_write_to_file ();
262 static int32_t sig_segv_handler (
int num,
void *data)
265 sigsegv_handler(num);
270 static void sigabrt_handler (
int num)
272 (void)signal (SIGABRT, SIG_DFL);
273 corosync_blackbox_write_to_file ();
281 static int32_t sig_abrt_handler (
int num,
void *data)
284 sigabrt_handler(num);
289 #define LOCALHOST_IP inet_addr("127.0.0.1")
291 static void *corosync_group_handle;
298 static void serialize_lock (
void)
302 static void serialize_unlock (
void)
306 static void corosync_sync_completed (
void)
309 "Completed service synchronization, ready to provide service.");
319 #ifdef HAVE_LIBSYSTEMD
320 sd_notify (0,
"READY=1");
324 static int corosync_sync_callbacks_retrieve (
332 if (callbacks == NULL) {
347 static void member_object_joined (
unsigned int nodeid)
354 "runtime.totem.pg.mrp.srp.members.%u.ip", nodeid);
356 "runtime.totem.pg.mrp.srp.members.%u.join_count", nodeid);
358 "runtime.totem.pg.mrp.srp.members.%u.status", nodeid);
373 static void member_object_left (
unsigned int nodeid)
378 "runtime.totem.pg.mrp.srp.members.%u.status", nodeid);
385 static void confchg_fn (
387 const unsigned int *member_list,
size_t member_list_entries,
388 const unsigned int *left_list,
size_t left_list_entries,
389 const unsigned int *joined_list,
size_t joined_list_entries,
393 int abort_activate = 0;
395 if (sync_in_process == 1) {
400 memcpy (&corosync_ring_id, ring_id,
sizeof (
struct memb_ring_id));
402 for (i = 0; i < left_list_entries; i++) {
403 member_object_left (left_list[i]);
405 for (i = 0; i < joined_list_entries; i++) {
406 member_object_joined (joined_list[i]);
411 for (i = 0; i < service_count; i++) {
414 member_list, member_list_entries,
415 left_list, left_list_entries,
416 joined_list, joined_list_entries, ring_id);
420 if (abort_activate) {
427 sync_start (member_list, member_list_entries, ring_id);
431 static void priv_drop (
void)
436 static void corosync_tty_detach (
void)
464 devnull = open(
"/dev/null", O_RDWR);
469 if (dup2(devnull, 0) < 0 || dup2(devnull, 1) < 0
470 || dup2(devnull, 2) < 0) {
477 static void corosync_mlockall (
void)
480 struct rlimit rlimit;
482 rlimit.rlim_cur = RLIM_INFINITY;
483 rlimit.rlim_max = RLIM_INFINITY;
485 #ifndef RLIMIT_MEMLOCK
486 #define RLIMIT_MEMLOCK RLIMIT_VMEM
491 res = mlockall (MCL_CURRENT | MCL_FUTURE);
494 "Could not lock memory of service to avoid page faults");
499 static void corosync_totem_stats_updater (
void *data)
502 uint32_t total_mtt_rx_token;
503 uint32_t total_backlog_calc;
504 uint32_t total_token_holdtime;
540 icmap_set_uint8(
"runtime.totem.pg.mrp.srp.firewall_enabled_or_nic_failure",
546 "Totem is unable to form a cluster because of an "
547 "operating system or network fault. The most common "
548 "cause of this message is that the local firewall is "
549 "configured improperly.");
550 icmap_set_uint8(
"runtime.totem.pg.mrp.srp.firewall_enabled_or_nic_failure", 1);
552 icmap_set_uint8(
"runtime.totem.pg.mrp.srp.firewall_enabled_or_nic_failure", 0);
559 total_mtt_rx_token = 0;
560 total_token_holdtime = 0;
561 total_backlog_calc = 0;
582 icmap_set_uint32(
"runtime.totem.pg.mrp.srp.mtt_rx_token", (total_mtt_rx_token / token_count));
583 icmap_set_uint32(
"runtime.totem.pg.mrp.srp.avg_token_workload", (total_token_holdtime / token_count));
584 icmap_set_uint32(
"runtime.totem.pg.mrp.srp.avg_backlog_calc", (total_backlog_calc / token_count));
590 corosync_totem_stats_updater,
591 &corosync_stats_timer_handle);
594 static void corosync_totem_stats_init (
void)
602 corosync_totem_stats_updater,
603 &corosync_stats_timer_handle);
606 static void deliver_fn (
609 unsigned int msg_len,
610 int endian_conversion_required)
612 const struct qb_ipc_request_header *
header;
618 if (endian_conversion_required) {
641 if (endian_conversion_required) {
642 assert(
corosync_service[service]->exec_engine[fn_id].exec_endian_convert_fn != NULL);
652 const struct iovec *iovec,
653 unsigned int iov_len,
656 const struct qb_ipc_request_header *req = iovec->iov_base;
660 service = req->id >> 16;
661 fn_id = req->id & 0xffff;
670 static void corosync_ring_id_create_or_load (
676 char filename[PATH_MAX];
678 snprintf (filename,
sizeof(filename),
"%s/ringid_%s",
680 fd = open (filename, O_RDONLY, 0700);
685 res = read (fd, &memb_ring_id->
seq, sizeof (uint64_t));
691 if ((fd == -1) || (res !=
sizeof (uint64_t))) {
692 memb_ring_id->
seq = 0;
694 fd = open (filename, O_CREAT|O_RDWR, 0700);
696 res = write (fd, &memb_ring_id->
seq, sizeof (uint64_t));
700 "Couldn't write ringid file '%s'", filename);
706 "Couldn't create ringid file '%s'", filename);
713 assert (!totemip_zero_check(&memb_ring_id->
rep));
716 static void corosync_ring_id_store (
717 const struct memb_ring_id *memb_ring_id,
720 char filename[PATH_MAX];
724 snprintf (filename,
sizeof(filename),
"%s/ringid_%s",
727 fd = open (filename, O_WRONLY, 0700);
729 fd = open (filename, O_CREAT|O_RDWR, 0700);
733 "Couldn't store new ring id %llx to stable storage",
739 "Storing new sequence id for ring %llx", memb_ring_id->
seq);
740 res = write (fd, &memb_ring_id->
seq,
sizeof(memb_ring_id->
seq));
742 if (res !=
sizeof(memb_ring_id->
seq)) {
744 "Couldn't store new ring id %llx to stable storage",
751 static qb_loop_timer_handle recheck_the_q_level_timer;
767 unsigned int service,
770 void *sending_allowed_private_data)
774 struct iovec reserve_iovec;
775 struct qb_ipc_request_header *header = (
struct qb_ipc_request_header *)msg;
778 reserve_iovec.iov_base = (
char *)header;
779 reserve_iovec.iov_len = header->size;
782 corosync_group_handle,
788 sending_allowed = QB_FALSE;
794 sending_allowed = QB_TRUE;
796 sending_allowed = QB_TRUE;
803 return -EHOSTUNREACH;
806 return (sending_allowed);
824 assert (source != NULL);
835 assert ((source != NULL) && (conn != NULL));
848 static void timer_function_scheduler_timeout (
void *data)
851 unsigned long long tv_current;
852 unsigned long long tv_diff;
854 tv_current = qb_util_nano_current_get ();
856 if (timeout_data->
tv_prev == 0) {
860 timeout_data->
tv_prev = tv_current;
864 tv_diff = tv_current - timeout_data->
tv_prev;
865 timeout_data->
tv_prev = tv_current;
869 "(threshold is %0.4f ms). Consider token timeout increase.",
870 (
float)tv_diff / QB_TIME_NS_IN_MSEC, (
float)timeout_data->
max_tv_diff / QB_TIME_NS_IN_MSEC);
877 qb_loop_timer_add (corosync_poll_handle,
881 timer_function_scheduler_timeout,
886 static void corosync_setscheduler (
void)
888 #if defined(HAVE_PTHREAD_SETSCHEDPARAM) && defined(HAVE_SCHED_GET_PRIORITY_MAX) && defined(HAVE_SCHED_SETSCHEDULER)
891 sched_priority = sched_get_priority_max (SCHED_RR);
892 if (sched_priority != -1) {
897 "Could not set SCHED_RR at priority %d",
901 #ifdef HAVE_QB_LOG_THREAD_PRIORITY_SET
902 qb_log_thread_priority_set (SCHED_OTHER, 0);
909 #ifdef HAVE_QB_LOG_THREAD_PRIORITY_SET
910 res = qb_log_thread_priority_set (SCHED_RR, sched_priority);
916 "Could not set logsys thread priority."
917 " Can't continue because of priority inversions.");
923 "Could not get maximum scheduler priority");
928 "The Platform is missing process priority setting features. Leaving at default.");
933 _logsys_log_printf(
int level,
int subsys,
934 const char *function_name,
935 const char *file_name,
941 _logsys_log_printf(
int level,
int subsys,
942 const
char *function_name,
943 const
char *file_name,
945 const
char *format, ...)
949 va_start(ap, format);
950 qb_log_from_external_source_va(function_name, file_name,
951 format, level, file_line,
956 static void fplay_key_change_notify_fn (
958 const char *key_name,
963 if (strcmp(key_name,
"runtime.blackbox.dump_flight_data") == 0) {
964 fprintf(stderr,
"Writetofile\n");
965 corosync_blackbox_write_to_file ();
967 if (strcmp(key_name,
"runtime.blackbox.dump_state") == 0) {
968 fprintf(stderr,
"statefump\n");
973 static void corosync_fplay_control_init (
void)
982 fplay_key_change_notify_fn,
986 fplay_key_change_notify_fn,
997 static void set_icmap_ro_keys_flag (
void)
1023 static void main_service_ready (
void)
1036 corosync_totem_stats_init ();
1037 corosync_fplay_control_init ();
1039 corosync_sync_callbacks_retrieve,
1040 corosync_sync_completed);
1043 static enum e_corosync_done corosync_flock (
const char *lockfile, pid_t pid)
1053 lf = open (lockfile, O_WRONLY | O_CREAT, 0640);
1060 lock.l_type = F_WRLCK;
1062 lock.l_whence = SEEK_SET;
1064 if (fcntl (lf, F_SETLK, &
lock) == -1) {
1084 if (ftruncate (lf, 0) == -1) {
1088 goto error_close_unlink;
1091 memset (pid_s, 0,
sizeof (pid_s));
1092 snprintf (pid_s,
sizeof (pid_s) - 1,
"%u\n", pid);
1095 if (write (lf, pid_s, strlen (pid_s)) != strlen (pid_s)) {
1096 if (errno == EINTR) {
1100 "Error was %s", strerror (errno));
1102 goto error_close_unlink;
1106 if ((fd_flag = fcntl (lf, F_GETFD, 0)) == -1) {
1108 "Error was %s", strerror (errno));
1110 goto error_close_unlink;
1112 fd_flag |= FD_CLOEXEC;
1113 if (fcntl (lf, F_SETFD, fd_flag) == -1) {
1115 "Error was %s", strerror (errno));
1117 goto error_close_unlink;
1130 int main (
int argc,
char **argv,
char **envp)
1132 const char *error_string;
1135 int background, setprio, testonly;
1136 struct stat stat_out;
1138 uint64_t totem_config_warnings;
1147 while ((ch = getopt (argc, argv,
"fprtv")) != EOF) {
1163 printf (
"Corosync Cluster Engine, version '%s'\n",
VERSION);
1164 printf (
"Copyright (c) 2006-2009 Red Hat, Inc.\n");
1166 return EXIT_SUCCESS;
1172 " -f : Start application in foreground.\n"\
1173 " -p : Do not set process priority.\n"\
1174 " -t : Test configuration and exit.\n"\
1175 " -r : Set round robin realtime scheduling (default).\n"\
1176 " -v : Display version and SVN revision of Corosync and exit.\n");
1178 return EXIT_FAILURE;
1188 corosync_setscheduler ();
1191 corosync_mlockall ();
1196 (void)signal (SIGSEGV, sigsegv_handler);
1197 (void)signal (SIGABRT, sigabrt_handler);
1198 #if MSG_NOSIGNAL != 0
1199 (void)signal (SIGPIPE, SIG_IGN);
1206 set_icmap_ro_keys_flag();
1229 fprintf(stderr,
"%s", error_string);
1243 if ((res == -1) || (res == 0 && !S_ISDIR(stat_out.st_mode))) {
1251 "Please make sure it has correct context and rights.",
get_run_dir());
1273 if (totem_config_warnings != 0) {
1300 "totemmrp.c,totemrrp.c,totemip.c,totemconfig.c,totemcrypto.c,totemsrp.c,"
1301 "totempg.c,totemiba.c,totemudp.c,totemudpu.c,totemnet.c");
1316 corosync_tty_detach ();
1319 corosync_poll_handle = qb_loop_create ();
1321 memset(&scheduler_pause_timeout_data, 0,
sizeof(scheduler_pause_timeout_data));
1323 timer_function_scheduler_timeout (&scheduler_pause_timeout_data);
1325 qb_loop_signal_add(corosync_poll_handle, QB_LOOP_LOW,
1326 SIGUSR2, NULL, sig_diag_handler, NULL);
1327 qb_loop_signal_add(corosync_poll_handle, QB_LOOP_HIGH,
1328 SIGINT, NULL, sig_exit_handler, NULL);
1329 qb_loop_signal_add(corosync_poll_handle, QB_LOOP_HIGH,
1330 SIGSEGV, NULL, sig_segv_handler, NULL);
1331 qb_loop_signal_add(corosync_poll_handle, QB_LOOP_HIGH,
1332 SIGABRT, NULL, sig_abrt_handler, NULL);
1333 qb_loop_signal_add(corosync_poll_handle, QB_LOOP_HIGH,
1334 SIGQUIT, NULL, sig_exit_handler, NULL);
1335 qb_loop_signal_add(corosync_poll_handle, QB_LOOP_HIGH,
1336 SIGTERM, NULL, sig_exit_handler, NULL);
1343 if ((flock_err = corosync_flock (corosync_lock_file, getpid ())) !=
COROSYNC_DONE_EXIT) {
1358 corosync_poll_handle,
1362 main_service_ready);
1365 &corosync_group_handle,
1370 corosync_group_handle,
1391 qb_loop_run (corosync_poll_handle);
1401 qb_loop_destroy (corosync_poll_handle);
1410 unlink (corosync_lock_file);
1414 return EXIT_SUCCESS;
int32_t cs_ipcs_q_level_get(void)
unsigned int corosync_service_defaults_link_and_init(struct corosync_api_v1 *corosync_api)
Load all of the default services.
void(*) in log_level_security)
const char * get_run_dir(void)
int corosync_quorum_is_quorate(void)
void totempg_finalize(void)
Totem Single Ring Protocol.
uint64_t memb_commit_token_rx
#define LOGSYS_LEVEL_INFO
void(* sync_init)(const unsigned int *trans_list, size_t trans_list_entries, const unsigned int *member_list, size_t member_list_entries, const struct memb_ring_id *ring_id)
#define LOGSYS_LEVEL_TRACE
void totempg_trans_ack(void)
struct totem_config * totem_config
void sync_start(const unsigned int *member_list, size_t member_list_entries, const struct memb_ring_id *ring_id)
void(* timer_delete)(corosync_timer_handle_t timer_handle)
qb_loop_timer_handle handle
totemsrp_token_stats_t token[TOTEM_TOKEN_STATS_MAX]
const char * totemip_print(const struct totem_ip_address *addr)
Totem Single Ring Protocol.
int(* sync_process)(void)
void(* exec_dump_fn)(void)
int sync_init(int(*sync_callbacks_retrieve)(int service_id, struct sync_callbacks *callbacks), void(*synchronization_completed)(void))
int coroparse_configparse(icmap_map_t config_map, const char **error_string)
int(* timer_add_duration)(unsigned long long nanoseconds_in_future, void *data, void(*timer_nf)(void *data), corosync_timer_handle_t *handle)
qb_loop_t * cs_poll_handle_get(void)
void corosync_recheck_the_q_level(void *data)
#define corosync_exit_error(err)
void(* exec_endian_convert_fn)(void *msg)
int totempg_groups_joined_release(int msg_count)
struct message_header header
uint64_t memb_merge_detect_rx
LOGSYS_DECLARE_SUBSYS("MAIN")
unsigned char addr[TOTEMIP_ADDRLEN]
void schedwrk_init(void(*serialize_lock_fn)(void), void(*serialize_unlock_fn)(void))
cs_error_t icmap_set_string(const char *key_name, const char *value)
int cs_poll_dispatch_add(qb_loop_t *handle, int fd, int events, void *data, int(*dispatch_fn)(int fd, int revents, void *data))
int totempg_groups_initialize(void **instance, void(*deliver_fn)(unsigned int nodeid, const void *msg, unsigned int msg_len, int endian_conversion_required), void(*confchg_fn)(enum totem_configuration_type configuration_type, const unsigned int *member_list, size_t member_list_entries, const unsigned int *left_list, size_t left_list_entries, const unsigned int *joined_list, size_t joined_list_entries, const struct memb_ring_id *ring_id))
Initialize a groups instance.
uint64_t gather_token_lost
void totemip_copy(struct totem_ip_address *addr1, const struct totem_ip_address *addr2)
icmap_map_t icmap_get_global_map(void)
unsigned long long max_tv_diff
struct corosync_service_engine * corosync_service[SERVICES_COUNT_MAX]
int _logsys_subsys_create(const char *subsys, const char *filename)
uint64_t memb_commit_token_tx
#define LOGSYS_PERROR(err_num, level, fmt, args...)
cs_error_t icmap_inc(const char *key_name)
#define log_printf(level, format, args...)
#define MAX_NO_CONT_SENDMSG_FAILURES
void(* exec_handler_fn)(const void *msg, unsigned int nodeid)
#define TOTEM_TOKEN_STATS_MAX
void cs_ipcs_sync_state_changed(int32_t sync_in_process)
int corosync_sending_allowed(unsigned int service, unsigned int id, const void *msg, void *sending_allowed_private_data)
int main_mcast(const struct iovec *iovec, unsigned int iov_len, unsigned int guarantee)
void cs_ipc_allow_connections(int32_t allow)
void corosync_service_unlink_all(struct corosync_api_v1 *api, void(*unlink_all_complete)(void))
Unlink and exit all corosync services.
uint64_t operational_entered
#define ICMAP_TRACK_DELETE
void totempg_service_ready_register(void(*totem_service_ready)(void))
void(* sync_activate)(void)
#define ICMAP_KEYNAME_MAXLEN
uint64_t operational_token_lost
#define MAX_NO_CONT_GATHER
Maximum number of continuous gather states.
uint64_t consensus_timeouts
int totem_config_keyread(struct totem_config *totem_config, const char **error_string)
uint64_t recovery_token_lost
#define LOGSYS_LEVEL_WARNING
#define ICMAP_TRACK_MODIFY
struct corosync_exec_handler * exec_engine
unsigned int totempg_my_nodeid_get(void)
cs_error_t icmap_set_uint32(const char *key_name, uint32_t value)
uint64_t commit_token_lost
uint64_t token_hold_cancel_rx
int logsys_thread_start(void)
int totem_config_validate(struct totem_config *totem_config, const char **error_string)
#define LOGSYS_MODE_OUTPUT_SYSLOG
int totempg_groups_joined_reserve(void *instance, const struct iovec *iovec, unsigned int iov_len)
#define LOGSYS_LEVEL_ERROR
struct totem_ip_address rep
void sync_save_transitional(const unsigned int *member_list, size_t member_list_entries, const struct memb_ring_id *ring_id)
int totempg_groups_mcast_joined(void *instance, const struct iovec *iovec, unsigned int iov_len, int guarantee)
const char * service_stats_tx[SERVICES_COUNT_MAX][SERVICE_HANDLER_MAXIMUM_COUNT]
cs_error_t icmap_get(const char *key_name, void *value, size_t *value_len, icmap_value_types_t *type)
int corosync_log_config_read(cmap_handle_t cmap_h, const char *default_logfile, const char **error_string)
void(* log_printf)(int level, int subsys, const char *function_name, const char *file_name, int file_line, const char *format,...) __attribute__((format(printf
#define LOGSYS_LEVEL_DEBUG
void(* sync_activate)(void)
void(* confchg_fn)(enum totem_configuration_type configuration_type, const unsigned int *member_list, size_t member_list_entries, const unsigned int *left_list, size_t left_list_entries, const unsigned int *joined_list, size_t joined_list_entries, const struct memb_ring_id *ring_id)
#define TOTEM_CONFIG_WARNING_MEMBERS_DEPRECATED
#define TOTEM_CONFIG_WARNING_MEMBERS_IGNORED
uint32_t continuous_gather
cs_error_t icmap_set_uint64(const char *key_name, uint64_t value)
cs_error_t icmap_fast_inc(const char *key_name)
#define MILLI_2_NANO_SECONDS
void message_source_set(mar_message_source_t *source, void *conn)
int(* sync_process)(void)
void logsys_config_apply(void)
uint64_t token_hold_cancel_tx
unsigned int token_timeout
void totempg_check_q_level(void *instance)
const char * service_stats_rx[SERVICES_COUNT_MAX][SERVICE_HANDLER_MAXIMUM_COUNT]
struct corosync_api_v1 * apidef_get(void)
void corosync_sending_allowed_release(void *sending_allowed_private_data)
void cs_ipcs_stats_update(void)
uint64_t memb_merge_detect_tx
#define SERVICES_COUNT_MAX
unsigned long long tv_prev
void corosync_state_dump(void)
qb_loop_timer_handle corosync_timer_handle_t
int cs_poll_dispatch_delete(qb_loop_t *handle, int fd)
void(* sync_init)(const unsigned int *trans_list, size_t trans_list_entries, const unsigned int *member_list, size_t member_list_entries, const struct memb_ring_id *ring_id)
int message_source_is_local(const mar_message_source_t *source)
struct totem_logging_configuration totem_logging_configuration
int totempg_groups_join(void *instance, const struct totempg_group *groups, size_t group_cnt)
#define LOGSYS_LEVEL_NOTICE
cs_error_t icmap_set_uint8(const char *key_name, uint8_t value)
uint64_t recovery_entered
cs_error_t icmap_set_ro_access(const char *key_name, int prefix, int ro_access)
int totempg_initialize(qb_loop_t *poll_handle, struct totem_config *totem_config)
Initialize the totem process groups abstraction.
void corosync_shutdown_request(void)
struct sched_param global_sched_param
uint32_t continuous_sendmsg_failures
struct memb_ring_id ring_id
const char *(* totem_ifaces_print)(unsigned int nodeid)
int main(int argc, char **argv, char **envp)
cs_error_t icmap_init(void)
#define TOTEM_CONFIG_WARNING_TOTEM_NODEID_IGNORED
LOGSYS_DECLARE_SYSTEM("corosync", LOGSYS_MODE_OUTPUT_STDERR|LOGSYS_MODE_OUTPUT_SYSLOG, LOG_DAEMON, LOG_INFO)
#define LOGSYS_MODE_OUTPUT_STDERR
void *(* totem_get_stats)(void)
cs_error_t icmap_track_add(const char *key_name, int32_t track_type, icmap_notify_fn_t notify_fn, void *user_data, icmap_track_t *icmap_track)
int totem_config_read(struct totem_config *totem_config, const char **error_string, uint64_t *warnings)
void(* totem_memb_ring_id_create_or_load)(struct memb_ring_id *memb_ring_id, const struct totem_ip_address *addr)
void logsys_system_fini(void)
void(* totem_memb_ring_id_store)(const struct memb_ring_id *memb_ring_id, const struct totem_ip_address *addr)