pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
Enumerations | Functions
internal.h File Reference
#include <stdint.h>
#include <crm/cluster.h>
Include dependency graph for internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  crm_proc_flag {
  crm_proc_none = 0x00000001, crm_proc_cpg = 0x04000000, crm_proc_execd = 0x00000010, crm_proc_based = 0x00000100,
  crm_proc_controld = 0x00000200, crm_proc_attrd = 0x00001000, crm_proc_schedulerd = 0x00010000, crm_proc_fenced = 0x00100000
}
 

Functions

crm_node_tcrm_update_peer_proc (const char *source, crm_node_t *peer, uint32_t flag, const char *status)
 
crm_node_tpcmk__update_peer_state (const char *source, crm_node_t *node, const char *state, uint64_t membership)
 Update a node's state and membership information. More...
 
void pcmk__update_peer_expected (const char *source, crm_node_t *node, const char *expected)
 
void pcmk__reap_unseen_nodes (uint64_t ring_id)
 
void pcmk__corosync_quorum_connect (gboolean(*dispatch)(unsigned long long, gboolean), void(*destroy)(gpointer))
 
crm_node_tpcmk__search_node_caches (unsigned int id, const char *uname, uint32_t flags)
 
crm_node_tpcmk__search_cluster_node_cache (unsigned int id, const char *uname, const char *uuid)
 
void pcmk__refresh_node_caches_from_cib (xmlNode *cib)
 
crm_node_tpcmk__search_known_node_cache (unsigned int id, const char *uname, uint32_t flags)
 
crm_node_tpcmk__get_peer (unsigned int id, const char *uname, const char *uuid)
 Get a cluster node cache entry. More...
 
crm_node_tpcmk__get_peer_full (unsigned int id, const char *uname, const char *uuid, int flags)
 Get a node cache entry (cluster or Pacemaker Remote) More...
 

Enumeration Type Documentation

◆ crm_proc_flag

Enumerator
crm_proc_none 
crm_proc_cpg 
crm_proc_execd 
crm_proc_based 
crm_proc_controld 
crm_proc_attrd 
crm_proc_schedulerd 
crm_proc_fenced 

Definition at line 17 of file internal.h.

Function Documentation

◆ crm_update_peer_proc()

crm_node_t* crm_update_peer_proc ( const char *  source,
crm_node_t peer,
uint32_t  flag,
const char *  status 
)

Definition at line 924 of file membership.c.

◆ pcmk__corosync_quorum_connect()

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

Definition at line 341 of file corosync.c.

◆ pcmk__get_peer()

crm_node_t* pcmk__get_peer ( unsigned int  id,
const char *  uname,
const char *  uuid 
)

Get a cluster node cache entry.

Parameters
[in]idIf not 0, cluster node ID to search for
[in]unameIf not NULL, node name to search for
[in]uuidIf not NULL while id is 0, node UUID instead of cluster node ID to search for
Returns
(Possibly newly created) cluster node cache entry

Definition at line 735 of file membership.c.

◆ pcmk__get_peer_full()

crm_node_t* pcmk__get_peer_full ( unsigned int  id,
const char *  uname,
const char *  uuid,
int  flags 
)

Get a node cache entry (cluster or Pacemaker Remote)

Parameters
[in]idIf not 0, cluster node ID to search for
[in]unameIf not NULL, node name to search for
[in]uuidIf not NULL while id is 0, node UUID instead of cluster node ID to search for
[in]flagsBitmask of enum crm_get_peer_flags
Returns
(Possibly newly created) node cache entry

Definition at line 536 of file membership.c.

◆ pcmk__reap_unseen_nodes()

void pcmk__reap_unseen_nodes ( uint64_t  ring_id)

Definition at line 1154 of file membership.c.

◆ pcmk__refresh_node_caches_from_cib()

void pcmk__refresh_node_caches_from_cib ( xmlNode *  cib)

Definition at line 1306 of file membership.c.

◆ pcmk__search_cluster_node_cache()

crm_node_t* pcmk__search_cluster_node_cache ( unsigned int  id,
const char *  uname,
const char *  uuid 
)

Definition at line 582 of file membership.c.

◆ pcmk__search_known_node_cache()

crm_node_t* pcmk__search_known_node_cache ( unsigned int  id,
const char *  uname,
uint32_t  flags 
)

Definition at line 1323 of file membership.c.

◆ pcmk__search_node_caches()

crm_node_t* pcmk__search_node_caches ( unsigned int  id,
const char *  uname,
uint32_t  flags 
)

Definition at line 506 of file membership.c.

◆ pcmk__update_peer_expected()

void pcmk__update_peer_expected ( const char *  source,
crm_node_t node,
const char *  expected 
)

Definition at line 1018 of file membership.c.

◆ pcmk__update_peer_state()

crm_node_t* pcmk__update_peer_state ( const char *  source,
crm_node_t node,
const char *  state,
uint64_t  membership 
)

Update a node's state and membership information.

Parameters
[in]sourceCaller's function name (for log messages)
[in,out]nodeNode object to update
[in]stateNode's new state
[in]membershipNode's new membership ID
Returns
NULL if any node was reaped, value of node otherwise
Note
If this function returns NULL, the supplied node object was likely freed and should not be used again. This function should not be called within a cache iteration if reaping is possible, otherwise reaping could invalidate the iterator.

Definition at line 1141 of file membership.c.