pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
Macros | Typedefs | Functions
pcmk_sched_primitive.c File Reference
#include <crm_internal.h>
#include <stdbool.h>
#include <stdint.h>
#include <crm/msg_xml.h>
#include <pacemaker-internal.h>
#include "libpacemaker_private.h"
Include dependency graph for pcmk_sched_primitive.c:

Go to the source code of this file.

Macros

#define RSC_ROLE_MAX   (pcmk_role_promoted + 1)
 

Typedefs

typedef void(* rsc_transition_fn) (pcmk_resource_t *rsc, pcmk_node_t *node, bool optional)
 

Functions

pcmk_node_tpcmk__primitive_assign (pcmk_resource_t *rsc, const pcmk_node_t *prefer, bool stop_if_fail)
 
void pcmk__primitive_create_actions (pcmk_resource_t *rsc)
 
void pcmk__primitive_internal_constraints (pcmk_resource_t *rsc)
 
void pcmk__primitive_apply_coloc_score (pcmk_resource_t *dependent, const pcmk_resource_t *primary, const pcmk__colocation_t *colocation, bool for_dependent)
 
void pcmk__with_primitive_colocations (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList **list)
 
void pcmk__primitive_with_colocations (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList **list)
 
uint32_t pcmk__primitive_action_flags (pcmk_action_t *action, const pcmk_node_t *node)
 
void pcmk__schedule_cleanup (pcmk_resource_t *rsc, const pcmk_node_t *node, bool optional)
 
void pcmk__primitive_add_graph_meta (const pcmk_resource_t *rsc, xmlNode *xml)
 
void pcmk__primitive_add_utilization (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList *all_rscs, GHashTable *utilization)
 
void pcmk__primitive_shutdown_lock (pcmk_resource_t *rsc)
 

Macro Definition Documentation

◆ RSC_ROLE_MAX

#define RSC_ROLE_MAX   (pcmk_role_promoted + 1)

Definition at line 31 of file pcmk_sched_primitive.c.

Typedef Documentation

◆ rsc_transition_fn

typedef void(* rsc_transition_fn) (pcmk_resource_t *rsc, pcmk_node_t *node, bool optional)

Definition at line 83 of file pcmk_sched_primitive.c.

Function Documentation

◆ pcmk__primitive_action_flags()

uint32_t pcmk__primitive_action_flags ( pcmk_action_t action,
const pcmk_node_t node 
)

Definition at line 1189 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_add_graph_meta()

void pcmk__primitive_add_graph_meta ( const pcmk_resource_t rsc,
xmlNode *  xml 
)

Definition at line 1485 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_add_utilization()

void pcmk__primitive_add_utilization ( const pcmk_resource_t rsc,
const pcmk_resource_t orig_rsc,
GList *  all_rscs,
GHashTable *  utilization 
)

Definition at line 1536 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_apply_coloc_score()

void pcmk__primitive_apply_coloc_score ( pcmk_resource_t dependent,
const pcmk_resource_t primary,
const pcmk__colocation_t colocation,
bool  for_dependent 
)

Definition at line 1084 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_assign()

pcmk_node_t* pcmk__primitive_assign ( pcmk_resource_t rsc,
const pcmk_node_t prefer,
bool  stop_if_fail 
)

Definition at line 390 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_create_actions()

void pcmk__primitive_create_actions ( pcmk_resource_t rsc)

Definition at line 680 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_internal_constraints()

void pcmk__primitive_internal_constraints ( pcmk_resource_t rsc)

Definition at line 899 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_shutdown_lock()

void pcmk__primitive_shutdown_lock ( pcmk_resource_t rsc)

Definition at line 1597 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_with_colocations()

void pcmk__primitive_with_colocations ( const pcmk_resource_t rsc,
const pcmk_resource_t orig_rsc,
GList **  list 
)

Definition at line 1153 of file pcmk_sched_primitive.c.

◆ pcmk__schedule_cleanup()

void pcmk__schedule_cleanup ( pcmk_resource_t rsc,
const pcmk_node_t node,
bool  optional 
)

Definition at line 1443 of file pcmk_sched_primitive.c.

◆ pcmk__with_primitive_colocations()

void pcmk__with_primitive_colocations ( const pcmk_resource_t rsc,
const pcmk_resource_t orig_rsc,
GList **  list 
)

Definition at line 1123 of file pcmk_sched_primitive.c.