pacemaker  2.1.2-ada5c3b36
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)
 
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)
 

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 876 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__reap_unseen_nodes()

void pcmk__reap_unseen_nodes ( uint64_t  ring_id)

Definition at line 1092 of file membership.c.

◆ pcmk__refresh_node_caches_from_cib()

void pcmk__refresh_node_caches_from_cib ( xmlNode *  cib)

Definition at line 1248 of file membership.c.

◆ pcmk__search_cluster_node_cache()

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

Definition at line 562 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 1265 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 963 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]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 1079 of file membership.c.