pacemaker  2.1.0-7c3f660
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 "crmcluster_private.h"
Include dependency graph for corosync.c:

Go to the source code of this file.

Functions

char * pcmk__corosync_uuid (crm_node_t *node)
 
char * pcmk__corosync_name (uint64_tcmap_handle, uint32_t nodeid)
 
void pcmk__corosync_disconnect (crm_cluster_t *cluster)
 
void pcmk__corosync_quorum_connect (gboolean(*dispatch)(unsigned long long, gboolean), void(*destroy)(gpointer))
 
gboolean pcmk__corosync_connect (crm_cluster_t *cluster)
 
enum cluster_type_e pcmk__corosync_detect (void)
 
gboolean crm_is_corosync_peer_active (const crm_node_t *node)
 Check whether a Corosync cluster peer is active. More...
 
bool pcmk__corosync_add_nodes (xmlNode *xml_parent)
 
char * pcmk__corosync_cluster_name (void)
 
bool pcmk__corosync_has_nodelist (void)
 

Variables

quorum_callbacks_t quorum_callbacks
 

Function Documentation

gboolean crm_is_corosync_peer_active ( const crm_node_t node)

Check whether a Corosync cluster peer is active.

Parameters
[in]nodeNode to check
Returns
TRUE if node is an active Corosync peer, otherwise FALSE

Definition at line 515 of file corosync.c.

bool pcmk__corosync_add_nodes ( xmlNode *  xml_parent)

Definition at line 543 of file corosync.c.

char* pcmk__corosync_cluster_name ( void  )

Definition at line 655 of file corosync.c.

gboolean pcmk__corosync_connect ( crm_cluster_t cluster)

Definition at line 435 of file corosync.c.

enum cluster_type_e pcmk__corosync_detect ( void  )

Definition at line 480 of file corosync.c.

void pcmk__corosync_disconnect ( crm_cluster_t cluster)

Definition at line 223 of file corosync.c.

bool pcmk__corosync_has_nodelist ( void  )

Definition at line 714 of file corosync.c.

char* pcmk__corosync_name ( uint64_t  cmap_handle,
uint32_t  nodeid 
)

Definition at line 101 of file corosync.c.

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

Definition at line 345 of file corosync.c.

char* pcmk__corosync_uuid ( crm_node_t node)

Definition at line 55 of file corosync.c.

Variable Documentation

quorum_callbacks_t quorum_callbacks
Initial value:
= {
.quorum_notify_fn = quorum_notification_cb,
}

Definition at line 333 of file corosync.c.