synapse 376 daemons/controld/controld_fencing.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 378 daemons/controld/controld_fencing.c if (pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 382 daemons/controld/controld_fencing.c for (lpc2 = synapse->actions; lpc2 != NULL; lpc2 = lpc2->next) { synapse 43 daemons/controld/controld_te_events.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) gIter->data; synapse 45 daemons/controld/controld_te_events.c if (pcmk_any_flags_set(synapse->flags, pcmk__synapse_confirmed|pcmk__synapse_failed)) { synapse 50 daemons/controld/controld_te_events.c gIter2 = synapse->actions; synapse 76 daemons/controld/controld_te_events.c pcmk__set_synapse_flags(synapse, pcmk__synapse_failed); synapse 81 daemons/controld/controld_te_events.c if (pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 237 daemons/controld/controld_te_events.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) item->data; synapse 239 daemons/controld/controld_te_events.c for (GList *item2 = synapse->actions; item2; item2 = item2->next) { synapse 258 daemons/controld/controld_te_events.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) gIter->data; synapse 260 daemons/controld/controld_te_events.c gIter2 = synapse->actions; synapse 490 daemons/controld/controld_te_events.c abort_transition(action->synapse->priority + 1, synapse 45 include/pcmki/pcmki_transition.h #define pcmk__set_synapse_flags(synapse, flags_to_set) do { \ synapse 46 include/pcmki/pcmki_transition.h (synapse)->flags = pcmk__set_flags_as(__func__, __LINE__, \ synapse 49 include/pcmki/pcmki_transition.h (synapse)->flags, (flags_to_set), #flags_to_set); \ synapse 52 include/pcmki/pcmki_transition.h #define pcmk__clear_synapse_flags(synapse, flags_to_clear) do { \ synapse 53 include/pcmki/pcmki_transition.h (synapse)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ synapse 56 include/pcmki/pcmki_transition.h (synapse)->flags, (flags_to_clear), #flags_to_clear); \ synapse 74 include/pcmki/pcmki_transition.h pcmk__graph_synapse_t *synapse; synapse 45 lib/pacemaker/pcmk_graph_consumer.c update_synapse_ready(pcmk__graph_synapse_t *synapse, int action_id) synapse 47 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 50 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_ready); // Presume ready until proven otherwise synapse 51 lib/pacemaker/pcmk_graph_consumer.c for (GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 56 lib/pacemaker/pcmk_graph_consumer.c action_id, synapse->id); synapse 60 lib/pacemaker/pcmk_graph_consumer.c pcmk__clear_synapse_flags(synapse, pcmk__synapse_ready); synapse 62 lib/pacemaker/pcmk_graph_consumer.c synapse->id, action_id); synapse 65 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 66 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Synapse %d is now ready to execute", synapse->id); synapse 78 lib/pacemaker/pcmk_graph_consumer.c update_synapse_confirmed(pcmk__graph_synapse_t *synapse, int action_id) synapse 82 lib/pacemaker/pcmk_graph_consumer.c for (GList *lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 87 lib/pacemaker/pcmk_graph_consumer.c action_id, synapse->id); synapse 93 lib/pacemaker/pcmk_graph_consumer.c synapse->id, action_id); synapse 97 lib/pacemaker/pcmk_graph_consumer.c if (all_confirmed && !(pcmk_is_set(synapse->flags, pcmk__synapse_confirmed))) { synapse 98 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Confirmed synapse %d", synapse->id); synapse 99 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_confirmed); synapse 114 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 116 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_any_flags_set(synapse->flags, pcmk__synapse_confirmed|pcmk__synapse_failed)) { synapse 119 lib/pacemaker/pcmk_graph_consumer.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 120 lib/pacemaker/pcmk_graph_consumer.c update_synapse_confirmed(synapse, action->id); synapse 122 lib/pacemaker/pcmk_graph_consumer.c } else if (!(pcmk_is_set(action->flags, pcmk__graph_action_failed)) || (synapse->priority == INFINITY)) { synapse 123 lib/pacemaker/pcmk_graph_consumer.c update_synapse_ready(synapse, action->id); synapse 168 lib/pacemaker/pcmk_graph_consumer.c should_fire_synapse(pcmk__graph_t *graph, pcmk__graph_synapse_t *synapse) synapse 172 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_ready); synapse 173 lib/pacemaker/pcmk_graph_consumer.c for (lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 178 lib/pacemaker/pcmk_graph_consumer.c prereq->id, synapse->id); synapse 179 lib/pacemaker/pcmk_graph_consumer.c pcmk__clear_synapse_flags(synapse, pcmk__synapse_ready); synapse 184 lib/pacemaker/pcmk_graph_consumer.c prereq->id, synapse->id); synapse 185 lib/pacemaker/pcmk_graph_consumer.c pcmk__clear_synapse_flags(synapse, pcmk__synapse_ready); synapse 189 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 190 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Synapse %d is ready to execute", synapse->id); synapse 195 lib/pacemaker/pcmk_graph_consumer.c for (lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 201 lib/pacemaker/pcmk_graph_consumer.c } else if (synapse->priority < graph->abort_priority) { synapse 204 lib/pacemaker/pcmk_graph_consumer.c synapse->id, synapse->priority, graph->abort_priority); synapse 209 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Deferring synapse %d: not allowed", synapse->id); synapse 272 lib/pacemaker/pcmk_graph_consumer.c fire_synapse(pcmk__graph_t *graph, pcmk__graph_synapse_t *synapse) synapse 274 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_executed); synapse 275 lib/pacemaker/pcmk_graph_consumer.c for (GList *lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 281 lib/pacemaker/pcmk_graph_consumer.c crm_element_name(action->xml), action->id, synapse->id, synapse 283 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_confirmed); synapse 370 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 372 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 375 lib/pacemaker/pcmk_graph_consumer.c } else if (!(pcmk_is_set(synapse->flags, pcmk__synapse_failed)) && pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 384 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 393 lib/pacemaker/pcmk_graph_consumer.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_failed)) { synapse 397 lib/pacemaker/pcmk_graph_consumer.c } else if (pcmk_any_flags_set(synapse->flags, pcmk__synapse_confirmed|pcmk__synapse_executed)) { synapse 400 lib/pacemaker/pcmk_graph_consumer.c } else if (should_fire_synapse(graph, synapse)) { synapse 402 lib/pacemaker/pcmk_graph_consumer.c if (fire_synapse(graph, synapse) != pcmk_rc_ok) { synapse 403 lib/pacemaker/pcmk_graph_consumer.c crm_err("Synapse %d failed to fire", synapse->id); synapse 410 lib/pacemaker/pcmk_graph_consumer.c if (!(pcmk_is_set(synapse->flags, pcmk__synapse_confirmed))) { synapse 415 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Synapse %d cannot fire", synapse->id); synapse 508 lib/pacemaker/pcmk_graph_consumer.c action->synapse = parent; synapse 777 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = user_data; synapse 779 lib/pacemaker/pcmk_graph_consumer.c g_list_free_full(synapse->actions, free_graph_action); synapse 780 lib/pacemaker/pcmk_graph_consumer.c g_list_free_full(synapse->inputs, free_graph_action); synapse 781 lib/pacemaker/pcmk_graph_consumer.c free(synapse); synapse 72 lib/pacemaker/pcmk_graph_logging.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) sIter->data; synapse 74 lib/pacemaker/pcmk_graph_logging.c for (GList *aIter = synapse->actions; aIter != NULL; synapse 88 lib/pacemaker/pcmk_graph_logging.c synapse_state_str(pcmk__graph_synapse_t *synapse) synapse 90 lib/pacemaker/pcmk_graph_logging.c if (pcmk_is_set(synapse->flags, pcmk__synapse_failed)) { synapse 93 lib/pacemaker/pcmk_graph_logging.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 96 lib/pacemaker/pcmk_graph_logging.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 99 lib/pacemaker/pcmk_graph_logging.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 120 lib/pacemaker/pcmk_graph_logging.c const pcmk__graph_synapse_t *synapse) synapse 124 lib/pacemaker/pcmk_graph_logging.c for (const GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 144 lib/pacemaker/pcmk_graph_logging.c pcmk__graph_synapse_t *synapse) synapse 146 lib/pacemaker/pcmk_graph_logging.c for (GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 161 lib/pacemaker/pcmk_graph_logging.c log_synapse_action(unsigned int log_level, pcmk__graph_synapse_t *synapse, synapse 167 lib/pacemaker/pcmk_graph_logging.c synapse_state_str(synapse), synapse 173 lib/pacemaker/pcmk_graph_logging.c synapse->priority, pending_inputs); synapse 179 lib/pacemaker/pcmk_graph_logging.c pcmk__graph_synapse_t *synapse) synapse 184 lib/pacemaker/pcmk_graph_logging.c if (!pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 185 lib/pacemaker/pcmk_graph_logging.c g_pending = synapse_pending_inputs(graph, synapse); synapse 192 lib/pacemaker/pcmk_graph_logging.c for (GList *lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 193 lib/pacemaker/pcmk_graph_logging.c log_synapse_action(log_level, synapse, synapse 201 lib/pacemaker/pcmk_graph_logging.c if (!pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 202 lib/pacemaker/pcmk_graph_logging.c log_unresolved_inputs(log_level, graph, synapse); synapse 209 lib/pacemaker/pcmk_graph_logging.c log_synapse(log_level, NULL, action->synapse);