pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
Data Structures | Macros | Enumerations | Functions
nodes_internal.h File Reference
#include <stdio.h>
#include <stdbool.h>
#include <stdint.h>
#include <glib.h>
#include <crm/common/nodes.h>
Include dependency graph for nodes_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pcmk__node_assignment
 
struct  pcmk__node_private
 

Macros

#define PCMK__NODE_ATTR_SHUTDOWN   "shutdown"
 
#define PCMK__NODE_ATTR_RESOURCE_DISCOVERY_ENABLED   "resource-discovery-enabled"
 
#define pcmk__set_node_flags(node, flags_to_set)
 
#define pcmk__clear_node_flags(node, flags_to_clear)
 

Enumerations

enum  pcmk__node_variant { pcmk__node_variant_cluster = 1, pcmk__node_variant_remote = 2 }
 
enum  pcmk__node_flags {
  pcmk__node_none = UINT32_C(0), pcmk__node_standby = (UINT32_C(1) << 0), pcmk__node_fail_standby = (UINT32_C(1) << 1), pcmk__node_seen = (UINT32_C(1) << 2),
  pcmk__node_expected_up = (UINT32_C(1) << 3), pcmk__node_probes_allowed = (UINT32_C(1) << 4), pcmk__node_remote_reset = (UINT32_C(1) << 5), pcmk__node_remote_fenced = (UINT32_C(1) << 6),
  pcmk__node_remote_maint = (UINT32_C(1) << 7), pcmk__node_unpacked = (UINT32_C(1) << 8)
}
 
enum  pcmk__probe_mode { pcmk__probe_always = 0, pcmk__probe_never = 1, pcmk__probe_exclusive = 2 }
 

Functions

void pcmk__free_node_copy (void *data)
 
pcmk_node_tpcmk__find_node_in_list (const GList *nodes, const char *node_name)
 

Macro Definition Documentation

◆ pcmk__clear_node_flags

#define pcmk__clear_node_flags (   node,
  flags_to_clear 
)
Value:
do { \
(node)->priv->flags = pcmk__clear_flags_as(__func__, __LINE__, \
LOG_TRACE, "Node", pcmk__node_name(node), \
(node)->priv->flags, (flags_to_clear), #flags_to_clear); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38

Definition at line 149 of file nodes_internal.h.

◆ PCMK__NODE_ATTR_RESOURCE_DISCOVERY_ENABLED

#define PCMK__NODE_ATTR_RESOURCE_DISCOVERY_ENABLED   "resource-discovery-enabled"

Definition at line 34 of file nodes_internal.h.

◆ PCMK__NODE_ATTR_SHUTDOWN

#define PCMK__NODE_ATTR_SHUTDOWN   "shutdown"

Definition at line 28 of file nodes_internal.h.

◆ pcmk__set_node_flags

#define pcmk__set_node_flags (   node,
  flags_to_set 
)
Value:
do { \
(node)->priv->flags = pcmk__set_flags_as(__func__, __LINE__, \
LOG_TRACE, "Node", pcmk__node_name(node), \
(node)->priv->flags, (flags_to_set), #flags_to_set); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38

Definition at line 136 of file nodes_internal.h.

Enumeration Type Documentation

◆ pcmk__node_flags

Enumerator
pcmk__node_none 
pcmk__node_standby 
pcmk__node_fail_standby 
pcmk__node_seen 
pcmk__node_expected_up 
pcmk__node_probes_allowed 
pcmk__node_remote_reset 
pcmk__node_remote_fenced 
pcmk__node_remote_maint 
pcmk__node_unpacked 

Definition at line 41 of file nodes_internal.h.

◆ pcmk__node_variant

Enumerator
pcmk__node_variant_cluster 
pcmk__node_variant_remote 

Definition at line 36 of file nodes_internal.h.

◆ pcmk__probe_mode

Enumerator
pcmk__probe_always 
pcmk__probe_never 
pcmk__probe_exclusive 

Definition at line 80 of file nodes_internal.h.

Function Documentation

◆ pcmk__find_node_in_list()

pcmk_node_t* pcmk__find_node_in_list ( const GList *  nodes,
const char *  node_name 
)

Definition at line 170 of file nodes.c.

◆ pcmk__free_node_copy()

void pcmk__free_node_copy ( void *  data)

Definition at line 22 of file nodes.c.