pacemaker  2.0.2-debe490
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
corosync.c File Reference
#include <crm_internal.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <inttypes.h>
#include <bzlib.h>
#include <crm/common/ipc.h>
#include <crm/cluster/internal.h>
#include <crm/common/mainloop.h>
#include <sys/utsname.h>
#include <qb/qbipcc.h>
#include <qb/qbutil.h>
#include <corosync/corodefs.h>
#include <corosync/corotypes.h>
#include <corosync/hdb.h>
#include <corosync/cfg.h>
#include <corosync/cmap.h>
#include <corosync/quorum.h>
#include <crm/msg_xml.h>
#include <crm/common/ipc_internal.h>
Include dependency graph for corosync.c:

Go to the source code of this file.


char * get_corosync_uuid (crm_node_t *node)
char * corosync_node_name (uint64_tcmap_handle, uint32_t nodeid)
void terminate_cs_connection (crm_cluster_t *cluster)
gboolean cluster_connect_quorum (gboolean(*dispatch)(unsigned long long, gboolean), void(*destroy)(gpointer))
gboolean init_cs_connection (crm_cluster_t *cluster)
gboolean init_cs_connection_once (crm_cluster_t *cluster)
gboolean check_message_sanity (const AIS_Message *msg, const char *data)
enum cluster_type_e find_corosync_variant (void)
gboolean crm_is_corosync_peer_active (const crm_node_t *node)
gboolean corosync_initialize_nodelist (void *cluster, gboolean force_member, xmlNode *xml_parent)
char * corosync_cluster_name (void)
int corosync_cmap_has_config (const char *prefix)


quorum_handle_t pcmk_quorum_handle = 0
gboolean(* quorum_app_callback )(unsigned long long seq, gboolean quorate) = NULL
quorum_callbacks_t quorum_callbacks

Function Documentation

gboolean check_message_sanity ( const AIS_Message msg,
const char *  data 

Definition at line 421 of file corosync.c.

gboolean cluster_connect_quorum ( gboolean(*)(unsigned long long, gboolean)  dispatch,
void(*)(gpointer)  destroy 

Definition at line 271 of file corosync.c.

char* corosync_cluster_name ( void  )

Definition at line 639 of file corosync.c.

int corosync_cmap_has_config ( const char *  prefix)

Definition at line 692 of file corosync.c.

gboolean corosync_initialize_nodelist ( void *  cluster,
gboolean  force_member,
xmlNode *  xml_parent 

Definition at line 530 of file corosync.c.

char* corosync_node_name ( uint64_t  cmap_handle,
uint32_t  nodeid 

Definition at line 61 of file corosync.c.

gboolean crm_is_corosync_peer_active ( const crm_node_t node)

Definition at line 512 of file corosync.c.

enum cluster_type_e find_corosync_variant ( void  )

Definition at line 484 of file corosync.c.

char* get_corosync_uuid ( crm_node_t node)

Definition at line 44 of file corosync.c.

gboolean init_cs_connection ( crm_cluster_t cluster)

Definition at line 356 of file corosync.c.

gboolean init_cs_connection_once ( crm_cluster_t cluster)

Definition at line 383 of file corosync.c.

void terminate_cs_connection ( crm_cluster_t cluster)

Definition at line 174 of file corosync.c.

Variable Documentation

quorum_handle_t pcmk_quorum_handle = 0

Definition at line 39 of file corosync.c.

gboolean(* quorum_app_callback)(unsigned long long seq, gboolean quorate) = NULL

Definition at line 41 of file corosync.c.

quorum_callbacks_t quorum_callbacks
Initial value:
= {
.quorum_notify_fn = pcmk_quorum_notification,

Definition at line 266 of file corosync.c.