pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Data Structures | Macros | Enumerations | Functions
libpacemaker_private.h File Reference
#include <crm/lrmd_events.h>
#include <crm/common/scheduler.h>
#include <crm/pengine/internal.h>
Include dependency graph for libpacemaker_private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  resource_alloc_functions_s
 

Macros

#define pcmk__set_updated_flags(au_flags, action, flags_to_set)
 
#define pcmk__clear_updated_flags(au_flags, action, flags_to_clear)
 
#define pcmk__order_resource_actions(first_rsc, first_task, then_rsc, then_task, flags)
 
#define pcmk__order_starts(rsc1, rsc2, flags)
 
#define pcmk__order_stops(rsc1, rsc2, flags)
 

Enumerations

enum  pcmk__coloc_flags { pcmk__coloc_none = 0U, pcmk__coloc_influence = (1U << 0), pcmk__coloc_explicit = (1U << 1) }
 
enum  pcmk__coloc_select { pcmk__coloc_select_default = 0, pcmk__coloc_select_this_with = (1 << 0), pcmk__coloc_select_nonnegative = (1 << 1), pcmk__coloc_select_active = (1 << 2) }
 
enum  pcmk__updated { pcmk__updated_none = 0, pcmk__updated_first = (1 << 0), pcmk__updated_then = (1 << 1) }
 
enum  pcmk__coloc_affects { pcmk__coloc_affects_nothing = 0, pcmk__coloc_affects_location, pcmk__coloc_affects_role }
 

Functions

G_GNUC_INTERNAL void pcmk__update_action_for_orderings (pcmk_action_t *action, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL uint32_t pcmk__update_ordered_actions (pcmk_action_t *first, pcmk_action_t *then, const pcmk_node_t *node, uint32_t flags, uint32_t filter, uint32_t type, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL void pcmk__log_action (const char *pre_text, const pcmk_action_t *action, bool details)
 
G_GNUC_INTERNAL pcmk_action_tpcmk__new_cancel_action (pcmk_resource_t *rsc, const char *name, guint interval_ms, const pcmk_node_t *node)
 
G_GNUC_INTERNAL pcmk_action_tpcmk__new_shutdown_action (pcmk_node_t *node)
 
G_GNUC_INTERNAL bool pcmk__action_locks_rsc_to_node (const pcmk_action_t *action)
 
G_GNUC_INTERNAL void pcmk__deduplicate_action_inputs (pcmk_action_t *action)
 
G_GNUC_INTERNAL void pcmk__output_actions (pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL bool pcmk__check_action_config (pcmk_resource_t *rsc, pcmk_node_t *node, const xmlNode *xml_op)
 
G_GNUC_INTERNAL void pcmk__handle_rsc_config_changes (pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL void pcmk__create_recurring_actions (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__schedule_cancel (pcmk_resource_t *rsc, const char *call_id, const char *task, guint interval_ms, const pcmk_node_t *node, const char *reason)
 
G_GNUC_INTERNAL void pcmk__reschedule_recurring (pcmk_resource_t *rsc, const char *task, guint interval_ms, pcmk_node_t *node)
 
G_GNUC_INTERNAL bool pcmk__action_is_recurring (const pcmk_action_t *action)
 
G_GNUC_INTERNAL bool pcmk__graph_has_loop (const pcmk_action_t *init_action, const pcmk_action_t *action, pcmk__related_action_t *input)
 
G_GNUC_INTERNAL void pcmk__add_rsc_actions_to_graph (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__create_graph (pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL void pcmk__order_vs_fence (pcmk_action_t *stonith_op, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL void pcmk__order_vs_unfence (const pcmk_resource_t *rsc, pcmk_node_t *node, pcmk_action_t *action, enum pcmk__action_relation_flags order)
 
G_GNUC_INTERNAL void pcmk__fence_guest (pcmk_node_t *node)
 
G_GNUC_INTERNAL bool pcmk__node_unfenced (const pcmk_node_t *node)
 
G_GNUC_INTERNAL void pcmk__order_restart_vs_unfence (gpointer data, gpointer user_data)
 
void pcmk__inject_scheduler_input (pcmk_scheduler_t *scheduler, cib_t *cib, const pcmk_injections_t *injections)
 
G_GNUC_INTERNAL pcmk_resource_tpcmk__find_constraint_resource (GList *rsc_list, const char *id)
 
G_GNUC_INTERNAL xmlNode * pcmk__expand_tags_in_sets (xmlNode *xml_obj, const pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL bool pcmk__valid_resource_or_tag (const pcmk_scheduler_t *scheduler, const char *id, pcmk_resource_t **rsc, pcmk_tag_t **tag)
 
G_GNUC_INTERNAL bool pcmk__tag_to_set (xmlNode *xml_obj, xmlNode **rsc_set, const char *attr, bool convert_rsc, const pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL void pcmk__create_internal_constraints (pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL void pcmk__unpack_location (xmlNode *xml_obj, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL pcmk__location_tpcmk__new_location (const char *id, pcmk_resource_t *rsc, int node_score, const char *discover_mode, pcmk_node_t *foo_node)
 
G_GNUC_INTERNAL void pcmk__apply_locations (pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL void pcmk__apply_location (pcmk_resource_t *rsc, pcmk__location_t *constraint)
 
G_GNUC_INTERNAL enum pcmk__coloc_affects pcmk__colocation_affects (const pcmk_resource_t *dependent, const pcmk_resource_t *primary, const pcmk__colocation_t *colocation, bool preview)
 
G_GNUC_INTERNAL void pcmk__apply_coloc_to_scores (pcmk_resource_t *dependent, const pcmk_resource_t *primary, const pcmk__colocation_t *colocation)
 
G_GNUC_INTERNAL int pcmk__apply_coloc_to_priority (pcmk_resource_t *dependent, const pcmk_resource_t *primary, const pcmk__colocation_t *colocation)
 
G_GNUC_INTERNAL void pcmk__add_colocated_node_scores (pcmk_resource_t *source_rsc, const pcmk_resource_t *target_rsc, const char *log_id, GHashTable **nodes, const pcmk__colocation_t *colocation, float factor, uint32_t flags)
 
G_GNUC_INTERNAL void pcmk__add_dependent_scores (gpointer data, gpointer user_data)
 
G_GNUC_INTERNAL void pcmk__colocation_intersect_nodes (pcmk_resource_t *dependent, const pcmk_resource_t *primary, const pcmk__colocation_t *colocation, const GList *primary_nodes, bool merge_scores)
 
G_GNUC_INTERNAL void pcmk__unpack_colocation (xmlNode *xml_obj, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL void pcmk__add_this_with (GList **list, const pcmk__colocation_t *colocation, const pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__add_this_with_list (GList **list, GList *addition, const pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__add_with_this (GList **list, const pcmk__colocation_t *colocation, const pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__add_with_this_list (GList **list, GList *addition, const pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL GList * pcmk__with_this_colocations (const pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL GList * pcmk__this_with_colocations (const pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__new_colocation (const char *id, const char *node_attr, int score, pcmk_resource_t *dependent, pcmk_resource_t *primary, const char *dependent_role, const char *primary_role, uint32_t flags)
 
G_GNUC_INTERNAL void pcmk__block_colocation_dependents (pcmk_action_t *action)
 
G_GNUC_INTERNAL bool pcmk__colocation_has_influence (const pcmk__colocation_t *colocation, const pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__new_ordering (pcmk_resource_t *first_rsc, char *first_task, pcmk_action_t *first_action, pcmk_resource_t *then_rsc, char *then_task, pcmk_action_t *then_action, uint32_t flags, pcmk_scheduler_t *sched)
 
G_GNUC_INTERNAL void pcmk__unpack_ordering (xmlNode *xml_obj, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL void pcmk__disable_invalid_orderings (pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL void pcmk__order_stops_before_shutdown (pcmk_node_t *node, pcmk_action_t *shutdown_op)
 
G_GNUC_INTERNAL void pcmk__apply_orderings (pcmk_scheduler_t *sched)
 
G_GNUC_INTERNAL void pcmk__order_after_each (pcmk_action_t *after, GList *list)
 
G_GNUC_INTERNAL void pcmk__unpack_rsc_ticket (xmlNode *xml_obj, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL void pcmk__add_promotion_scores (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__require_promotion_tickets (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__set_instance_roles (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__create_promotable_actions (pcmk_resource_t *clone)
 
G_GNUC_INTERNAL void pcmk__promotable_restart_ordering (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__order_promotable_instances (pcmk_resource_t *clone)
 
G_GNUC_INTERNAL void pcmk__update_dependent_with_promotable (const pcmk_resource_t *primary, pcmk_resource_t *dependent, const pcmk__colocation_t *colocation)
 Update dependent for a colocation with a promotable clone. More...
 
G_GNUC_INTERNAL int pcmk__update_promotable_dependent_priority (const pcmk_resource_t *primary, pcmk_resource_t *dependent, const pcmk__colocation_t *colocation)
 
G_GNUC_INTERNAL bool pcmk__is_failed_remote_node (const pcmk_node_t *node)
 
G_GNUC_INTERNAL void pcmk__order_remote_connection_actions (pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL bool pcmk__rsc_corresponds_to_guest (const pcmk_resource_t *rsc, const pcmk_node_t *node)
 
G_GNUC_INTERNAL pcmk_node_tpcmk__connection_host_for_action (const pcmk_action_t *action)
 
G_GNUC_INTERNAL void pcmk__substitute_remote_addr (pcmk_resource_t *rsc, GHashTable *params)
 
G_GNUC_INTERNAL void pcmk__add_guest_meta_to_xml (xmlNode *args_xml, const pcmk_action_t *action)
 Add special guest node meta-attributes to XML. More...
 
G_GNUC_INTERNAL pcmk_node_tpcmk__primitive_assign (pcmk_resource_t *rsc, const pcmk_node_t *prefer, bool stop_if_fail)
 
G_GNUC_INTERNAL void pcmk__primitive_create_actions (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__primitive_internal_constraints (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL uint32_t pcmk__primitive_action_flags (pcmk_action_t *action, const pcmk_node_t *node)
 
G_GNUC_INTERNAL int pcmk__primitive_apply_coloc_score (pcmk_resource_t *dependent, const pcmk_resource_t *primary, const pcmk__colocation_t *colocation, bool for_dependent)
 
G_GNUC_INTERNAL void pcmk__with_primitive_colocations (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList **list)
 
G_GNUC_INTERNAL void pcmk__primitive_with_colocations (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList **list)
 
G_GNUC_INTERNAL void pcmk__schedule_cleanup (pcmk_resource_t *rsc, const pcmk_node_t *node, bool optional)
 
G_GNUC_INTERNAL void pcmk__primitive_add_graph_meta (const pcmk_resource_t *rsc, xmlNode *xml)
 
G_GNUC_INTERNAL void pcmk__primitive_add_utilization (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList *all_rscs, GHashTable *utilization)
 
G_GNUC_INTERNAL void pcmk__primitive_shutdown_lock (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL pcmk_node_tpcmk__group_assign (pcmk_resource_t *rsc, const pcmk_node_t *prefer, bool stop_if_fail)
 
G_GNUC_INTERNAL void pcmk__group_create_actions (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__group_internal_constraints (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL int pcmk__group_apply_coloc_score (pcmk_resource_t *dependent, const pcmk_resource_t *primary, const pcmk__colocation_t *colocation, bool for_dependent)
 
G_GNUC_INTERNAL void pcmk__with_group_colocations (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList **list)
 
G_GNUC_INTERNAL void pcmk__group_with_colocations (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList **list)
 
G_GNUC_INTERNAL void pcmk__group_add_colocated_node_scores (pcmk_resource_t *source_rsc, const pcmk_resource_t *target_rsc, const char *log_id, GHashTable **nodes, const pcmk__colocation_t *colocation, float factor, uint32_t flags)
 
G_GNUC_INTERNAL void pcmk__group_apply_location (pcmk_resource_t *rsc, pcmk__location_t *location)
 
G_GNUC_INTERNAL uint32_t pcmk__group_action_flags (pcmk_action_t *action, const pcmk_node_t *node)
 
G_GNUC_INTERNAL uint32_t pcmk__group_update_ordered_actions (pcmk_action_t *first, pcmk_action_t *then, const pcmk_node_t *node, uint32_t flags, uint32_t filter, uint32_t type, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL GList * pcmk__group_colocated_resources (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList *colocated_rscs)
 
G_GNUC_INTERNAL void pcmk__group_add_utilization (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList *all_rscs, GHashTable *utilization)
 
G_GNUC_INTERNAL void pcmk__group_shutdown_lock (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL pcmk_node_tpcmk__clone_assign (pcmk_resource_t *rsc, const pcmk_node_t *prefer, bool stop_if_fail)
 
G_GNUC_INTERNAL void pcmk__clone_create_actions (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL bool pcmk__clone_create_probe (pcmk_resource_t *rsc, pcmk_node_t *node)
 
G_GNUC_INTERNAL void pcmk__clone_internal_constraints (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL int pcmk__clone_apply_coloc_score (pcmk_resource_t *dependent, const pcmk_resource_t *primary, const pcmk__colocation_t *colocation, bool for_dependent)
 
G_GNUC_INTERNAL void pcmk__with_clone_colocations (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList **list)
 
G_GNUC_INTERNAL void pcmk__clone_with_colocations (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList **list)
 
G_GNUC_INTERNAL void pcmk__clone_apply_location (pcmk_resource_t *rsc, pcmk__location_t *constraint)
 
G_GNUC_INTERNAL uint32_t pcmk__clone_action_flags (pcmk_action_t *action, const pcmk_node_t *node)
 
G_GNUC_INTERNAL void pcmk__clone_add_actions_to_graph (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__clone_add_graph_meta (const pcmk_resource_t *rsc, xmlNode *xml)
 
G_GNUC_INTERNAL void pcmk__clone_add_utilization (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList *all_rscs, GHashTable *utilization)
 
G_GNUC_INTERNAL void pcmk__clone_shutdown_lock (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL pcmk_node_tpcmk__bundle_assign (pcmk_resource_t *rsc, const pcmk_node_t *prefer, bool stop_if_fail)
 
G_GNUC_INTERNAL void pcmk__bundle_create_actions (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL bool pcmk__bundle_create_probe (pcmk_resource_t *rsc, pcmk_node_t *node)
 
G_GNUC_INTERNAL void pcmk__bundle_internal_constraints (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL int pcmk__bundle_apply_coloc_score (pcmk_resource_t *dependent, const pcmk_resource_t *primary, const pcmk__colocation_t *colocation, bool for_dependent)
 
G_GNUC_INTERNAL void pcmk__with_bundle_colocations (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList **list)
 
G_GNUC_INTERNAL void pcmk__bundle_with_colocations (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList **list)
 
G_GNUC_INTERNAL void pcmk__bundle_apply_location (pcmk_resource_t *rsc, pcmk__location_t *constraint)
 
G_GNUC_INTERNAL uint32_t pcmk__bundle_action_flags (pcmk_action_t *action, const pcmk_node_t *node)
 
G_GNUC_INTERNAL void pcmk__output_bundle_actions (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__bundle_add_actions_to_graph (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__bundle_add_utilization (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList *all_rscs, GHashTable *utilization)
 
G_GNUC_INTERNAL void pcmk__bundle_shutdown_lock (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__assign_instances (pcmk_resource_t *collective, GList *instances, int max_total, int max_per_node)
 
G_GNUC_INTERNAL void pcmk__create_instance_actions (pcmk_resource_t *rsc, GList *instances)
 
G_GNUC_INTERNAL bool pcmk__instance_matches (const pcmk_resource_t *instance, const pcmk_node_t *node, enum rsc_role_e role, bool current)
 
G_GNUC_INTERNAL pcmk_resource_tpcmk__find_compatible_instance (const pcmk_resource_t *match_rsc, const pcmk_resource_t *rsc, enum rsc_role_e role, bool current)
 
G_GNUC_INTERNAL uint32_t pcmk__instance_update_ordered_actions (pcmk_action_t *first, pcmk_action_t *then, const pcmk_node_t *node, uint32_t flags, uint32_t filter, uint32_t type, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL uint32_t pcmk__collective_action_flags (pcmk_action_t *action, const GList *instances, const pcmk_node_t *node)
 
G_GNUC_INTERNAL xmlNode * pcmk__inject_node (cib_t *cib_conn, const char *node, const char *uuid)
 
G_GNUC_INTERNAL xmlNode * pcmk__inject_node_state_change (cib_t *cib_conn, const char *node, bool up)
 
G_GNUC_INTERNAL xmlNode * pcmk__inject_resource_history (pcmk__output_t *out, xmlNode *cib_node, const char *resource, const char *lrm_name, const char *rclass, const char *rtype, const char *rprovider)
 
G_GNUC_INTERNAL void pcmk__inject_failcount (pcmk__output_t *out, cib_t *cib_conn, xmlNode *cib_node, const char *resource, const char *task, guint interval_ms, int rc)
 
G_GNUC_INTERNAL xmlNode * pcmk__inject_action_result (xmlNode *cib_resource, lrmd_event_data_t *op, int target_rc)
 
G_GNUC_INTERNAL bool pcmk__node_available (const pcmk_node_t *node, bool consider_score, bool consider_guest)
 
G_GNUC_INTERNAL bool pcmk__any_node_available (GHashTable *nodes)
 
G_GNUC_INTERNAL GHashTable * pcmk__copy_node_table (GHashTable *nodes)
 
G_GNUC_INTERNAL void pcmk__copy_node_tables (const pcmk_resource_t *rsc, GHashTable **copy)
 
G_GNUC_INTERNAL void pcmk__restore_node_tables (pcmk_resource_t *rsc, GHashTable *backup)
 
G_GNUC_INTERNAL GList * pcmk__sort_nodes (GList *nodes, pcmk_node_t *active_node)
 
G_GNUC_INTERNAL void pcmk__apply_node_health (pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL pcmk_node_tpcmk__top_allowed_node (const pcmk_resource_t *rsc, const pcmk_node_t *node)
 
G_GNUC_INTERNAL void pcmk__set_assignment_methods (pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL bool pcmk__rsc_agent_changed (pcmk_resource_t *rsc, pcmk_node_t *node, const xmlNode *rsc_entry, bool active_on_node)
 
G_GNUC_INTERNAL GList * pcmk__rscs_matching_id (const char *id, const pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL GList * pcmk__colocated_resources (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList *colocated_rscs)
 
G_GNUC_INTERNAL void pcmk__noop_add_graph_meta (const pcmk_resource_t *rsc, xmlNode *xml)
 
G_GNUC_INTERNAL void pcmk__output_resource_actions (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL bool pcmk__assign_resource (pcmk_resource_t *rsc, pcmk_node_t *node, bool force, bool stop_if_fail)
 
G_GNUC_INTERNAL void pcmk__unassign_resource (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL bool pcmk__threshold_reached (pcmk_resource_t *rsc, const pcmk_node_t *node, pcmk_resource_t **failed)
 
G_GNUC_INTERNAL void pcmk__sort_resources (pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL gint pcmk__cmp_instance (gconstpointer a, gconstpointer b)
 
G_GNUC_INTERNAL gint pcmk__cmp_instance_number (gconstpointer a, gconstpointer b)
 
G_GNUC_INTERNAL bool pcmk__probe_rsc_on_node (pcmk_resource_t *rsc, pcmk_node_t *node)
 
G_GNUC_INTERNAL void pcmk__order_probes (pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL bool pcmk__probe_resource_list (GList *rscs, pcmk_node_t *node)
 
G_GNUC_INTERNAL void pcmk__schedule_probes (pcmk_scheduler_t *scheduler)
 
void pcmk__create_migration_actions (pcmk_resource_t *rsc, const pcmk_node_t *current)
 
void pcmk__abort_dangling_migration (void *data, void *user_data)
 
bool pcmk__rsc_can_migrate (const pcmk_resource_t *rsc, const pcmk_node_t *current)
 
void pcmk__order_migration_equivalents (pcmk__action_relation_t *order)
 
G_GNUC_INTERNAL int pcmk__compare_node_capacities (const pcmk_node_t *node1, const pcmk_node_t *node2)
 
G_GNUC_INTERNAL void pcmk__consume_node_capacity (GHashTable *current_utilization, const pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__release_node_capacity (GHashTable *current_utilization, const pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL const pcmk_node_tpcmk__ban_insufficient_capacity (pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL void pcmk__create_utilization_constraints (pcmk_resource_t *rsc, const GList *allowed_nodes)
 
G_GNUC_INTERNAL void pcmk__show_node_capacities (const char *desc, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL int pcmk__init_scheduler (pcmk__output_t *out, xmlNodePtr input, const crm_time_t *date, pcmk_scheduler_t **scheduler)
 
G_GNUC_INTERNAL int pcmk__setup_output_cib_sched (pcmk__output_t **out, cib_t **cib, pcmk_scheduler_t **scheduler, xmlNode **xml)
 

Macro Definition Documentation

◆ pcmk__clear_updated_flags

#define pcmk__clear_updated_flags (   au_flags,
  action,
  flags_to_clear 
)
Value:
do { \
au_flags = pcmk__clear_flags_as(__func__, __LINE__, \
LOG_TRACE, "Action update", \
(action)->uuid, au_flags, \
(flags_to_clear), #flags_to_clear); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38
const char * action
Definition: pcmk_fence.c:30

Definition at line 61 of file libpacemaker_private.h.

◆ pcmk__order_resource_actions

#define pcmk__order_resource_actions (   first_rsc,
  first_task,
  then_rsc,
  then_task,
  flags 
)
Value:
pcmk__new_ordering((first_rsc), \
pcmk__op_key((first_rsc)->id, (first_task), 0), \
NULL, \
(then_rsc), \
pcmk__op_key((then_rsc)->id, (then_task), 0), \
NULL, (flags), (first_rsc)->cluster)
G_GNUC_INTERNAL void pcmk__new_ordering(pcmk_resource_t *first_rsc, char *first_task, pcmk_action_t *first_action, pcmk_resource_t *then_rsc, char *then_task, pcmk_action_t *then_action, uint32_t flags, pcmk_scheduler_t *sched)
char * pcmk__op_key(const char *rsc_id, const char *op_type, guint interval_ms)
Generate an operation key (RESOURCE_ACTION_INTERVAL)
Definition: actions.c:196
uint64_t flags
Definition: remote.c:215

Definition at line 638 of file libpacemaker_private.h.

◆ pcmk__order_starts

#define pcmk__order_starts (   rsc1,
  rsc2,
  flags 
)
Value:
pcmk_resource_t rsc2
#define PCMK_ACTION_START
Definition: actions.h:72
pcmk_resource_t rsc1
#define pcmk__order_resource_actions(first_rsc, first_task, then_rsc, then_task, flags)
uint64_t flags
Definition: remote.c:215

Definition at line 647 of file libpacemaker_private.h.

◆ pcmk__order_stops

#define pcmk__order_stops (   rsc1,
  rsc2,
  flags 
)
Value:
pcmk_resource_t rsc2
#define PCMK_ACTION_STOP
Definition: actions.h:75
pcmk_resource_t rsc1
#define pcmk__order_resource_actions(first_rsc, first_task, then_rsc, then_task, flags)
uint64_t flags
Definition: remote.c:215

Definition at line 651 of file libpacemaker_private.h.

◆ pcmk__set_updated_flags

#define pcmk__set_updated_flags (   au_flags,
  action,
  flags_to_set 
)
Value:
do { \
au_flags = pcmk__set_flags_as(__func__, __LINE__, \
LOG_TRACE, "Action update", \
(action)->uuid, au_flags, \
(flags_to_set), #flags_to_set); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38
const char * action
Definition: pcmk_fence.c:30

Definition at line 54 of file libpacemaker_private.h.

Enumeration Type Documentation

◆ pcmk__coloc_affects

Enumerator
pcmk__coloc_affects_nothing 
pcmk__coloc_affects_location 
pcmk__coloc_affects_role 

Definition at line 489 of file libpacemaker_private.h.

◆ pcmk__coloc_flags

Enumerator
pcmk__coloc_none 
pcmk__coloc_influence 
pcmk__coloc_explicit 

Definition at line 22 of file libpacemaker_private.h.

◆ pcmk__coloc_select

Enumerator
pcmk__coloc_select_default 
pcmk__coloc_select_this_with 
pcmk__coloc_select_nonnegative 
pcmk__coloc_select_active 

Definition at line 33 of file libpacemaker_private.h.

◆ pcmk__updated

Enumerator
pcmk__updated_none 
pcmk__updated_first 
pcmk__updated_then 

Definition at line 48 of file libpacemaker_private.h.

Function Documentation

◆ pcmk__abort_dangling_migration()

void pcmk__abort_dangling_migration ( void *  data,
void *  user_data 
)

Definition at line 154 of file pcmk_sched_migration.c.

◆ pcmk__action_is_recurring()

G_GNUC_INTERNAL bool pcmk__action_is_recurring ( const pcmk_action_t action)

Definition at line 738 of file pcmk_sched_recurring.c.

◆ pcmk__action_locks_rsc_to_node()

G_GNUC_INTERNAL bool pcmk__action_locks_rsc_to_node ( const pcmk_action_t action)

Definition at line 1305 of file pcmk_sched_actions.c.

◆ pcmk__add_colocated_node_scores()

G_GNUC_INTERNAL void pcmk__add_colocated_node_scores ( pcmk_resource_t source_rsc,
const pcmk_resource_t target_rsc,
const char *  log_id,
GHashTable **  nodes,
const pcmk__colocation_t colocation,
float  factor,
uint32_t  flags 
)

Definition at line 1798 of file pcmk_sched_colocation.c.

◆ pcmk__add_dependent_scores()

G_GNUC_INTERNAL void pcmk__add_dependent_scores ( gpointer  data,
gpointer  user_data 
)

Definition at line 1923 of file pcmk_sched_colocation.c.

◆ pcmk__add_guest_meta_to_xml()

G_GNUC_INTERNAL void pcmk__add_guest_meta_to_xml ( xmlNode *  args_xml,
const pcmk_action_t action 
)

Add special guest node meta-attributes to XML.

If a given action will be executed on a guest node, add the following as XML attributes (using meta-attribute naming):

  • The resource's PCMK_META_CONTAINER_ATTRIBUTE_TARGET meta-attribute (usually set only for bundles), as PCMK_META_CONTAINER_ATTRIBUTE_TARGET
  • The guest's physical host (current host for "down" actions, next host for "up" actions), as PCMK__META_PHYSICAL_HOST

If the guest node has no physical host, then don't add either attribute.

Parameters
[in,out]args_xmlXML to add attributes to
[in]actionAction to check

Definition at line 685 of file pcmk_sched_remote.c.

◆ pcmk__add_promotion_scores()

G_GNUC_INTERNAL void pcmk__add_promotion_scores ( pcmk_resource_t rsc)

Definition at line 754 of file pcmk_sched_promotable.c.

◆ pcmk__add_rsc_actions_to_graph()

G_GNUC_INTERNAL void pcmk__add_rsc_actions_to_graph ( pcmk_resource_t rsc)

Definition at line 977 of file pcmk_graph_producer.c.

◆ pcmk__add_this_with()

G_GNUC_INTERNAL void pcmk__add_this_with ( GList **  list,
const pcmk__colocation_t colocation,
const pcmk_resource_t rsc 
)

Definition at line 173 of file pcmk_sched_colocation.c.

◆ pcmk__add_this_with_list()

G_GNUC_INTERNAL void pcmk__add_this_with_list ( GList **  list,
GList *  addition,
const pcmk_resource_t rsc 
)

Definition at line 200 of file pcmk_sched_colocation.c.

◆ pcmk__add_with_this()

G_GNUC_INTERNAL void pcmk__add_with_this ( GList **  list,
const pcmk__colocation_t colocation,
const pcmk_resource_t rsc 
)

Definition at line 233 of file pcmk_sched_colocation.c.

◆ pcmk__add_with_this_list()

G_GNUC_INTERNAL void pcmk__add_with_this_list ( GList **  list,
GList *  addition,
const pcmk_resource_t rsc 
)

Definition at line 260 of file pcmk_sched_colocation.c.

◆ pcmk__any_node_available()

G_GNUC_INTERNAL bool pcmk__any_node_available ( GHashTable *  nodes)

Definition at line 337 of file pcmk_sched_nodes.c.

◆ pcmk__apply_coloc_to_priority()

G_GNUC_INTERNAL int pcmk__apply_coloc_to_priority ( pcmk_resource_t dependent,
const pcmk_resource_t primary,
const pcmk__colocation_t colocation 
)

Definition at line 1456 of file pcmk_sched_colocation.c.

◆ pcmk__apply_coloc_to_scores()

G_GNUC_INTERNAL void pcmk__apply_coloc_to_scores ( pcmk_resource_t dependent,
const pcmk_resource_t primary,
const pcmk__colocation_t colocation 
)

Definition at line 1350 of file pcmk_sched_colocation.c.

◆ pcmk__apply_location()

G_GNUC_INTERNAL void pcmk__apply_location ( pcmk_resource_t rsc,
pcmk__location_t constraint 
)

Definition at line 671 of file pcmk_sched_location.c.

◆ pcmk__apply_locations()

G_GNUC_INTERNAL void pcmk__apply_locations ( pcmk_scheduler_t scheduler)

Definition at line 650 of file pcmk_sched_location.c.

◆ pcmk__apply_node_health()

G_GNUC_INTERNAL void pcmk__apply_node_health ( pcmk_scheduler_t scheduler)

Definition at line 361 of file pcmk_sched_nodes.c.

◆ pcmk__apply_orderings()

G_GNUC_INTERNAL void pcmk__apply_orderings ( pcmk_scheduler_t sched)

Definition at line 1421 of file pcmk_sched_ordering.c.

◆ pcmk__assign_instances()

G_GNUC_INTERNAL void pcmk__assign_instances ( pcmk_resource_t collective,
GList *  instances,
int  max_total,
int  max_per_node 
)

Definition at line 781 of file pcmk_sched_instances.c.

◆ pcmk__assign_resource()

G_GNUC_INTERNAL bool pcmk__assign_resource ( pcmk_resource_t rsc,
pcmk_node_t node,
bool  force,
bool  stop_if_fail 
)

Definition at line 404 of file pcmk_sched_resource.c.

◆ pcmk__ban_insufficient_capacity()

G_GNUC_INTERNAL const pcmk_node_t* pcmk__ban_insufficient_capacity ( pcmk_resource_t rsc)

Definition at line 300 of file pcmk_sched_utilization.c.

◆ pcmk__block_colocation_dependents()

G_GNUC_INTERNAL void pcmk__block_colocation_dependents ( pcmk_action_t action)

Definition at line 1119 of file pcmk_sched_colocation.c.

◆ pcmk__bundle_action_flags()

G_GNUC_INTERNAL uint32_t pcmk__bundle_action_flags ( pcmk_action_t action,
const pcmk_node_t node 
)

Definition at line 690 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_add_actions_to_graph()

G_GNUC_INTERNAL void pcmk__bundle_add_actions_to_graph ( pcmk_resource_t rsc)

Definition at line 848 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_add_utilization()

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

Definition at line 1033 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_apply_coloc_score()

G_GNUC_INTERNAL int pcmk__bundle_apply_coloc_score ( pcmk_resource_t dependent,
const pcmk_resource_t primary,
const pcmk__colocation_t colocation,
bool  for_dependent 
)

Definition at line 525 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_apply_location()

G_GNUC_INTERNAL void pcmk__bundle_apply_location ( pcmk_resource_t rsc,
pcmk__location_t constraint 
)

Definition at line 754 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_assign()

G_GNUC_INTERNAL pcmk_node_t* pcmk__bundle_assign ( pcmk_resource_t rsc,
const pcmk_node_t prefer,
bool  stop_if_fail 
)

Definition at line 111 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_create_actions()

G_GNUC_INTERNAL void pcmk__bundle_create_actions ( pcmk_resource_t rsc)

Definition at line 188 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_create_probe()

G_GNUC_INTERNAL bool pcmk__bundle_create_probe ( pcmk_resource_t rsc,
pcmk_node_t node 
)

Definition at line 982 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_internal_constraints()

G_GNUC_INTERNAL void pcmk__bundle_internal_constraints ( pcmk_resource_t rsc)

Definition at line 297 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_shutdown_lock()

G_GNUC_INTERNAL void pcmk__bundle_shutdown_lock ( pcmk_resource_t rsc)

Definition at line 1058 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_with_colocations()

G_GNUC_INTERNAL void pcmk__bundle_with_colocations ( const pcmk_resource_t rsc,
const pcmk_resource_t orig_rsc,
GList **  list 
)

Definition at line 638 of file pcmk_sched_bundle.c.

◆ pcmk__check_action_config()

G_GNUC_INTERNAL bool pcmk__check_action_config ( pcmk_resource_t rsc,
pcmk_node_t node,
const xmlNode *  xml_op 
)

Definition at line 1608 of file pcmk_sched_actions.c.

◆ pcmk__clone_action_flags()

G_GNUC_INTERNAL uint32_t pcmk__clone_action_flags ( pcmk_action_t action,
const pcmk_node_t node 
)

Definition at line 398 of file pcmk_sched_clone.c.

◆ pcmk__clone_add_actions_to_graph()

G_GNUC_INTERNAL void pcmk__clone_add_actions_to_graph ( pcmk_resource_t rsc)

Definition at line 442 of file pcmk_sched_clone.c.

◆ pcmk__clone_add_graph_meta()

G_GNUC_INTERNAL void pcmk__clone_add_graph_meta ( const pcmk_resource_t rsc,
xmlNode *  xml 
)

Definition at line 616 of file pcmk_sched_clone.c.

◆ pcmk__clone_add_utilization()

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

Definition at line 665 of file pcmk_sched_clone.c.

◆ pcmk__clone_apply_coloc_score()

G_GNUC_INTERNAL int pcmk__clone_apply_coloc_score ( pcmk_resource_t dependent,
const pcmk_resource_t primary,
const pcmk__colocation_t colocation,
bool  for_dependent 
)

Definition at line 247 of file pcmk_sched_clone.c.

◆ pcmk__clone_apply_location()

G_GNUC_INTERNAL void pcmk__clone_apply_location ( pcmk_resource_t rsc,
pcmk__location_t constraint 
)

Definition at line 413 of file pcmk_sched_clone.c.

◆ pcmk__clone_assign()

G_GNUC_INTERNAL pcmk_node_t* pcmk__clone_assign ( pcmk_resource_t rsc,
const pcmk_node_t prefer,
bool  stop_if_fail 
)

Definition at line 37 of file pcmk_sched_clone.c.

◆ pcmk__clone_create_actions()

G_GNUC_INTERNAL void pcmk__clone_create_actions ( pcmk_resource_t rsc)

Definition at line 101 of file pcmk_sched_clone.c.

◆ pcmk__clone_create_probe()

G_GNUC_INTERNAL bool pcmk__clone_create_probe ( pcmk_resource_t rsc,
pcmk_node_t node 
)

Definition at line 566 of file pcmk_sched_clone.c.

◆ pcmk__clone_internal_constraints()

G_GNUC_INTERNAL void pcmk__clone_internal_constraints ( pcmk_resource_t rsc)

Definition at line 119 of file pcmk_sched_clone.c.

◆ pcmk__clone_shutdown_lock()

G_GNUC_INTERNAL void pcmk__clone_shutdown_lock ( pcmk_resource_t rsc)

Definition at line 712 of file pcmk_sched_clone.c.

◆ pcmk__clone_with_colocations()

G_GNUC_INTERNAL void pcmk__clone_with_colocations ( const pcmk_resource_t rsc,
const pcmk_resource_t orig_rsc,
GList **  list 
)

Definition at line 376 of file pcmk_sched_clone.c.

◆ pcmk__cmp_instance()

G_GNUC_INTERNAL gint pcmk__cmp_instance ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 347 of file pcmk_sched_instances.c.

◆ pcmk__cmp_instance_number()

G_GNUC_INTERNAL gint pcmk__cmp_instance_number ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 298 of file pcmk_sched_instances.c.

◆ pcmk__collective_action_flags()

G_GNUC_INTERNAL uint32_t pcmk__collective_action_flags ( pcmk_action_t action,
const GList *  instances,
const pcmk_node_t node 
)

Definition at line 1626 of file pcmk_sched_instances.c.

◆ pcmk__colocated_resources()

G_GNUC_INTERNAL GList* pcmk__colocated_resources ( const pcmk_resource_t rsc,
const pcmk_resource_t orig_rsc,
GList *  colocated_rscs 
)

Definition at line 242 of file pcmk_sched_resource.c.

◆ pcmk__colocation_affects()

G_GNUC_INTERNAL enum pcmk__coloc_affects pcmk__colocation_affects ( const pcmk_resource_t dependent,
const pcmk_resource_t primary,
const pcmk__colocation_t colocation,
bool  preview 
)

Definition at line 1246 of file pcmk_sched_colocation.c.

◆ pcmk__colocation_has_influence()

G_GNUC_INTERNAL bool pcmk__colocation_has_influence ( const pcmk__colocation_t colocation,
const pcmk_resource_t rsc 
)

Definition at line 1040 of file pcmk_sched_colocation.c.

◆ pcmk__colocation_intersect_nodes()

G_GNUC_INTERNAL void pcmk__colocation_intersect_nodes ( pcmk_resource_t dependent,
const pcmk_resource_t primary,
const pcmk__colocation_t colocation,
const GList *  primary_nodes,
bool  merge_scores 
)

Definition at line 1966 of file pcmk_sched_colocation.c.

◆ pcmk__compare_node_capacities()

G_GNUC_INTERNAL int pcmk__compare_node_capacities ( const pcmk_node_t node1,
const pcmk_node_t node2 
)

Definition at line 106 of file pcmk_sched_utilization.c.

◆ pcmk__connection_host_for_action()

G_GNUC_INTERNAL pcmk_node_t* pcmk__connection_host_for_action ( const pcmk_action_t action)

Definition at line 546 of file pcmk_sched_remote.c.

◆ pcmk__consume_node_capacity()

G_GNUC_INTERNAL void pcmk__consume_node_capacity ( GHashTable *  current_utilization,
const pcmk_resource_t rsc 
)

Definition at line 171 of file pcmk_sched_utilization.c.

◆ pcmk__copy_node_table()

G_GNUC_INTERNAL GHashTable* pcmk__copy_node_table ( GHashTable *  nodes)

Definition at line 64 of file pcmk_sched_nodes.c.

◆ pcmk__copy_node_tables()

G_GNUC_INTERNAL void pcmk__copy_node_tables ( const pcmk_resource_t rsc,
GHashTable **  copy 
)

Definition at line 114 of file pcmk_sched_nodes.c.

◆ pcmk__create_graph()

G_GNUC_INTERNAL void pcmk__create_graph ( pcmk_scheduler_t scheduler)

Definition at line 1002 of file pcmk_graph_producer.c.

◆ pcmk__create_instance_actions()

G_GNUC_INTERNAL void pcmk__create_instance_actions ( pcmk_resource_t rsc,
GList *  instances 
)

Definition at line 975 of file pcmk_sched_instances.c.

◆ pcmk__create_internal_constraints()

G_GNUC_INTERNAL void pcmk__create_internal_constraints ( pcmk_scheduler_t scheduler)

Definition at line 423 of file pcmk_sched_constraints.c.

◆ pcmk__create_migration_actions()

void pcmk__create_migration_actions ( pcmk_resource_t rsc,
const pcmk_node_t current 
)

Definition at line 46 of file pcmk_sched_migration.c.

◆ pcmk__create_promotable_actions()

G_GNUC_INTERNAL void pcmk__create_promotable_actions ( pcmk_resource_t clone)

Definition at line 1113 of file pcmk_sched_promotable.c.

◆ pcmk__create_recurring_actions()

G_GNUC_INTERNAL void pcmk__create_recurring_actions ( pcmk_resource_t rsc)

Definition at line 579 of file pcmk_sched_recurring.c.

◆ pcmk__create_utilization_constraints()

G_GNUC_INTERNAL void pcmk__create_utilization_constraints ( pcmk_resource_t rsc,
const GList *  allowed_nodes 
)

Definition at line 422 of file pcmk_sched_utilization.c.

◆ pcmk__deduplicate_action_inputs()

G_GNUC_INTERNAL void pcmk__deduplicate_action_inputs ( pcmk_action_t action)

Definition at line 1353 of file pcmk_sched_actions.c.

◆ pcmk__disable_invalid_orderings()

G_GNUC_INTERNAL void pcmk__disable_invalid_orderings ( pcmk_scheduler_t scheduler)

Definition at line 1136 of file pcmk_sched_ordering.c.

◆ pcmk__expand_tags_in_sets()

G_GNUC_INTERNAL xmlNode* pcmk__expand_tags_in_sets ( xmlNode *  xml_obj,
const pcmk_scheduler_t scheduler 
)

Definition at line 222 of file pcmk_sched_constraints.c.

◆ pcmk__fence_guest()

G_GNUC_INTERNAL void pcmk__fence_guest ( pcmk_node_t node)

Definition at line 349 of file pcmk_sched_fencing.c.

◆ pcmk__find_compatible_instance()

G_GNUC_INTERNAL pcmk_resource_t* pcmk__find_compatible_instance ( const pcmk_resource_t match_rsc,
const pcmk_resource_t rsc,
enum rsc_role_e  role,
bool  current 
)

Definition at line 1176 of file pcmk_sched_instances.c.

◆ pcmk__find_constraint_resource()

G_GNUC_INTERNAL pcmk_resource_t* pcmk__find_constraint_resource ( GList *  rsc_list,
const char *  id 
)

Definition at line 110 of file pcmk_sched_constraints.c.

◆ pcmk__graph_has_loop()

G_GNUC_INTERNAL bool pcmk__graph_has_loop ( const pcmk_action_t init_action,
const pcmk_action_t action,
pcmk__related_action_t input 
)

Definition at line 775 of file pcmk_graph_producer.c.

◆ pcmk__group_action_flags()

G_GNUC_INTERNAL uint32_t pcmk__group_action_flags ( pcmk_action_t action,
const pcmk_node_t node 
)

Definition at line 533 of file pcmk_sched_group.c.

◆ pcmk__group_add_colocated_node_scores()

G_GNUC_INTERNAL void pcmk__group_add_colocated_node_scores ( pcmk_resource_t source_rsc,
const pcmk_resource_t target_rsc,
const char *  log_id,
GHashTable **  nodes,
const pcmk__colocation_t colocation,
float  factor,
uint32_t  flags 
)

Definition at line 899 of file pcmk_sched_group.c.

◆ pcmk__group_add_utilization()

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

Definition at line 952 of file pcmk_sched_group.c.

◆ pcmk__group_apply_coloc_score()

G_GNUC_INTERNAL int pcmk__group_apply_coloc_score ( pcmk_resource_t dependent,
const pcmk_resource_t primary,
const pcmk__colocation_t colocation,
bool  for_dependent 
)

Definition at line 504 of file pcmk_sched_group.c.

◆ pcmk__group_apply_location()

G_GNUC_INTERNAL void pcmk__group_apply_location ( pcmk_resource_t rsc,
pcmk__location_t location 
)

Definition at line 656 of file pcmk_sched_group.c.

◆ pcmk__group_assign()

G_GNUC_INTERNAL pcmk_node_t* pcmk__group_assign ( pcmk_resource_t rsc,
const pcmk_node_t prefer,
bool  stop_if_fail 
)

Definition at line 40 of file pcmk_sched_group.c.

◆ pcmk__group_colocated_resources()

G_GNUC_INTERNAL GList* pcmk__group_colocated_resources ( const pcmk_resource_t rsc,
const pcmk_resource_t orig_rsc,
GList *  colocated_rscs 
)

Definition at line 705 of file pcmk_sched_group.c.

◆ pcmk__group_create_actions()

G_GNUC_INTERNAL void pcmk__group_create_actions ( pcmk_resource_t rsc)

Definition at line 118 of file pcmk_sched_group.c.

◆ pcmk__group_internal_constraints()

G_GNUC_INTERNAL void pcmk__group_internal_constraints ( pcmk_resource_t rsc)

Definition at line 310 of file pcmk_sched_group.c.

◆ pcmk__group_shutdown_lock()

G_GNUC_INTERNAL void pcmk__group_shutdown_lock ( pcmk_resource_t rsc)

Definition at line 994 of file pcmk_sched_group.c.

◆ pcmk__group_update_ordered_actions()

G_GNUC_INTERNAL uint32_t pcmk__group_update_ordered_actions ( pcmk_action_t first,
pcmk_action_t then,
const pcmk_node_t node,
uint32_t  flags,
uint32_t  filter,
uint32_t  type,
pcmk_scheduler_t scheduler 
)

Definition at line 616 of file pcmk_sched_group.c.

◆ pcmk__group_with_colocations()

G_GNUC_INTERNAL void pcmk__group_with_colocations ( const pcmk_resource_t rsc,
const pcmk_resource_t orig_rsc,
GList **  list 
)

Definition at line 793 of file pcmk_sched_group.c.

◆ pcmk__handle_rsc_config_changes()

G_GNUC_INTERNAL void pcmk__handle_rsc_config_changes ( pcmk_scheduler_t scheduler)

Definition at line 1902 of file pcmk_sched_actions.c.

◆ pcmk__init_scheduler()

G_GNUC_INTERNAL int pcmk__init_scheduler ( pcmk__output_t out,
xmlNodePtr  input,
const crm_time_t date,
pcmk_scheduler_t **  scheduler 
)

Definition at line 847 of file pcmk_scheduler.c.

◆ pcmk__inject_action_result()

G_GNUC_INTERNAL xmlNode* pcmk__inject_action_result ( xmlNode *  cib_resource,
lrmd_event_data_t op,
int  target_rc 
)

Definition at line 225 of file pcmk_injections.c.

◆ pcmk__inject_failcount()

G_GNUC_INTERNAL void pcmk__inject_failcount ( pcmk__output_t out,
cib_t cib_conn,
xmlNode *  cib_node,
const char *  resource,
const char *  task,
guint  interval_ms,
int  rc 
)

Definition at line 94 of file pcmk_injections.c.

◆ pcmk__inject_node()

G_GNUC_INTERNAL xmlNode* pcmk__inject_node ( cib_t cib_conn,
const char *  node,
const char *  uuid 
)

Definition at line 246 of file pcmk_injections.c.

◆ pcmk__inject_node_state_change()

G_GNUC_INTERNAL xmlNode* pcmk__inject_node_state_change ( cib_t cib_conn,
const char *  node,
bool  up 
)

Definition at line 343 of file pcmk_injections.c.

◆ pcmk__inject_resource_history()

G_GNUC_INTERNAL xmlNode* pcmk__inject_resource_history ( pcmk__output_t out,
xmlNode *  cib_node,
const char *  resource,
const char *  lrm_name,
const char *  rclass,
const char *  rtype,
const char *  rprovider 
)

Definition at line 404 of file pcmk_injections.c.

◆ pcmk__inject_scheduler_input()

void pcmk__inject_scheduler_input ( pcmk_scheduler_t scheduler,
cib_t cib,
const pcmk_injections_t injections 
)

Definition at line 633 of file pcmk_injections.c.

◆ pcmk__instance_matches()

G_GNUC_INTERNAL bool pcmk__instance_matches ( const pcmk_resource_t instance,
const pcmk_node_t node,
enum rsc_role_e  role,
bool  current 
)

Definition at line 1076 of file pcmk_sched_instances.c.

◆ pcmk__instance_update_ordered_actions()

G_GNUC_INTERNAL uint32_t pcmk__instance_update_ordered_actions ( pcmk_action_t first,
pcmk_action_t then,
const pcmk_node_t node,
uint32_t  flags,
uint32_t  filter,
uint32_t  type,
pcmk_scheduler_t scheduler 
)

Definition at line 1576 of file pcmk_sched_instances.c.

◆ pcmk__is_failed_remote_node()

G_GNUC_INTERNAL bool pcmk__is_failed_remote_node ( const pcmk_node_t node)

Definition at line 506 of file pcmk_sched_remote.c.

◆ pcmk__log_action()

G_GNUC_INTERNAL void pcmk__log_action ( const char *  pre_text,
const pcmk_action_t action,
bool  details 
)

Definition at line 965 of file pcmk_sched_actions.c.

◆ pcmk__new_cancel_action()

G_GNUC_INTERNAL pcmk_action_t* pcmk__new_cancel_action ( pcmk_resource_t rsc,
const char *  name,
guint  interval_ms,
const pcmk_node_t node 
)

Definition at line 646 of file pcmk_sched_recurring.c.

◆ pcmk__new_colocation()

G_GNUC_INTERNAL void pcmk__new_colocation ( const char *  id,
const char *  node_attr,
int  score,
pcmk_resource_t dependent,
pcmk_resource_t primary,
const char *  dependent_role,
const char *  primary_role,
uint32_t  flags 
)

Definition at line 348 of file pcmk_sched_colocation.c.

◆ pcmk__new_location()

G_GNUC_INTERNAL pcmk__location_t* pcmk__new_location ( const char *  id,
pcmk_resource_t rsc,
int  node_score,
const char *  discover_mode,
pcmk_node_t foo_node 
)

Definition at line 588 of file pcmk_sched_location.c.

◆ pcmk__new_ordering()

G_GNUC_INTERNAL void pcmk__new_ordering ( pcmk_resource_t first_rsc,
char *  first_task,
pcmk_action_t first_action,
pcmk_resource_t then_rsc,
char *  then_task,
pcmk_action_t then_action,
uint32_t  flags,
pcmk_scheduler_t sched 
)

Definition at line 532 of file pcmk_sched_ordering.c.

◆ pcmk__new_shutdown_action()

G_GNUC_INTERNAL pcmk_action_t* pcmk__new_shutdown_action ( pcmk_node_t node)

Definition at line 1056 of file pcmk_sched_actions.c.

◆ pcmk__node_available()

G_GNUC_INTERNAL bool pcmk__node_available ( const pcmk_node_t node,
bool  consider_score,
bool  consider_guest 
)

Definition at line 30 of file pcmk_sched_nodes.c.

◆ pcmk__node_unfenced()

G_GNUC_INTERNAL bool pcmk__node_unfenced ( const pcmk_node_t node)

Definition at line 449 of file pcmk_sched_fencing.c.

◆ pcmk__noop_add_graph_meta()

G_GNUC_INTERNAL void pcmk__noop_add_graph_meta ( const pcmk_resource_t rsc,
xmlNode *  xml 
)

Definition at line 306 of file pcmk_sched_resource.c.

◆ pcmk__order_after_each()

G_GNUC_INTERNAL void pcmk__order_after_each ( pcmk_action_t after,
GList *  list 
)

Definition at line 1480 of file pcmk_sched_ordering.c.

◆ pcmk__order_migration_equivalents()

void pcmk__order_migration_equivalents ( pcmk__action_relation_t order)

Definition at line 264 of file pcmk_sched_migration.c.

◆ pcmk__order_probes()

G_GNUC_INTERNAL void pcmk__order_probes ( pcmk_scheduler_t scheduler)

Definition at line 839 of file pcmk_sched_probes.c.

◆ pcmk__order_promotable_instances()

G_GNUC_INTERNAL void pcmk__order_promotable_instances ( pcmk_resource_t clone)

Definition at line 1135 of file pcmk_sched_promotable.c.

◆ pcmk__order_remote_connection_actions()

G_GNUC_INTERNAL void pcmk__order_remote_connection_actions ( pcmk_scheduler_t scheduler)

Definition at line 399 of file pcmk_sched_remote.c.

◆ pcmk__order_restart_vs_unfence()

G_GNUC_INTERNAL void pcmk__order_restart_vs_unfence ( gpointer  data,
gpointer  user_data 
)

Definition at line 465 of file pcmk_sched_fencing.c.

◆ pcmk__order_stops_before_shutdown()

G_GNUC_INTERNAL void pcmk__order_stops_before_shutdown ( pcmk_node_t node,
pcmk_action_t shutdown_op 
)

Definition at line 1161 of file pcmk_sched_ordering.c.

◆ pcmk__order_vs_fence()

G_GNUC_INTERNAL void pcmk__order_vs_fence ( pcmk_action_t stonith_op,
pcmk_scheduler_t scheduler 
)

Definition at line 288 of file pcmk_sched_fencing.c.

◆ pcmk__order_vs_unfence()

G_GNUC_INTERNAL void pcmk__order_vs_unfence ( const pcmk_resource_t rsc,
pcmk_node_t node,
pcmk_action_t action,
enum pcmk__action_relation_flags  order 
)

Definition at line 306 of file pcmk_sched_fencing.c.

◆ pcmk__output_actions()

G_GNUC_INTERNAL void pcmk__output_actions ( pcmk_scheduler_t scheduler)

Definition at line 1397 of file pcmk_sched_actions.c.

◆ pcmk__output_bundle_actions()

G_GNUC_INTERNAL void pcmk__output_bundle_actions ( pcmk_resource_t rsc)

Definition at line 1025 of file pcmk_sched_bundle.c.

◆ pcmk__output_resource_actions()

G_GNUC_INTERNAL void pcmk__output_resource_actions ( pcmk_resource_t rsc)

Definition at line 317 of file pcmk_sched_resource.c.

◆ pcmk__primitive_action_flags()

G_GNUC_INTERNAL uint32_t pcmk__primitive_action_flags ( pcmk_action_t action,
const pcmk_node_t node 
)

Definition at line 1204 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_add_graph_meta()

G_GNUC_INTERNAL void pcmk__primitive_add_graph_meta ( const pcmk_resource_t rsc,
xmlNode *  xml 
)

Definition at line 1502 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_add_utilization()

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

Definition at line 1552 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_apply_coloc_score()

G_GNUC_INTERNAL int 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 1098 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_assign()

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

Definition at line 393 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_create_actions()

G_GNUC_INTERNAL void pcmk__primitive_create_actions ( pcmk_resource_t rsc)

Definition at line 689 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_internal_constraints()

G_GNUC_INTERNAL void pcmk__primitive_internal_constraints ( pcmk_resource_t rsc)

Definition at line 911 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_shutdown_lock()

G_GNUC_INTERNAL void pcmk__primitive_shutdown_lock ( pcmk_resource_t rsc)

Definition at line 1620 of file pcmk_sched_primitive.c.

◆ pcmk__primitive_with_colocations()

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

Definition at line 1169 of file pcmk_sched_primitive.c.

◆ pcmk__probe_resource_list()

G_GNUC_INTERNAL bool pcmk__probe_resource_list ( GList *  rscs,
pcmk_node_t node 
)

Definition at line 53 of file pcmk_sched_probes.c.

◆ pcmk__probe_rsc_on_node()

G_GNUC_INTERNAL bool pcmk__probe_rsc_on_node ( pcmk_resource_t rsc,
pcmk_node_t node 
)

Definition at line 157 of file pcmk_sched_probes.c.

◆ pcmk__promotable_restart_ordering()

G_GNUC_INTERNAL void pcmk__promotable_restart_ordering ( pcmk_resource_t rsc)

Definition at line 1502 of file pcmk_sched_ordering.c.

◆ pcmk__release_node_capacity()

G_GNUC_INTERNAL void pcmk__release_node_capacity ( GHashTable *  current_utilization,
const pcmk_resource_t rsc 
)

Definition at line 190 of file pcmk_sched_utilization.c.

◆ pcmk__require_promotion_tickets()

G_GNUC_INTERNAL void pcmk__require_promotion_tickets ( pcmk_resource_t rsc)

Definition at line 522 of file pcmk_sched_tickets.c.

◆ pcmk__reschedule_recurring()

G_GNUC_INTERNAL void pcmk__reschedule_recurring ( pcmk_resource_t rsc,
const char *  task,
guint  interval_ms,
pcmk_node_t node 
)

Definition at line 717 of file pcmk_sched_recurring.c.

◆ pcmk__restore_node_tables()

G_GNUC_INTERNAL void pcmk__restore_node_tables ( pcmk_resource_t rsc,
GHashTable *  backup 
)

Definition at line 145 of file pcmk_sched_nodes.c.

◆ pcmk__rsc_agent_changed()

G_GNUC_INTERNAL bool pcmk__rsc_agent_changed ( pcmk_resource_t rsc,
pcmk_node_t node,
const xmlNode *  rsc_entry,
bool  active_on_node 
)

Definition at line 111 of file pcmk_sched_resource.c.

◆ pcmk__rsc_can_migrate()

bool pcmk__rsc_can_migrate ( const pcmk_resource_t rsc,
const pcmk_node_t current 
)

Definition at line 184 of file pcmk_sched_migration.c.

◆ pcmk__rsc_corresponds_to_guest()

G_GNUC_INTERNAL bool pcmk__rsc_corresponds_to_guest ( const pcmk_resource_t rsc,
const pcmk_node_t node 
)

Definition at line 523 of file pcmk_sched_remote.c.

◆ pcmk__rscs_matching_id()

G_GNUC_INTERNAL GList* pcmk__rscs_matching_id ( const char *  id,
const pcmk_scheduler_t scheduler 
)

Definition at line 183 of file pcmk_sched_resource.c.

◆ pcmk__schedule_cancel()

G_GNUC_INTERNAL void pcmk__schedule_cancel ( pcmk_resource_t rsc,
const char *  call_id,
const char *  task,
guint  interval_ms,
const pcmk_node_t node,
const char *  reason 
)

Definition at line 686 of file pcmk_sched_recurring.c.

◆ pcmk__schedule_cleanup()

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

Definition at line 1459 of file pcmk_sched_primitive.c.

◆ pcmk__schedule_probes()

G_GNUC_INTERNAL void pcmk__schedule_probes ( pcmk_scheduler_t scheduler)

Definition at line 858 of file pcmk_sched_probes.c.

◆ pcmk__set_assignment_methods()

G_GNUC_INTERNAL void pcmk__set_assignment_methods ( pcmk_scheduler_t scheduler)

Definition at line 218 of file pcmk_sched_resource.c.

◆ pcmk__set_instance_roles()

G_GNUC_INTERNAL void pcmk__set_instance_roles ( pcmk_resource_t rsc)

Definition at line 1043 of file pcmk_sched_promotable.c.

◆ pcmk__setup_output_cib_sched()

G_GNUC_INTERNAL int pcmk__setup_output_cib_sched ( pcmk__output_t **  out,
cib_t **  cib,
pcmk_scheduler_t **  scheduler,
xmlNode **  xml 
)

Definition at line 41 of file pcmk_setup.c.

◆ pcmk__show_node_capacities()

G_GNUC_INTERNAL void pcmk__show_node_capacities ( const char *  desc,
pcmk_scheduler_t scheduler 
)

Definition at line 460 of file pcmk_sched_utilization.c.

◆ pcmk__sort_nodes()

G_GNUC_INTERNAL GList* pcmk__sort_nodes ( GList *  nodes,
pcmk_node_t active_node 
)

Definition at line 322 of file pcmk_sched_nodes.c.

◆ pcmk__sort_resources()

G_GNUC_INTERNAL void pcmk__sort_resources ( pcmk_scheduler_t scheduler)

Definition at line 766 of file pcmk_sched_resource.c.

◆ pcmk__substitute_remote_addr()

G_GNUC_INTERNAL void pcmk__substitute_remote_addr ( pcmk_resource_t rsc,
GHashTable *  params 
)

Definition at line 655 of file pcmk_sched_remote.c.

◆ pcmk__tag_to_set()

G_GNUC_INTERNAL bool pcmk__tag_to_set ( xmlNode *  xml_obj,
xmlNode **  rsc_set,
const char *  attr,
bool  convert_rsc,
const pcmk_scheduler_t scheduler 
)

Definition at line 342 of file pcmk_sched_constraints.c.

◆ pcmk__this_with_colocations()

G_GNUC_INTERNAL GList* pcmk__this_with_colocations ( const pcmk_resource_t rsc)

Definition at line 2034 of file pcmk_sched_colocation.c.

◆ pcmk__threshold_reached()

G_GNUC_INTERNAL bool pcmk__threshold_reached ( pcmk_resource_t rsc,
const pcmk_node_t node,
pcmk_resource_t **  failed 
)

Definition at line 571 of file pcmk_sched_resource.c.

◆ pcmk__top_allowed_node()

G_GNUC_INTERNAL pcmk_node_t* pcmk__top_allowed_node ( const pcmk_resource_t rsc,
const pcmk_node_t node 
)

Definition at line 425 of file pcmk_sched_nodes.c.

◆ pcmk__unassign_resource()

G_GNUC_INTERNAL void pcmk__unassign_resource ( pcmk_resource_t rsc)

Definition at line 525 of file pcmk_sched_resource.c.

◆ pcmk__unpack_colocation()

G_GNUC_INTERNAL void pcmk__unpack_colocation ( xmlNode *  xml_obj,
pcmk_scheduler_t scheduler 
)

Definition at line 959 of file pcmk_sched_colocation.c.

◆ pcmk__unpack_location()

G_GNUC_INTERNAL void pcmk__unpack_location ( xmlNode *  xml_obj,
pcmk_scheduler_t scheduler 
)

Definition at line 531 of file pcmk_sched_location.c.

◆ pcmk__unpack_ordering()

G_GNUC_INTERNAL void pcmk__unpack_ordering ( xmlNode *  xml_obj,
pcmk_scheduler_t scheduler 
)

Definition at line 1031 of file pcmk_sched_ordering.c.

◆ pcmk__unpack_rsc_ticket()

G_GNUC_INTERNAL void pcmk__unpack_rsc_ticket ( xmlNode *  xml_obj,
pcmk_scheduler_t scheduler 
)

Definition at line 433 of file pcmk_sched_tickets.c.

◆ pcmk__update_action_for_orderings()

G_GNUC_INTERNAL void pcmk__update_action_for_orderings ( pcmk_action_t action,
pcmk_scheduler_t scheduler 
)

Definition at line 507 of file pcmk_sched_actions.c.

◆ pcmk__update_dependent_with_promotable()

G_GNUC_INTERNAL void pcmk__update_dependent_with_promotable ( const pcmk_resource_t primary,
pcmk_resource_t dependent,
const pcmk__colocation_t colocation 
)

Update dependent for a colocation with a promotable clone.

Parameters
[in]primaryPrimary resource in the colocation
[in,out]dependentDependent resource in the colocation
[in]colocationColocation constraint to apply

Definition at line 1212 of file pcmk_sched_promotable.c.

◆ pcmk__update_ordered_actions()

G_GNUC_INTERNAL uint32_t pcmk__update_ordered_actions ( pcmk_action_t first,
pcmk_action_t then,
const pcmk_node_t node,
uint32_t  flags,
uint32_t  filter,
uint32_t  type,
pcmk_scheduler_t scheduler 
)

Definition at line 841 of file pcmk_sched_actions.c.

◆ pcmk__update_promotable_dependent_priority()

G_GNUC_INTERNAL int pcmk__update_promotable_dependent_priority ( const pcmk_resource_t primary,
pcmk_resource_t dependent,
const pcmk__colocation_t colocation 
)

Definition at line 1268 of file pcmk_sched_promotable.c.

◆ pcmk__valid_resource_or_tag()

G_GNUC_INTERNAL bool pcmk__valid_resource_or_tag ( const pcmk_scheduler_t scheduler,
const char *  id,
pcmk_resource_t **  rsc,
pcmk_tag_t **  tag 
)

Definition at line 188 of file pcmk_sched_constraints.c.

◆ pcmk__with_bundle_colocations()

G_GNUC_INTERNAL void pcmk__with_bundle_colocations ( const pcmk_resource_t rsc,
const pcmk_resource_t orig_rsc,
GList **  list 
)

Definition at line 594 of file pcmk_sched_bundle.c.

◆ pcmk__with_clone_colocations()

G_GNUC_INTERNAL void pcmk__with_clone_colocations ( const pcmk_resource_t rsc,
const pcmk_resource_t orig_rsc,
GList **  list 
)

Definition at line 362 of file pcmk_sched_clone.c.

◆ pcmk__with_group_colocations()

G_GNUC_INTERNAL void pcmk__with_group_colocations ( const pcmk_resource_t rsc,
const pcmk_resource_t orig_rsc,
GList **  list 
)

Definition at line 745 of file pcmk_sched_group.c.

◆ pcmk__with_primitive_colocations()

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

Definition at line 1140 of file pcmk_sched_primitive.c.

◆ pcmk__with_this_colocations()

G_GNUC_INTERNAL GList* pcmk__with_this_colocations ( const pcmk_resource_t rsc)

Definition at line 2015 of file pcmk_sched_colocation.c.