node 128 daemons/attrd/attrd_alerts.c attrd_send_attribute_alert(const char *node, int nodeid, node 135 daemons/attrd/attrd_alerts.c node, nodeid, attr, value); node 163 daemons/attrd/attrd_cib.c const char *node = pcmk__s((const char *) user_data, "a node"); node 166 daemons/attrd/attrd_cib.c crm_info("Cleared transient node attributes for %s from CIB", node); node 169 daemons/attrd/attrd_cib.c node, pcmk_strerror(rc)); node 184 daemons/attrd/attrd_cib.c attrd_cib_erase_transient_attrs(const char *node) node 189 daemons/attrd/attrd_cib.c CRM_CHECK(node != NULL, return); node 191 daemons/attrd/attrd_cib.c xpath = crm_strdup_printf(XPATH_TRANSIENT, node); node 194 daemons/attrd/attrd_cib.c node, xpath); node 200 daemons/attrd/attrd_cib.c pcmk__str_copy(node), node 29 daemons/attrd/attrd_corosync.c xmlNode *node = pcmk__xe_create(NULL, __func__); node 31 daemons/attrd/attrd_corosync.c crm_xml_add(node, PCMK__XA_T, PCMK__VALUE_ATTRD); node 32 daemons/attrd/attrd_corosync.c crm_xml_add(node, PCMK__XA_SRC, pcmk__cluster_local_node_name()); node 33 daemons/attrd/attrd_corosync.c crm_xml_add(node, PCMK_XA_TASK, PCMK__ATTRD_CMD_CONFIRM); node 34 daemons/attrd/attrd_corosync.c crm_xml_add_int(node, PCMK__XA_CALL_ID, callid); node 36 daemons/attrd/attrd_corosync.c return node; node 155 daemons/attrd/attrd_ipc.c crm_node_t *node = NULL; node 158 daemons/attrd/attrd_ipc.c node = pcmk__search_node_caches(nodeid, NULL, node 160 daemons/attrd/attrd_ipc.c if (node && node->uname) { node 162 daemons/attrd/attrd_ipc.c host = node->uname; node 340 daemons/attrd/attrd_messages.c attrd_send_message(crm_node_t *node, xmlNode *data, bool confirm) node 356 daemons/attrd/attrd_messages.c return pcmk__cluster_send_message(node, crm_msg_attrd, data); node 415 daemons/attrd/attrd_sync.c for (GList *node = keys; node != NULL; node = node->next) { node 416 daemons/attrd/attrd_sync.c int callid = *(int *) node->data; node 546 daemons/attrd/attrd_sync.c GList *node = NULL; node 557 daemons/attrd/attrd_sync.c node = g_list_find_custom(action->respondents, host, (GCompareFunc) strcasecmp); node 559 daemons/attrd/attrd_sync.c if (node == NULL) { node 563 daemons/attrd/attrd_sync.c action->respondents = g_list_remove(action->respondents, node->data); node 69 daemons/attrd/pacemaker-attrd.h void attrd_cib_erase_transient_attrs(const char *node); node 107 daemons/attrd/pacemaker-attrd.h int attrd_send_attribute_alert(const char *node, int nodeid, node 201 daemons/attrd/pacemaker-attrd.h gboolean attrd_send_message(crm_node_t *node, xmlNode *data, bool confirm); node 1025 daemons/based/based_callbacks.c const crm_node_t *node = node 1031 daemons/based/based_callbacks.c return pcmk__cluster_send_message(node, crm_msg_cib, msg); node 359 daemons/based/pacemaker-based.c cib_peer_update_callback(enum crm_status_type type, crm_node_t * node, const void *data) node 364 daemons/based/pacemaker-based.c && !pcmk_is_set(node->processes, crm_get_cluster_proc())) { node 368 daemons/based/pacemaker-based.c if ((node->processes ^ old) & crm_proc_cpg) { node 370 daemons/based/pacemaker-based.c node->uname); node 34 daemons/controld/controld_alerts.c crmd_alert_node_event(crm_node_t *node) node 48 daemons/controld/controld_alerts.c node->uname, node->id, node->state); node 73 daemons/controld/controld_alerts.c crmd_alert_resource_op(const char *node, lrmd_event_data_t * op) node 86 daemons/controld/controld_alerts.c lrmd_send_resource_alert((lrmd_t *) lrm_state->conn, crmd_alert_list, node, node 18 daemons/controld/controld_alerts.h void crmd_alert_node_event(crm_node_t *node); node 20 daemons/controld/controld_alerts.h void crmd_alert_resource_op(const char *node, lrmd_event_data_t *op); node 80 daemons/controld/controld_callbacks.c node_alive(const crm_node_t *node) node 82 daemons/controld/controld_callbacks.c if (pcmk_is_set(node->flags, crm_remote_node)) { node 84 daemons/controld/controld_callbacks.c return pcmk__str_eq(node->state, CRM_NODE_MEMBER, pcmk__str_casei) ? 1: -1; node 86 daemons/controld/controld_callbacks.c } else if (pcmk__cluster_is_node_active(node)) { node 90 daemons/controld/controld_callbacks.c } else if (!pcmk_is_set(node->processes, crm_get_cluster_proc()) node 91 daemons/controld/controld_callbacks.c && !pcmk__str_eq(node->state, CRM_NODE_MEMBER, pcmk__str_casei)) { node 103 daemons/controld/controld_callbacks.c peer_update_callback(enum crm_status_type type, crm_node_t * node, const void *data) node 107 daemons/controld/controld_callbacks.c bool is_remote = pcmk_is_set(node->flags, crm_remote_node); node 109 daemons/controld/controld_callbacks.c controld_node_pending_timer(node); node 120 daemons/controld/controld_callbacks.c && pcmk_is_set(node->processes, crm_get_cluster_proc()) node 129 daemons/controld/controld_callbacks.c crm_debug("Sending hello to node %u so that it learns our node name", node->id); node 130 daemons/controld/controld_callbacks.c pcmk__cluster_send_message(node, crm_msg_crmd, query); node 135 daemons/controld/controld_callbacks.c if (node->uname == NULL) { node 144 daemons/controld/controld_callbacks.c node->uname, state_text(node->state)); node 151 daemons/controld/controld_callbacks.c CRM_CHECK(!pcmk__str_eq(data, node->state, pcmk__str_casei), node 156 daemons/controld/controld_callbacks.c node->uname, state_text(node->state), state_text(data)); node 158 daemons/controld/controld_callbacks.c if (pcmk__str_eq(CRM_NODE_MEMBER, node->state, pcmk__str_casei)) { node 161 daemons/controld/controld_callbacks.c remove_stonith_cleanup(node->uname); node 164 daemons/controld/controld_callbacks.c controld_remove_failed_sync_node(node->uname); node 165 daemons/controld/controld_callbacks.c controld_remove_voter(node->uname); node 168 daemons/controld/controld_callbacks.c crmd_alert_node_event(node); node 174 daemons/controld/controld_callbacks.c appeared = pcmk_is_set(node->processes, crm_get_cluster_proc()); node 185 daemons/controld/controld_callbacks.c node->uname, (appeared? "now" : "no longer"), node 186 daemons/controld/controld_callbacks.c pcmk__s(dc_s, "<none>"), old, node->processes); node 189 daemons/controld/controld_callbacks.c if (!pcmk_is_set((node->processes ^ old), crm_get_cluster_proc())) { node 194 daemons/controld/controld_callbacks.c crm_get_cluster_proc(), old, node->processes); node 200 daemons/controld/controld_callbacks.c node->peer_lost = time(NULL); node 201 daemons/controld/controld_callbacks.c controld_remove_failed_sync_node(node->uname); node 202 daemons/controld/controld_callbacks.c controld_remove_voter(node->uname); node 216 daemons/controld/controld_callbacks.c && pcmk__str_eq(node->uname, controld_globals.our_nodename, node 222 daemons/controld/controld_callbacks.c } else if (pcmk__str_eq(node->uname, controld_globals.dc_name, node 224 daemons/controld/controld_callbacks.c && !pcmk__cluster_is_node_active(node)) { node 239 daemons/controld/controld_callbacks.c controld_delete_node_state(node->uname, node 254 daemons/controld/controld_callbacks.c controld_delete_node_state(node->uname, node 265 daemons/controld/controld_callbacks.c int alive = node_alive(node); node 266 daemons/controld/controld_callbacks.c pcmk__graph_action_t *down = match_down_event(node->uuid); node 282 daemons/controld/controld_callbacks.c (pcmk_is_set(down->flags, pcmk__graph_action_confirmed)? "after" : "before"), node->uname); node 290 daemons/controld/controld_callbacks.c crmd_peer_down(node, FALSE); node 295 daemons/controld/controld_callbacks.c task, node->uname, down->id); node 298 daemons/controld/controld_callbacks.c task, node->uname, down->id); node 305 daemons/controld/controld_callbacks.c node->uname, node 315 daemons/controld/controld_callbacks.c "current DC", node->uname); node 318 daemons/controld/controld_callbacks.c node->uname); node 321 daemons/controld/controld_callbacks.c crm_update_peer_join(__func__, node, crm_join_none); node 327 daemons/controld/controld_callbacks.c node->uuid); node 331 daemons/controld/controld_callbacks.c node->uname); node 348 daemons/controld/controld_callbacks.c && (node->when_member > 1)) { node 354 daemons/controld/controld_callbacks.c node->when_member = 1; node 356 daemons/controld/controld_callbacks.c controld_node_pending_timer(node); node 360 daemons/controld/controld_callbacks.c update = create_node_state_update(node, flags, NULL, __func__); node 362 daemons/controld/controld_callbacks.c crm_debug("Node state update not yet possible for %s", node->uname); node 19 daemons/controld/controld_callbacks.h extern void peer_update_callback(enum crm_status_type type, crm_node_t * node, const void *data); node 409 daemons/controld/controld_cib.c controld_delete_resource_history(const char *rsc_id, const char *node, node 417 daemons/controld/controld_cib.c CRM_CHECK((rsc_id != NULL) && (node != NULL), return EINVAL); node 419 daemons/controld/controld_cib.c desc = crm_strdup_printf("resource history for %s on %s", rsc_id, node); node 427 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_RESOURCE_HISTORY, node, rsc_id); node 436 daemons/controld/controld_cib.c CRM_XS " rc=%d", rsc_id, node, node 1015 daemons/controld/controld_cib.c controld_cib_delete_last_failure(const char *rsc_id, const char *node, node 1020 daemons/controld/controld_cib.c CRM_CHECK((rsc_id != NULL) && (node != NULL), return); node 1025 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_HISTORY_ID, node, rsc_id, node 1030 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_HISTORY_ORIG, node, rsc_id, node 1051 daemons/controld/controld_cib.c controld_delete_action_history_by_key(const char *rsc_id, const char *node, node 1056 daemons/controld/controld_cib.c CRM_CHECK((rsc_id != NULL) && (node != NULL) && (key != NULL), return); node 1059 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_HISTORY_CALL, node, rsc_id, key, node 1062 daemons/controld/controld_cib.c xpath = crm_strdup_printf(XPATH_HISTORY_ID, node, rsc_id, key); node 65 daemons/controld/controld_cib.h int controld_delete_resource_history(const char *rsc_id, const char *node, node 98 daemons/controld/controld_cib.h void controld_cib_delete_last_failure(const char *rsc_id, const char *node, node 101 daemons/controld/controld_cib.h void controld_delete_action_history_by_key(const char *rsc_id, const char *node, node 272 daemons/controld/controld_election.c crm_node_t *node = node 276 daemons/controld/controld_election.c pcmk__update_peer_expected(__func__, node, CRMD_JOINSTATE_DOWN); node 277 daemons/controld/controld_election.c update = create_node_state_update(node, node_update_expected, NULL, node 226 daemons/controld/controld_join_client.c update_conn_host_cache(xmlNode *node, void *userdata) node 228 daemons/controld/controld_join_client.c const char *remote = crm_element_value(node, PCMK_XA_ID); node 229 daemons/controld/controld_join_client.c const char *conn_host = crm_element_value(node, PCMK__XA_CONNECTION_HOST); node 230 daemons/controld/controld_join_client.c const char *state = crm_element_value(node, PCMK__XA_NODE_STATE); node 119 daemons/controld/controld_join_dc.c crm_update_peer_join(const char *source, crm_node_t * node, enum crm_join_phase phase) node 123 daemons/controld/controld_join_dc.c CRM_CHECK(node != NULL, return); node 126 daemons/controld/controld_join_dc.c if (pcmk_is_set(node->flags, crm_remote_node)) { node 130 daemons/controld/controld_join_dc.c last = node->join; node 135 daemons/controld/controld_join_dc.c node->uname, current_join_id, crm_join_phase_str(last), node 136 daemons/controld/controld_join_dc.c node->id, source); node 139 daemons/controld/controld_join_dc.c node->join = phase; node 142 daemons/controld/controld_join_dc.c node->uname, current_join_id, crm_join_phase_str(phase), node 143 daemons/controld/controld_join_dc.c crm_join_phase_str(last), node->id, source); node 148 daemons/controld/controld_join_dc.c current_join_id, node->uname, crm_join_phase_str(last), node 149 daemons/controld/controld_join_dc.c crm_join_phase_str(phase), node->id, source); node 696 daemons/controld/controld_join_dc.c const char *node = user_data; node 703 daemons/controld/controld_join_dc.c current_join_id, call_id, node, pcmk_strerror(rc)); node 710 daemons/controld/controld_join_dc.c current_join_id, call_id, node); node 925 daemons/controld/controld_join_dc.c crm_node_t *node = NULL; node 929 daemons/controld/controld_join_dc.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 932 daemons/controld/controld_join_dc.c if (!node->conn_host) { node 938 daemons/controld/controld_join_dc.c PCMK_XA_ID, node->uname, node 939 daemons/controld/controld_join_dc.c PCMK__XA_NODE_STATE, node->state, node 940 daemons/controld/controld_join_dc.c PCMK__XA_CONNECTION_HOST, node->conn_host, node 29 daemons/controld/controld_membership.c crm_node_t *node = value; node 31 daemons/controld/controld_membership.c if (!pcmk__cluster_is_node_active(node)) { node 32 daemons/controld/controld_membership.c crm_update_peer_join(__func__, node, crm_join_none); node 34 daemons/controld/controld_membership.c if(node && node->uname) { node 35 daemons/controld/controld_membership.c if (pcmk__str_eq(controld_globals.our_nodename, node->uname, node 41 daemons/controld/controld_membership.c && pcmk__str_eq(node->uname, controld_globals.dc_name, node 43 daemons/controld/controld_membership.c crm_warn("Our DC node (%s) left the cluster", node->uname); node 52 daemons/controld/controld_membership.c if ((node != NULL) && (node->uuid != NULL)) { node 54 daemons/controld/controld_membership.c node->uuid); node 123 daemons/controld/controld_membership.c create_node_state_update(crm_node_t *node, int flags, xmlNode *parent, node 129 daemons/controld/controld_membership.c if (!node->state) { node 130 daemons/controld/controld_membership.c crm_info("Node update for %s cancelled: no state, not seen yet", node->uname); node 136 daemons/controld/controld_membership.c if (pcmk_is_set(node->flags, crm_remote_node)) { node 141 daemons/controld/controld_membership.c pcmk__cluster_node_uuid(node)) == NULL) { node 142 daemons/controld/controld_membership.c crm_info("Node update for %s cancelled: no ID", node->uname); node 147 daemons/controld/controld_membership.c crm_xml_add(node_state, PCMK_XA_UNAME, node->uname); node 149 daemons/controld/controld_membership.c if ((flags & node_update_cluster) && node->state) { node 152 daemons/controld/controld_membership.c crm_xml_add_ll(node_state, PCMK__XA_IN_CCM, node->when_member); node 156 daemons/controld/controld_membership.c pcmk__str_eq(node->state, CRM_NODE_MEMBER, node 161 daemons/controld/controld_membership.c if (!pcmk_is_set(node->flags, crm_remote_node)) { node 165 daemons/controld/controld_membership.c crm_xml_add_ll(node_state, PCMK_XA_CRMD, node->when_online); node 170 daemons/controld/controld_membership.c if (pcmk_is_set(node->processes, crm_get_cluster_proc())) { node 178 daemons/controld/controld_membership.c if (node->join <= crm_join_none) { node 187 daemons/controld/controld_membership.c crm_xml_add(node_state, PCMK_XA_EXPECTED, node->expected); node 236 daemons/controld/controld_membership.c crm_node_t *node = NULL; node 247 daemons/controld/controld_membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 248 daemons/controld/controld_membership.c if (node->uuid node 249 daemons/controld/controld_membership.c && pcmk__str_eq(node->uuid, node_uuid, pcmk__str_casei) node 250 daemons/controld/controld_membership.c && node->uname node 251 daemons/controld/controld_membership.c && pcmk__str_eq(node->uname, node_uname, pcmk__str_casei)) { node 321 daemons/controld/controld_membership.c crm_node_t *node = NULL; node 325 daemons/controld/controld_membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 328 daemons/controld/controld_membership.c if ((node->uuid != NULL) && (node->uname != NULL)) { node 329 daemons/controld/controld_membership.c crm_trace("Creating node entry for %s/%s", node->uname, node->uuid); node 338 daemons/controld/controld_membership.c crm_xml_add(new_node, PCMK_XA_ID, node->uuid); node 339 daemons/controld/controld_membership.c crm_xml_add(new_node, PCMK_XA_UNAME, node->uname); node 345 daemons/controld/controld_membership.c "[@" PCMK_XA_UNAME "='", node->uname, "']" node 346 daemons/controld/controld_membership.c "[@" PCMK_XA_ID "!='", node->uuid, "']", NULL); node 352 daemons/controld/controld_membership.c fsa_register_cib_callback(call_id, pcmk__str_copy(node->uuid), node 372 daemons/controld/controld_membership.c crm_node_t *node = NULL; node 378 daemons/controld/controld_membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 379 daemons/controld/controld_membership.c create_node_state_update(node, flags, node_list, source); node 384 daemons/controld/controld_membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 385 daemons/controld/controld_membership.c create_node_state_update(node, flags, node_list, source); node 726 daemons/controld/controld_messages.c const char *node = NULL; node 735 daemons/controld/controld_messages.c node = crm_element_value(msg_data, PCMK__META_ON_NODE); node 738 daemons/controld/controld_messages.c "(clearing CIB resource history only)", rsc_id, node, node 740 daemons/controld/controld_messages.c rc = controld_delete_resource_history(rsc_id, node, user_name, node 743 daemons/controld/controld_messages.c rc = controld_delete_resource_history(rsc_id, node, user_name, node 877 daemons/controld/controld_messages.c crm_node_t *node = NULL; node 884 daemons/controld/controld_messages.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) & node)) { node 887 daemons/controld/controld_messages.c crm_xml_add_ll(xml, PCMK_XA_ID, (long long) node->id); // uint32_t node 888 daemons/controld/controld_messages.c crm_xml_add(xml, PCMK_XA_UNAME, node->uname); node 889 daemons/controld/controld_messages.c crm_xml_add(xml, PCMK__XA_IN_CCM, node->state); node 915 daemons/controld/controld_messages.c crm_node_t *node = NULL; node 946 daemons/controld/controld_messages.c node = pcmk__search_node_caches(node_id, value, pcmk__node_search_any); node 947 daemons/controld/controld_messages.c if (node) { node 948 daemons/controld/controld_messages.c crm_xml_add(reply_data, PCMK_XA_ID, node->uuid); node 949 daemons/controld/controld_messages.c crm_xml_add(reply_data, PCMK_XA_UNAME, node->uname); node 950 daemons/controld/controld_messages.c crm_xml_add(reply_data, PCMK_XA_CRMD, node->state); node 952 daemons/controld/controld_messages.c pcmk_is_set(node->flags, crm_remote_node)); node 1071 daemons/controld/controld_messages.c crm_node_t *node = node 1074 daemons/controld/controld_messages.c pcmk__update_peer_expected(__func__, node, CRMD_JOINSTATE_DOWN); node 196 daemons/controld/controld_remote_ra.c should_purge_attributes(crm_node_t *node) node 202 daemons/controld/controld_remote_ra.c if (!node->conn_host) { node 209 daemons/controld/controld_remote_ra.c conn_node = pcmk__get_node(0, node->conn_host, NULL, node 219 daemons/controld/controld_remote_ra.c connection_rsc = lrm_state_find(node->uname); node 259 daemons/controld/controld_remote_ra.c purge_remote_node_attrs(int call_opt, crm_node_t *node) node 261 daemons/controld/controld_remote_ra.c bool purge = should_purge_attributes(node); node 266 daemons/controld/controld_remote_ra.c update_attrd_remote_node_removed(node->uname, NULL); node 269 daemons/controld/controld_remote_ra.c controld_delete_node_state(node->uname, section, call_opt); node 283 daemons/controld/controld_remote_ra.c crm_node_t *node; node 300 daemons/controld/controld_remote_ra.c node = pcmk__cluster_lookup_remote_node(node_name); node 301 daemons/controld/controld_remote_ra.c CRM_CHECK(node != NULL, return); node 303 daemons/controld/controld_remote_ra.c purge_remote_node_attrs(call_opt, node); node 304 daemons/controld/controld_remote_ra.c pcmk__update_peer_state(__func__, node, CRM_NODE_MEMBER, 0); node 309 daemons/controld/controld_remote_ra.c connection_rsc = lrm_state_find(node->uname); node 316 daemons/controld/controld_remote_ra.c set_join_state(start_state, node->uname, node->uuid, true); node 329 daemons/controld/controld_remote_ra.c state = create_node_state_update(node, node_update_cluster, update, node 366 daemons/controld/controld_remote_ra.c crm_node_t *node; node 383 daemons/controld/controld_remote_ra.c node = pcmk__cluster_lookup_remote_node(node_name); node 384 daemons/controld/controld_remote_ra.c CRM_CHECK(node != NULL, return); node 385 daemons/controld/controld_remote_ra.c pcmk__update_peer_state(__func__, node, CRM_NODE_LOST, 0); node 392 daemons/controld/controld_remote_ra.c create_node_state_update(node, node_update_cluster, update, __func__); node 423 daemons/controld/controld_remote_ra.c crm_node_t *node = pcmk__cluster_lookup_remote_node(cmd->rsc_id); node 425 daemons/controld/controld_remote_ra.c CRM_CHECK(node != NULL, return); node 426 daemons/controld/controld_remote_ra.c pcmk__update_peer_state(__func__, node, CRM_NODE_MEMBER, 0); node 1396 daemons/controld/controld_remote_ra.c crm_node_t *node; node 1399 daemons/controld/controld_remote_ra.c node = pcmk__cluster_lookup_remote_node(lrm_state->node_name); node 1400 daemons/controld/controld_remote_ra.c CRM_CHECK(node != NULL, return); node 1402 daemons/controld/controld_remote_ra.c state = create_node_state_update(node, node_update_none, update, node 1433 daemons/controld/controld_remote_ra.c xmlNode *node; node 1436 daemons/controld/controld_remote_ra.c for (node = pcmk__xe_first_child(getXpathResult(search, 0), node 1438 daemons/controld/controld_remote_ra.c node != NULL; node = pcmk__xe_next_same(node)) { node 1440 daemons/controld/controld_remote_ra.c lrm_state_t *lrm_state = lrm_state_find(pcmk__xe_id(node)); node 1450 daemons/controld/controld_remote_ra.c in_maint_s = crm_element_value(node, node 51 daemons/controld/controld_te_actions.c crm_node_t *node = NULL; node 54 daemons/controld/controld_te_actions.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 57 daemons/controld/controld_te_actions.c if (pcmk__str_eq(controld_globals.our_nodename, node->uname, node 62 daemons/controld/controld_te_actions.c cmd = create_request(task, pseudo->xml, node->uname, node 64 daemons/controld/controld_te_actions.c pcmk__cluster_send_message(node, crm_msg_crmd, cmd); node 115 daemons/controld/controld_te_actions.c const crm_node_t *node = NULL; node 175 daemons/controld/controld_te_actions.c node = pcmk__get_node(0, router_node, NULL, node 177 daemons/controld/controld_te_actions.c rc = pcmk__cluster_send_message(node, crm_msg_crmd, cmd); node 432 daemons/controld/controld_te_actions.c const crm_node_t *node = node 436 daemons/controld/controld_te_actions.c rc = pcmk__cluster_send_message(node, crm_msg_lrmd, cmd); node 152 daemons/controld/controld_te_callbacks.c const char *node = get_node_id(rsc_op); node 154 daemons/controld/controld_te_callbacks.c process_graph_event(rsc_op, node); node 184 daemons/controld/controld_te_callbacks.c const char *node = get_node_id(match); node 185 daemons/controld/controld_te_callbacks.c pcmk__graph_action_t *cancelled = get_cancel_action(op_id, node); node 189 daemons/controld/controld_te_callbacks.c (const char *) rsc_op_xpath->str, op_id, node); node 198 daemons/controld/controld_te_callbacks.c op_id, node, cancelled->id); node 213 daemons/controld/controld_te_callbacks.c process_lrm_resource_diff(xmlNode *lrm_resource, const char *node) node 217 daemons/controld/controld_te_callbacks.c process_graph_event(rsc_op, node); node 227 daemons/controld/controld_te_callbacks.c process_resource_updates(const char *node, xmlNode *xml, xmlNode *change, node 267 daemons/controld/controld_te_callbacks.c process_lrm_resource_diff(rsc, node); node 643 daemons/controld/controld_te_callbacks.c const char *node = get_node_id(rsc_op); node 645 daemons/controld/controld_te_callbacks.c process_graph_event(rsc_op, node); node 123 daemons/controld/controld_te_events.c const crm_node_t *node = node 127 daemons/controld/controld_te_events.c if (node) { node 128 daemons/controld/controld_te_events.c router_uuid = node->uuid; node 254 daemons/controld/controld_te_events.c fail_pair->node = on_uname; node 267 daemons/controld/controld_te_events.c last_pair->node = on_uname; node 308 daemons/controld/controld_te_events.c get_cancel_action(const char *id, const char *node) node 330 daemons/controld/controld_te_events.c crm_trace("Wrong key %s for %s on %s", task, id, node); node 335 daemons/controld/controld_te_events.c if (node && !pcmk__str_eq(target, node, pcmk__str_casei)) { node 336 daemons/controld/controld_te_events.c crm_trace("Wrong node %s for %s on %s", target, id, node); node 340 daemons/controld/controld_te_events.c crm_trace("Found %s on %s", id, node); node 208 daemons/controld/controld_te_utils.c init_node_pending_timer(const crm_node_t *node, guint timeout) node 213 daemons/controld/controld_te_utils.c if (node->uuid == NULL) { node 222 daemons/controld/controld_te_utils.c } else if (g_hash_table_lookup(node_pending_timers, node->uuid) != NULL) { node 228 daemons/controld/controld_te_utils.c node->uname ? node->uname : "node", node->uuid, node 231 daemons/controld/controld_te_utils.c key = pcmk__str_copy(node->uuid); node 258 daemons/controld/controld_te_utils.c controld_node_pending_timer(const crm_node_t *node) node 266 daemons/controld/controld_te_utils.c if (pcmk_is_set(node->flags, crm_remote_node) node 267 daemons/controld/controld_te_utils.c || (node->when_member <= 1) || (node->when_online > 0) node 269 daemons/controld/controld_te_utils.c remove_node_pending_timer(node->uuid); node 275 daemons/controld/controld_te_utils.c remaining_timeout = node->when_member - time(NULL) node 282 daemons/controld/controld_te_utils.c remove_node_pending_timer(node->uuid); node 286 daemons/controld/controld_te_utils.c init_node_pending_timer(node, remaining_timeout); node 39 daemons/controld/controld_throttle.c char *node; node 390 daemons/controld/controld_throttle.c free(r->node); node 523 daemons/controld/controld_throttle.c throttle_get_job_limit(const char *node) node 528 daemons/controld/controld_throttle.c r = g_hash_table_lookup(throttle_records, node); node 531 daemons/controld/controld_throttle.c r->node = pcmk__str_copy(node); node 534 daemons/controld/controld_throttle.c crm_trace("Defaulting to local values for unknown node %s", node); node 536 daemons/controld/controld_throttle.c g_hash_table_insert(throttle_records, r->node, r); node 554 daemons/controld/controld_throttle.c crm_err("Unknown throttle mode %.4x on %s", r->mode, node); node 575 daemons/controld/controld_throttle.c r->node = pcmk__str_copy(from); node 576 daemons/controld/controld_throttle.c g_hash_table_insert(throttle_records, r->node, r); node 15 daemons/controld/controld_throttle.h int throttle_get_job_limit(const char *node); node 18 daemons/controld/controld_transition.h pcmk__graph_action_t *get_cancel_action(const char *id, const char *node); node 51 daemons/controld/controld_transition.h void controld_node_pending_timer(const crm_node_t *node); node 829 daemons/controld/controld_utils.c xmlNode *node = lrm_rsc_op; node 831 daemons/controld/controld_utils.c while ((node != NULL) && !pcmk__xe_is(node, PCMK__XE_NODE_STATE)) { node 832 daemons/controld/controld_utils.c node = node->parent; node 835 daemons/controld/controld_utils.c CRM_CHECK(node != NULL, return NULL); node 836 daemons/controld/controld_utils.c return pcmk__xe_id(node); node 39 daemons/controld/controld_utils.h void crm_update_peer_join(const char *source, crm_node_t * node, enum crm_join_phase phase); node 40 daemons/controld/controld_utils.h xmlNode *create_node_state_update(crm_node_t *node, int flags, node 42 daemons/fenced/fenced_cib.c node_has_attr(const char *node, const char *name, const char *value) node 47 daemons/fenced/fenced_cib.c CRM_CHECK((local_cib != NULL) && (node != NULL) && (name != NULL) node 58 daemons/fenced/fenced_cib.c "[@" PCMK_XA_UNAME "='", node, "']" node 85 daemons/fenced/fenced_cib.c topology_remove_helper(const char *node, int level) node 93 daemons/fenced/fenced_cib.c crm_xml_add(data, PCMK_XA_TARGET, node); node 653 daemons/fenced/fenced_commands.c crm_node_t *node = pcmk__get_node(0, cmd->target, NULL, node 656 daemons/fenced/fenced_commands.c cmd->target_nodeid = node->id; node 2425 daemons/fenced/fenced_commands.c const crm_node_t *node = node 2429 daemons/fenced/fenced_commands.c pcmk__cluster_send_message(node, crm_msg_stonith_ng, reply); node 2948 daemons/fenced/fenced_commands.c crm_node_t *node = NULL; node 2951 daemons/fenced/fenced_commands.c node = pcmk__search_node_caches(nodeid, NULL, node 2954 daemons/fenced/fenced_commands.c if (node != NULL) { node 2955 daemons/fenced/fenced_commands.c host = node->uname; node 3396 daemons/fenced/fenced_commands.c crm_node_t *node = pcmk__get_node(0, alternate_host, NULL, node 3416 daemons/fenced/fenced_commands.c pcmk__cluster_send_message(node, crm_msg_stonith_ng, request->xml); node 486 daemons/fenced/fenced_history.c crm_node_t *node; node 489 daemons/fenced/fenced_history.c node = pcmk__search_node_caches(nodeid, NULL, node 492 daemons/fenced/fenced_history.c if (node) { node 493 daemons/fenced/fenced_history.c target = node->uname; node 858 daemons/fenced/fenced_remote.c topology_matches(const stonith_topology_t *tp, const char *node) node 862 daemons/fenced/fenced_remote.c CRM_CHECK(node && tp && tp->target, return FALSE); node 871 daemons/fenced/fenced_remote.c if (node_has_attr(node, tp->target_attribute, tp->target_value)) { node 872 daemons/fenced/fenced_remote.c crm_notice("Matched %s with %s by attribute", node, tp->target); node 884 daemons/fenced/fenced_remote.c int status = regexec(&r_patt, node, 0, NULL, 0); node 888 daemons/fenced/fenced_remote.c crm_notice("Matched %s with %s by name", node, tp->target); node 895 daemons/fenced/fenced_remote.c crm_trace("Testing %s against %s", node, tp->target); node 896 daemons/fenced/fenced_remote.c return pcmk__str_eq(tp->target, node, pcmk__str_casei); node 901 daemons/fenced/fenced_remote.c crm_trace("No match for %s with %s", node, tp->target); node 1011 daemons/fenced/fenced_remote.c crm_node_t *node = NULL; node 1042 daemons/fenced/fenced_remote.c node = pcmk__get_node(0, other->originator, NULL, node 1045 daemons/fenced/fenced_remote.c if (!fencing_peer_active(node)) { node 1245 daemons/fenced/fenced_remote.c crm_node_t *node; node 1248 daemons/fenced/fenced_remote.c node = pcmk__search_node_caches(nodeid, NULL, node 1255 daemons/fenced/fenced_remote.c if (node && node->uname) { node 1256 daemons/fenced/fenced_remote.c pcmk__str_update(&(op->target), node->uname); node 87 daemons/fenced/fenced_scheduler.c pcmk_node_t *node = NULL; node 90 daemons/fenced/fenced_scheduler.c while (g_hash_table_iter_next(&iter, NULL, (void **) &node)) { node 91 daemons/fenced/fenced_scheduler.c if (pcmk__str_eq(node->details->uname, stonith_our_uname, node 93 daemons/fenced/fenced_scheduler.c return node; node 115 daemons/fenced/fenced_scheduler.c pcmk_node_t *node = NULL; node 150 daemons/fenced/fenced_scheduler.c node = local_node_allowed_for(rsc); node 151 daemons/fenced/fenced_scheduler.c if (node == NULL) { node 156 daemons/fenced/fenced_scheduler.c if (node->weight < 0) { node 159 daemons/fenced/fenced_scheduler.c rsc->id, pcmk_readable_score(node->weight)); node 183 daemons/fenced/fenced_scheduler.c get_meta_attributes(rsc->meta, rsc, node, scheduler); node 186 daemons/fenced/fenced_scheduler.c g_hash_table_iter_init(&hash_iter, pe_rsc_params(rsc, node, scheduler)); node 416 daemons/fenced/pacemaker-fenced.c node_does_watchdog_fencing(const char *node) node 419 daemons/fenced/pacemaker-fenced.c pcmk__str_in_list(node, stonith_watchdog_targets, pcmk__str_casei)); node 478 daemons/fenced/pacemaker-fenced.c st_peer_update_callback(enum crm_status_type type, crm_node_t * node, const void *data) node 481 daemons/fenced/pacemaker-fenced.c && !pcmk_is_set(node->flags, crm_remote_node)) { node 491 daemons/fenced/pacemaker-fenced.c crm_debug("Broadcasting our uname because of node %u", node->id); node 285 daemons/fenced/pacemaker-fenced.h gboolean node_has_attr(const char *node, const char *name, const char *value); node 287 daemons/fenced/pacemaker-fenced.h gboolean node_does_watchdog_fencing(const char *node); node 67 include/crm/cluster/compat.h void set_uuid(xmlNode *xml, const char *attr, crm_node_t *node); node 91 include/crm/cluster/compat.h gboolean crm_is_corosync_peer_active(const crm_node_t * node); node 95 include/crm/cluster/compat.h gboolean local, const crm_node_t *node, node 124 include/crm/cluster/compat.h gboolean crm_is_peer_active(const crm_node_t *node); node 164 include/crm/cluster/compat.h gboolean send_cluster_message(const crm_node_t *node, node 169 include/crm/cluster/compat.h const char *crm_peer_uuid(crm_node_t *node); node 148 include/crm/cluster/internal.h const char *pcmk__cluster_node_uuid(crm_node_t *node); node 155 include/crm/cluster/internal.h crm_node_t *pcmk__update_peer_state(const char *source, crm_node_t *node, node 158 include/crm/cluster/internal.h void pcmk__update_peer_expected(const char *source, crm_node_t *node, node 167 include/crm/cluster/internal.h bool pcmk__cluster_send_message(const crm_node_t *node, node 181 include/crm/cluster/internal.h bool pcmk__cluster_is_node_active(const crm_node_t *node); node 341 include/crm/common/actions.h pcmk_node_t *node; // Node to execute action on, if any node 100 include/crm/common/actions_internal.h const char *node); node 50 include/crm/common/attrs_internal.h const char *pcmk__node_attr(const pcmk_node_t *node, const char *name, node 27 include/crm/common/bundles_internal.h pcmk_node_t *node; //!< Node created for this instance node 79 include/crm/common/bundles_internal.h pcmk__is_bundle_node(const pcmk_node_t *node) node 81 include/crm/common/bundles_internal.h return pcmk__is_guest_or_bundle_node(node) node 82 include/crm/common/bundles_internal.h && pcmk__is_bundled(node->details->remote_rsc); node 75 include/crm/common/internal.h void pcmk__xe_add_node(xmlNode *xml, const char *node, int nodeid); node 93 include/crm/common/internal.h pcmk__xe_set_bool_attr(xmlNodePtr node, const char *name, bool value); node 106 include/crm/common/internal.h pcmk__xe_attr_is_true(const xmlNode *node, const char *name); node 124 include/crm/common/internal.h pcmk__xe_get_bool_attr(const xmlNode *node, const char *name, bool *value); node 28 include/crm/common/ipc_attrd_internal.h const char *node; node 69 include/crm/common/ipc_attrd_internal.h int pcmk__attrd_api_clear_failures(pcmk_ipc_api_t *api, const char *node, node 87 include/crm/common/ipc_attrd_internal.h int pcmk__attrd_api_delete(pcmk_ipc_api_t *api, const char *node, const char *name, node 106 include/crm/common/ipc_attrd_internal.h int pcmk__attrd_api_purge(pcmk_ipc_api_t *api, const char *node, bool reap); node 123 include/crm/common/ipc_attrd_internal.h int pcmk__attrd_api_query(pcmk_ipc_api_t *api, const char *node, const char *name, node 141 include/crm/common/ipc_attrd_internal.h int pcmk__attrd_api_refresh(pcmk_ipc_api_t *api, const char *node); node 164 include/crm/common/ipc_attrd_internal.h int pcmk__attrd_api_update(pcmk_ipc_api_t *api, const char *node, const char *name, node 175 include/crm/common/nodes.h bool pcmk_node_is_online(const pcmk_node_t *node); node 176 include/crm/common/nodes.h bool pcmk_node_is_pending(const pcmk_node_t *node); node 177 include/crm/common/nodes.h bool pcmk_node_is_clean(const pcmk_node_t *node); node 178 include/crm/common/nodes.h bool pcmk_node_is_shutting_down(const pcmk_node_t *node); node 179 include/crm/common/nodes.h bool pcmk_node_is_in_maintenance(const pcmk_node_t *node); node 181 include/crm/common/nodes.h bool pcmk_foreach_active_resource(pcmk_node_t *node, node 185 include/crm/common/nodes.h const char *pcmk_cib_node_shutdown(xmlNode *cib, const char *node); node 198 include/crm/common/nodes.h pcmk__node_name(const pcmk_node_t *node) node 200 include/crm/common/nodes.h if (node == NULL) { node 203 include/crm/common/nodes.h } else if (node->details->uname != NULL) { node 204 include/crm/common/nodes.h return node->details->uname; node 206 include/crm/common/nodes.h } else if (node->details->id != NULL) { node 207 include/crm/common/nodes.h return node->details->id; node 48 include/crm/common/nvpair.h const char *crm_xml_add(xmlNode *node, const char *name, const char *value); node 49 include/crm/common/nvpair.h const char *crm_xml_add_int(xmlNode *node, const char *name, int value); node 50 include/crm/common/nvpair.h const char *crm_xml_add_ll(xmlNode *node, const char *name, long long value); node 51 include/crm/common/nvpair.h const char *crm_xml_add_ms(xmlNode *node, const char *name, guint ms); node 773 include/crm/common/output_internal.h pcmk__output_xml_add_node_copy(pcmk__output_t *out, xmlNodePtr node); node 42 include/crm/common/remote_internal.h pcmk__is_pacemaker_remote_node(const pcmk_node_t *node) node 44 include/crm/common/remote_internal.h return (node != NULL) && (node->details->type == pcmk_node_variant_remote); node 56 include/crm/common/remote_internal.h pcmk__is_remote_node(const pcmk_node_t *node) node 58 include/crm/common/remote_internal.h return pcmk__is_pacemaker_remote_node(node) node 59 include/crm/common/remote_internal.h && ((node->details->remote_rsc == NULL) node 60 include/crm/common/remote_internal.h || (node->details->remote_rsc->container == NULL)); node 72 include/crm/common/remote_internal.h pcmk__is_guest_or_bundle_node(const pcmk_node_t *node) node 74 include/crm/common/remote_internal.h return pcmk__is_pacemaker_remote_node(node) node 75 include/crm/common/remote_internal.h && (node->details->remote_rsc != NULL) node 76 include/crm/common/remote_internal.h && (node->details->remote_rsc->container != NULL); node 277 include/crm/common/resources.h const pcmk_node_t *node, int flags); node 291 include/crm/common/resources.h char *(*parameter)(pcmk_resource_t *rsc, pcmk_node_t *node, gboolean create, node 78 include/crm/common/util_compat.h const char *crm_xml_replace(xmlNode *node, const char *name, const char *value); node 36 include/crm/common/xml_compat.h xmlDoc *getDocPtr(xmlNode *node); node 64 include/crm/common/xml_compat.h crm_xml_add_boolean(xmlNode *node, const char *name, gboolean value) node 66 include/crm/common/xml_compat.h return crm_xml_add(node, name, (value? "true" : "false")); node 428 include/crm/common/xml_internal.h xmlNode *pcmk__xe_next_same(const xmlNode *node); node 430 include/crm/common/xml_internal.h void pcmk__xe_set_content(xmlNode *node, const char *format, ...) node 466 include/crm/common/xml_internal.h pcmk__xe_set_propv(xmlNodePtr node, va_list pairs); node 479 include/crm/common/xml_internal.h pcmk__xe_set_props(xmlNodePtr node, ...) node 506 include/crm/common/xml_internal.h pcmk__xpath_node_id(const char *xpath, const char *node); node 80 include/crm/fencing/internal.h xmlNode *create_level_registration_xml(const char *node, const char *pattern, node 167 include/crm/fencing/internal.h gboolean stonith__watchdog_fencing_enabled_for_node(const char *node); node 168 include/crm/fencing/internal.h gboolean stonith__watchdog_fencing_enabled_for_node_api(stonith_t *st, const char *node); node 25 include/crm/lrmd_internal.h const char *node, uint32_t nodeid, node 28 include/crm/lrmd_internal.h const char *node, uint32_t nodeid, const char *state); node 33 include/crm/lrmd_internal.h const char *node, const lrmd_event_data_t *op); node 25 include/crm/pengine/complex.h GHashTable *pe_rsc_params(pcmk_resource_t *rsc, const pcmk_node_t *node, node 28 include/crm/pengine/complex.h pcmk_node_t *node, pcmk_scheduler_t *scheduler); node 30 include/crm/pengine/complex.h const pcmk_node_t *node, pcmk_scheduler_t *scheduler); node 55 include/crm/pengine/internal.h bool pe_can_fence(const pcmk_scheduler_t *scheduler, const pcmk_node_t *node); node 57 include/crm/pengine/internal.h char *native_parameter(pcmk_resource_t *rsc, pcmk_node_t *node, gboolean create, node 61 include/crm/pengine/internal.h void native_add_running(pcmk_resource_t *rsc, pcmk_node_t *node, node 70 include/crm/pengine/internal.h const pcmk_node_t *node, int flags); node 94 include/crm/pengine/internal.h const pcmk_node_t *node, uint32_t show_opts, node 99 include/crm/pengine/internal.h char *pe__node_display_name(pcmk_node_t *node, bool print_detail); node 147 include/crm/pengine/internal.h int pe_get_failcount(const pcmk_node_t *node, pcmk_resource_t *rsc, node 152 include/crm/pengine/internal.h const pcmk_node_t *node, const char *reason, node 157 include/crm/pengine/internal.h bool pe__count_active_node(const pcmk_resource_t *rsc, pcmk_node_t *node, node 181 include/crm/pengine/internal.h const pcmk_node_t *node, node 209 include/crm/pengine/internal.h # define delete_action(rsc, node, optional) custom_action( \ node 210 include/crm/pengine/internal.h rsc, delete_key(rsc), PCMK_ACTION_DELETE, node, \ node 214 include/crm/pengine/internal.h # define stop_action(rsc, node, optional) custom_action( \ node 215 include/crm/pengine/internal.h rsc, stop_key(rsc), PCMK_ACTION_STOP, node, \ node 220 include/crm/pengine/internal.h # define start_action(rsc, node, optional) custom_action( \ node 221 include/crm/pengine/internal.h rsc, start_key(rsc), PCMK_ACTION_START, node, \ node 225 include/crm/pengine/internal.h # define promote_action(rsc, node, optional) custom_action( \ node 226 include/crm/pengine/internal.h rsc, promote_key(rsc), PCMK_ACTION_PROMOTE, node, \ node 230 include/crm/pengine/internal.h # define demote_action(rsc, node, optional) custom_action( \ node 231 include/crm/pengine/internal.h rsc, demote_key(rsc), PCMK_ACTION_DEMOTE, node, \ node 243 include/crm/pengine/internal.h GList *pe__resource_actions(const pcmk_resource_t *rsc, const pcmk_node_t *node, node 248 include/crm/pengine/internal.h void resource_location(pcmk_resource_t *rsc, const pcmk_node_t *node, int score, node 288 include/crm/pengine/internal.h const pcmk_node_t *node, node 298 include/crm/pengine/internal.h pcmk_node_t *node, node 301 include/crm/pengine/internal.h pcmk_action_t *pe_fence_op(pcmk_node_t *node, const char *op, bool optional, node 304 include/crm/pengine/internal.h void trigger_unfencing(pcmk_resource_t *rsc, pcmk_node_t *node, node 324 include/crm/pengine/internal.h void pe_fence_node(pcmk_scheduler_t *scheduler, pcmk_node_t *node, node 332 include/crm/pengine/internal.h const pcmk_node_t *node, long options, void *print_data); node 334 include/crm/pengine/internal.h const char *name, const pcmk_node_t *node, node 337 include/crm/pengine/internal.h const char *name, const pcmk_node_t *node, node 344 include/crm/pengine/internal.h const pcmk_node_t *node); node 356 include/crm/pengine/internal.h const pcmk_node_t *node); node 363 include/crm/pengine/internal.h pcmk_node_t *node, enum pcmk__check_parameters, node 371 include/crm/pengine/internal.h bool pe__shutdown_requested(const pcmk_node_t *node); node 390 include/crm/pengine/internal.h void pe__clear_resource_history(pcmk_resource_t *rsc, const pcmk_node_t *node); node 396 include/crm/pengine/internal.h bool pe__uname_has_tag(pcmk_scheduler_t *scheduler, const char *node, node 400 include/crm/pengine/internal.h const pcmk_node_t *node); node 421 include/crm/pengine/internal.h int pe__sum_node_health_scores(const pcmk_node_t *node, int base_health); node 422 include/crm/pengine/internal.h int pe__node_health(pcmk_node_t *node); node 54 include/crm/pengine/status.h GList *find_operations(const char *rsc, const char *node, gboolean active_filter, node 248 include/crm/stonith-ng.h int (*remove_level)(stonith_t *st, int options, const char *node, node 263 include/crm/stonith-ng.h int (*register_level)(stonith_t *st, int options, const char *node, node 384 include/crm/stonith-ng.h int (*fence)(stonith_t *stonith, int call_options, const char *node, node 410 include/crm/stonith-ng.h int (*history)(stonith_t *stonith, int call_options, const char *node, node 493 include/crm/stonith-ng.h const char *node, const char *pattern, node 520 include/crm/stonith-ng.h const char *node, const char *pattern, node 568 include/crm/stonith-ng.h const char *node, const char *action, int timeout, node 223 include/pacemaker.h const pcmk_node_t *node, GHashTable *overrides); node 22 include/pcmki/pcmki_resource.h const pcmk_node_t *node, GHashTable *overrides); node 42 include/pcmki/pcmki_scheduler.h const char *node, const char *origin); node 89 lib/cluster/cluster.c pcmk__cluster_node_uuid(crm_node_t *node) node 93 lib/cluster/cluster.c if (node == NULL) { node 96 lib/cluster/cluster.c if (node->uuid != NULL) { node 97 lib/cluster/cluster.c return node->uuid; node 103 lib/cluster/cluster.c node->uuid = pcmk__corosync_uuid(node); node 104 lib/cluster/cluster.c return node->uuid; node 236 lib/cluster/cluster.c pcmk__cluster_send_message(const crm_node_t *node, node 243 lib/cluster/cluster.c return pcmk__cpg_send_xml(data, node, service); node 362 lib/cluster/cluster.c crm_node_t *node = NULL; node 372 lib/cluster/cluster.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 373 lib/cluster/cluster.c if (pcmk__str_eq(node->uuid, uuid, pcmk__str_casei)) { node 374 lib/cluster/cluster.c return node->uname; node 471 lib/cluster/cluster.c set_uuid(xmlNode *xml, const char *attr, crm_node_t *node) node 473 lib/cluster/cluster.c crm_xml_add(xml, attr, pcmk__cluster_node_uuid(node)); node 516 lib/cluster/cluster.c send_cluster_message(const crm_node_t *node, enum crm_ais_msg_types service, node 519 lib/cluster/cluster.c return pcmk__cluster_send_message(node, service, data); node 53 lib/cluster/corosync.c pcmk__corosync_uuid(const crm_node_t *node) node 57 lib/cluster/corosync.c if (node != NULL) { node 58 lib/cluster/corosync.c if (node->id > 0) { node 59 lib/cluster/corosync.c return crm_strdup_printf("%u", node->id); node 61 lib/cluster/corosync.c crm_info("Node %s is not yet known by Corosync", node->uname); node 273 lib/cluster/corosync.c crm_node_t *node = NULL; node 302 lib/cluster/corosync.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 303 lib/cluster/corosync.c node->last_seen = 0; node 313 lib/cluster/corosync.c node = pcmk__get_node(id, NULL, NULL, pcmk__node_search_cluster_member); node 314 lib/cluster/corosync.c if (node->uname == NULL) { node 318 lib/cluster/corosync.c node = pcmk__get_node(id, name, NULL, node 324 lib/cluster/corosync.c pcmk__update_peer_state(__func__, node, CRM_NODE_MEMBER, ring_id); node 528 lib/cluster/corosync.c pcmk__corosync_is_peer_active(const crm_node_t *node) node 530 lib/cluster/corosync.c if (node == NULL) { node 534 lib/cluster/corosync.c if (!pcmk__str_eq(node->state, CRM_NODE_MEMBER, pcmk__str_none)) { node 536 lib/cluster/corosync.c node->uname, node->state); node 539 lib/cluster/corosync.c if (!pcmk_is_set(node->processes, crm_proc_cpg)) { node 541 lib/cluster/corosync.c node->uname, node->processes); node 624 lib/cluster/corosync.c crm_node_t *node = NULL; node 627 lib/cluster/corosync.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 628 lib/cluster/corosync.c if(node && node->uname && strcasecmp(node->uname, name) == 0) { node 629 lib/cluster/corosync.c if (node->id && node->id != nodeid) { node 630 lib/cluster/corosync.c crm_crit("Nodes %u and %u share the same name '%s': shutting down", node->id, node 647 lib/cluster/corosync.c xmlNode *node = pcmk__xe_create(xml_parent, PCMK_XE_NODE); node 649 lib/cluster/corosync.c crm_xml_add_ll(node, PCMK_XA_ID, (long long) nodeid); node 650 lib/cluster/corosync.c crm_xml_add(node, PCMK_XA_UNAME, name); node 819 lib/cluster/corosync.c crm_is_corosync_peer_active(const crm_node_t *node) node 821 lib/cluster/corosync.c return pcmk__corosync_is_peer_active(node); node 959 lib/cluster/cpg.c send_cpg_text(const char *data, bool local, const crm_node_t *node, node 999 lib/cluster/cpg.c if (node != NULL) { node 1000 lib/cluster/cpg.c if (node->uname != NULL) { node 1001 lib/cluster/cpg.c target = pcmk__str_copy(node->uname); node 1002 lib/cluster/cpg.c msg->host.size = strlen(node->uname); node 1004 lib/cluster/cpg.c memcpy(msg->host.uname, node->uname, msg->host.size); node 1007 lib/cluster/cpg.c target = crm_strdup_printf("%u", node->id); node 1009 lib/cluster/cpg.c msg->host.id = node->id; node 1091 lib/cluster/cpg.c pcmk__cpg_send_xml(const xmlNode *msg, const crm_node_t *node, node 1099 lib/cluster/cpg.c rc = send_cpg_text(data->str, false, node, dest); node 1144 lib/cluster/cpg.c gboolean local, const crm_node_t *node, node 1149 lib/cluster/cpg.c return send_cpg_text(data, local, node, dest); node 48 lib/cluster/crmcluster_private.h bool pcmk__corosync_is_peer_active(const crm_node_t *node); node 60 lib/cluster/crmcluster_private.h bool pcmk__cpg_send_xml(const xmlNode *msg, const crm_node_t *node, node 371 lib/cluster/election.c const crm_node_t *node; node 376 lib/cluster/election.c while (g_hash_table_iter_next(&gIter, NULL, (gpointer *) & node)) { node 377 lib/cluster/election.c if (pcmk__cluster_is_node_active(node)) { node 378 lib/cluster/election.c crm_warn("* expected vote: %s", node->uname); node 88 lib/cluster/membership.c static void update_peer_uname(crm_node_t *node, const char *uname); node 124 lib/cluster/membership.c crm_node_t *node; node 137 lib/cluster/membership.c node = pcmk__search_node_caches(0, node_name, node 139 lib/cluster/membership.c if ((node != NULL) && (node->uuid == NULL)) { node 153 lib/cluster/membership.c node = g_hash_table_lookup(crm_remote_peer_cache, node_name); node 154 lib/cluster/membership.c if (node) { node 156 lib/cluster/membership.c return node; node 160 lib/cluster/membership.c node = calloc(1, sizeof(crm_node_t)); node 161 lib/cluster/membership.c if (node == NULL) { node 167 lib/cluster/membership.c set_peer_flags(node, crm_remote_node); node 168 lib/cluster/membership.c node->uuid = strdup(node_name); node 169 lib/cluster/membership.c if (node->uuid == NULL) { node 170 lib/cluster/membership.c free(node); node 177 lib/cluster/membership.c g_hash_table_replace(crm_remote_peer_cache, node->uuid, node); node 181 lib/cluster/membership.c update_peer_uname(node, node_name); node 183 lib/cluster/membership.c return node; node 250 lib/cluster/membership.c crm_node_t *node; node 260 lib/cluster/membership.c node = g_hash_table_lookup(crm_remote_peer_cache, remote); node 262 lib/cluster/membership.c if (node == NULL) { node 264 lib/cluster/membership.c node = pcmk__cluster_lookup_remote_node(remote); node 265 lib/cluster/membership.c pcmk__assert(node != NULL); node 267 lib/cluster/membership.c pcmk__update_peer_state(__func__, node, state, 0); node 270 lib/cluster/membership.c } else if (pcmk_is_set(node->flags, crm_node_dirty)) { node 272 lib/cluster/membership.c clear_peer_flags(node, crm_node_dirty); node 274 lib/cluster/membership.c pcmk__update_peer_state(__func__, node, state, 0); node 347 lib/cluster/membership.c pcmk__cluster_is_node_active(const crm_node_t *node) node 351 lib/cluster/membership.c if ((node == NULL) || pcmk_is_set(node->flags, crm_remote_node)) { node 358 lib/cluster/membership.c return pcmk__corosync_is_peer_active(node); node 399 lib/cluster/membership.c crm_node_t *node = value; node 405 lib/cluster/membership.c if ((search->id != 0) && (node->id != search->id)) { node 409 lib/cluster/membership.c && !pcmk__str_eq(node->uname, search->uname, pcmk__str_casei)) { node 419 lib/cluster/membership.c pcmk__s(node->uname, "(unknown)"), node->id); node 490 lib/cluster/membership.c crm_node_t *node = value; node 492 lib/cluster/membership.c if (pcmk__cluster_is_node_active(node)) { node 520 lib/cluster/membership.c crm_node_t *node = data; node 522 lib/cluster/membership.c crm_trace("Destroying entry for node %u: %s", node->id, node->uname); node 524 lib/cluster/membership.c free(node->uname); node 525 lib/cluster/membership.c free(node->state); node 526 lib/cluster/membership.c free(node->uuid); node 527 lib/cluster/membership.c free(node->expected); node 528 lib/cluster/membership.c free(node->conn_host); node 529 lib/cluster/membership.c free(node); node 626 lib/cluster/membership.c crm_node_t *node = NULL; node 629 lib/cluster/membership.c while (g_hash_table_iter_next(&iter, (gpointer *) &id, (gpointer *) &node)) { node 630 lib/cluster/membership.c do_crm_log(level, "%s: Node %u/%s = %p - %s", caller, node->id, node->uname, node, id); node 656 lib/cluster/membership.c crm_node_t *node = NULL; node 666 lib/cluster/membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 667 lib/cluster/membership.c if(node->uname && strcasecmp(node->uname, uname) == 0) { node 668 lib/cluster/membership.c crm_trace("Name match: %s = %p", node->uname, node); node 669 lib/cluster/membership.c by_name = node; node 677 lib/cluster/membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 678 lib/cluster/membership.c if(node->id == id) { node 679 lib/cluster/membership.c crm_trace("ID match: %u = %p", node->id, node); node 680 lib/cluster/membership.c by_id = node; node 687 lib/cluster/membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 688 lib/cluster/membership.c if (pcmk__str_eq(node->uuid, uuid, pcmk__str_casei)) { node 689 lib/cluster/membership.c crm_trace("UUID match: %s = %p", node->uuid, node); node 690 lib/cluster/membership.c by_id = node; node 696 lib/cluster/membership.c node = by_id; /* Good default */ node 708 lib/cluster/membership.c node = NULL; /* Create a new one */ node 711 lib/cluster/membership.c node = by_name; node 751 lib/cluster/membership.c return node; node 767 lib/cluster/membership.c crm_node_t *node = NULL; node 774 lib/cluster/membership.c node = g_hash_table_lookup(crm_remote_peer_cache, uname); node 777 lib/cluster/membership.c if ((node == NULL) node 780 lib/cluster/membership.c node = search_cluster_member_cache(id, uname, NULL); node 783 lib/cluster/membership.c if ((node == NULL) && pcmk_is_set(flags, pcmk__node_search_cluster_cib)) { node 786 lib/cluster/membership.c node = find_cib_cluster_node(id_str, uname); node 790 lib/cluster/membership.c return node; node 835 lib/cluster/membership.c remove_conflicting_peer(crm_node_t *node) node 841 lib/cluster/membership.c if (node->id == 0 || node->uname == NULL) { node 852 lib/cluster/membership.c && existing_node->id != node->id node 854 lib/cluster/membership.c && strcasecmp(existing_node->uname, node->uname) == 0) { node 861 lib/cluster/membership.c existing_node->id, existing_node->uname, node->id); node 893 lib/cluster/membership.c crm_node_t *node = NULL; node 902 lib/cluster/membership.c node = g_hash_table_lookup(crm_remote_peer_cache, uname); node 903 lib/cluster/membership.c if (node != NULL) { node 904 lib/cluster/membership.c return node; node 912 lib/cluster/membership.c node = search_cluster_member_cache(id, uname, uuid); node 916 lib/cluster/membership.c if ((node == NULL || node->uname == NULL) && (uname == NULL)) { node 925 lib/cluster/membership.c if (node == NULL) { node 926 lib/cluster/membership.c node = search_cluster_member_cache(id, uname, uuid); node 930 lib/cluster/membership.c if (node == NULL) { node 933 lib/cluster/membership.c node = pcmk__assert_alloc(1, sizeof(crm_node_t)); node 936 lib/cluster/membership.c uniqueid, node, uname, id, 1 + g_hash_table_size(crm_peer_cache)); node 937 lib/cluster/membership.c g_hash_table_replace(crm_peer_cache, uniqueid, node); node 940 lib/cluster/membership.c if(id > 0 && uname && (node->id == 0 || node->uname == NULL)) { node 944 lib/cluster/membership.c if(id > 0 && node->id == 0) { node 945 lib/cluster/membership.c node->id = id; node 948 lib/cluster/membership.c if (uname && (node->uname == NULL)) { node 949 lib/cluster/membership.c update_peer_uname(node, uname); node 952 lib/cluster/membership.c if(node->uuid == NULL) { node 954 lib/cluster/membership.c uuid = pcmk__cluster_node_uuid(node); node 961 lib/cluster/membership.c crm_info("Cannot obtain a UUID for node %u/%s", id, node->uname); node 967 lib/cluster/membership.c return node; node 982 lib/cluster/membership.c update_peer_uname(crm_node_t *node, const char *uname) node 986 lib/cluster/membership.c CRM_CHECK(node != NULL, node 990 lib/cluster/membership.c if (pcmk__str_eq(uname, node->uname, pcmk__str_casei)) { node 1003 lib/cluster/membership.c pcmk__str_update(&node->uname, uname); node 1006 lib/cluster/membership.c peer_status_callback(crm_status_uname, node, NULL); node 1011 lib/cluster/membership.c && !pcmk_is_set(node->flags, crm_remote_node)) { node 1013 lib/cluster/membership.c remove_conflicting_peer(node); node 1059 lib/cluster/membership.c crm_update_peer_proc(const char *source, crm_node_t * node, uint32_t flag, const char *status) node 1064 lib/cluster/membership.c CRM_CHECK(node != NULL, crm_err("%s: Could not set %s to %s for NULL", node 1069 lib/cluster/membership.c if (pcmk_is_set(node->flags, crm_remote_node)) { node 1070 lib/cluster/membership.c return node; node 1073 lib/cluster/membership.c last = node->processes; node 1075 lib/cluster/membership.c node->processes = flag; node 1076 lib/cluster/membership.c if (node->processes != last) { node 1081 lib/cluster/membership.c if ((node->processes & flag) != flag) { node 1082 lib/cluster/membership.c node->processes = pcmk__set_flags_as(__func__, __LINE__, node 1084 lib/cluster/membership.c node->uname, node->processes, node 1089 lib/cluster/membership.c } else if (node->processes & flag) { node 1090 lib/cluster/membership.c node->processes = pcmk__clear_flags_as(__func__, __LINE__, node 1092 lib/cluster/membership.c node->uname, node->processes, node 1099 lib/cluster/membership.c crm_info("%s: Node %s[%u] - all processes are now offline", source, node->uname, node 1100 lib/cluster/membership.c node->id); node 1102 lib/cluster/membership.c crm_info("%s: Node %s[%u] - %s is now %s", source, node->uname, node->id, node 1106 lib/cluster/membership.c if (pcmk_is_set(node->processes, crm_get_cluster_proc())) { node 1107 lib/cluster/membership.c node->when_online = time(NULL); node 1110 lib/cluster/membership.c node->when_online = 0; node 1117 lib/cluster/membership.c peer_status_callback(crm_status_processes, node, &last); node 1130 lib/cluster/membership.c if (pcmk_is_set(node->processes, crm_get_cluster_proc())) { node 1135 lib/cluster/membership.c node = pcmk__update_peer_state(__func__, node, peer_state, 0); node 1138 lib/cluster/membership.c crm_trace("%s: Node %s[%u] - %s is unchanged (%s)", source, node->uname, node->id, node 1141 lib/cluster/membership.c return node; node 1153 lib/cluster/membership.c pcmk__update_peer_expected(const char *source, crm_node_t *node, node 1159 lib/cluster/membership.c CRM_CHECK(node != NULL, crm_err("%s: Could not set 'expected' to %s", source, expected); node 1163 lib/cluster/membership.c if (pcmk_is_set(node->flags, crm_remote_node)) { node 1167 lib/cluster/membership.c last = node->expected; node 1168 lib/cluster/membership.c if (expected != NULL && !pcmk__str_eq(node->expected, expected, pcmk__str_casei)) { node 1169 lib/cluster/membership.c node->expected = strdup(expected); node 1174 lib/cluster/membership.c crm_info("%s: Node %s[%u] - expected state is now %s (was %s)", source, node->uname, node->id, node 1178 lib/cluster/membership.c crm_trace("%s: Node %s[%u] - expected state is unchanged (%s)", source, node->uname, node 1179 lib/cluster/membership.c node->id, expected); node 1200 lib/cluster/membership.c update_peer_state_iter(const char *source, crm_node_t *node, const char *state, node 1205 lib/cluster/membership.c CRM_CHECK(node != NULL, node 1212 lib/cluster/membership.c node->when_lost = 0; node 1214 lib/cluster/membership.c node->last_seen = membership; node 1218 lib/cluster/membership.c if (state && !pcmk__str_eq(node->state, state, pcmk__str_casei)) { node 1219 lib/cluster/membership.c char *last = node->state; node 1222 lib/cluster/membership.c node->when_member = time(NULL); node 1225 lib/cluster/membership.c node->when_member = 0; node 1228 lib/cluster/membership.c node->state = strdup(state); node 1230 lib/cluster/membership.c " nodeid=%u previous=%s source=%s", node->uname, state, node 1231 lib/cluster/membership.c node->id, (last? last : "unknown"), source); node 1233 lib/cluster/membership.c peer_status_callback(crm_status_nstate, node, last); node 1238 lib/cluster/membership.c && !pcmk_is_set(node->flags, crm_remote_node)) { node 1246 lib/cluster/membership.c node->id, node->uname); node 1250 lib/cluster/membership.c pcmk__cluster_forget_cluster_node(node->id, node->uname); node 1252 lib/cluster/membership.c node = NULL; node 1257 lib/cluster/membership.c " nodeid=%u source=%s", node->uname, state, node->id, source); node 1259 lib/cluster/membership.c return node; node 1278 lib/cluster/membership.c pcmk__update_peer_state(const char *source, crm_node_t *node, node 1281 lib/cluster/membership.c return update_peer_state_iter(source, node, state, membership, NULL); node 1294 lib/cluster/membership.c crm_node_t *node = NULL; node 1298 lib/cluster/membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *)&node)) { node 1299 lib/cluster/membership.c if (node->last_seen != membership) { node 1300 lib/cluster/membership.c if (node->state) { node 1306 lib/cluster/membership.c update_peer_state_iter(__func__, node, CRM_NODE_LOST, node 1311 lib/cluster/membership.c node->uname, node->id); node 1321 lib/cluster/membership.c crm_node_t *node = NULL; node 1327 lib/cluster/membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 1328 lib/cluster/membership.c if (node->uname && strcasecmp(node->uname, uname) == 0) { node 1329 lib/cluster/membership.c crm_trace("Name match: %s = %p", node->uname, node); node 1330 lib/cluster/membership.c by_name = node; node 1338 lib/cluster/membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 1339 lib/cluster/membership.c if(strcasecmp(node->uuid, id) == 0) { node 1340 lib/cluster/membership.c crm_trace("ID match: %s= %p", id, node); node 1341 lib/cluster/membership.c by_id = node; node 1347 lib/cluster/membership.c node = by_id; /* Good default */ node 1356 lib/cluster/membership.c node = NULL; node 1359 lib/cluster/membership.c node = by_name; node 1366 lib/cluster/membership.c node = NULL; node 1378 lib/cluster/membership.c node = by_name; node 1381 lib/cluster/membership.c node = NULL; node 1384 lib/cluster/membership.c if (node == NULL) { node 1392 lib/cluster/membership.c return node; node 1400 lib/cluster/membership.c crm_node_t * node = NULL; node 1403 lib/cluster/membership.c node = find_cib_cluster_node(id, uname); node 1405 lib/cluster/membership.c if (node == NULL) { node 1408 lib/cluster/membership.c node = pcmk__assert_alloc(1, sizeof(crm_node_t)); node 1410 lib/cluster/membership.c node->uname = pcmk__str_copy(uname); node 1411 lib/cluster/membership.c node->uuid = pcmk__str_copy(id); node 1413 lib/cluster/membership.c g_hash_table_replace(cluster_node_cib_cache, uniqueid, node); node 1415 lib/cluster/membership.c } else if (pcmk_is_set(node->flags, crm_node_dirty)) { node 1416 lib/cluster/membership.c pcmk__str_update(&node->uname, uname); node 1419 lib/cluster/membership.c clear_peer_flags(node, crm_node_dirty); node 1501 lib/cluster/membership.c crm_is_peer_active(const crm_node_t * node) node 1503 lib/cluster/membership.c return pcmk__cluster_is_node_active(node); node 404 lib/common/actions.c const char *node) node 406 lib/common/actions.c CRM_CHECK(node != NULL, return NULL); node 408 lib/common/actions.c action_id, transition_id, target_rc, 36, node); node 118 lib/common/attrs.c pcmk__node_attr(const pcmk_node_t *node, const char *name, const char *target, node 126 lib/common/attrs.c if ((node == NULL) || (name == NULL)) { node 133 lib/common/attrs.c if (!pcmk__is_guest_or_bundle_node(node) node 135 lib/common/attrs.c value = g_hash_table_lookup(node->details->attrs, name); node 137 lib/common/attrs.c name, pcmk__s(value, ""), pcmk__node_name(node)); node 145 lib/common/attrs.c container = node->details->remote_rsc->container; node 153 lib/common/attrs.c name, pcmk__node_name(node), container->id); node 166 lib/common/attrs.c name, pcmk__node_name(node), container->id); node 180 lib/common/attrs.c name, pcmk__s(value, ""), pcmk__node_name(node), node_type_s, node 125 lib/common/crmcommon_private.h xmlAttr *pcmk__xe_set_attr_force(xmlNode *node, const char *name, node 33 lib/common/ipc_attrd.c for (xmlNode *node = pcmk__xe_first_child(msg_data, PCMK_XE_NODE, NULL, node 35 lib/common/ipc_attrd.c node != NULL; node = pcmk__xe_next_same(node)) { node 39 lib/common/ipc_attrd.c pair->node = crm_element_value(node, PCMK__XA_ATTR_HOST); node 41 lib/common/ipc_attrd.c pair->value = crm_element_value(node, PCMK__XA_ATTR_VALUE); node 178 lib/common/ipc_attrd.c pcmk__attrd_api_clear_failures(pcmk_ipc_api_t *api, const char *node, node 187 lib/common/ipc_attrd.c const char *target = pcmk__node_attr_target(node); node 190 lib/common/ipc_attrd.c node = target; node 202 lib/common/ipc_attrd.c pcmk__s(resource, "all resources"), pcmk__s(node, "all nodes")); node 205 lib/common/ipc_attrd.c pcmk__xe_add_node(request, node, 0); node 219 lib/common/ipc_attrd.c pcmk__attrd_api_delete(pcmk_ipc_api_t *api, const char *node, const char *name, node 228 lib/common/ipc_attrd.c target = pcmk__node_attr_target(node); node 231 lib/common/ipc_attrd.c node = target; node 238 lib/common/ipc_attrd.c return pcmk__attrd_api_update(api, node, name, NULL, NULL, NULL, NULL, options); node 242 lib/common/ipc_attrd.c pcmk__attrd_api_purge(pcmk_ipc_api_t *api, const char *node, bool reap) node 246 lib/common/ipc_attrd.c const char *target = pcmk__node_attr_target(node); node 249 lib/common/ipc_attrd.c node = target; node 255 lib/common/ipc_attrd.c pcmk__s(node, "local node")); node 261 lib/common/ipc_attrd.c pcmk__xe_add_node(request, node, 0); node 270 lib/common/ipc_attrd.c pcmk__attrd_api_query(pcmk_ipc_api_t *api, const char *node, const char *name, node 282 lib/common/ipc_attrd.c node = NULL; node 284 lib/common/ipc_attrd.c target = pcmk__node_attr_target(node); node 287 lib/common/ipc_attrd.c node = target; node 293 lib/common/ipc_attrd.c ((node == NULL)? "" : " on "), pcmk__s(node, "")); node 299 lib/common/ipc_attrd.c pcmk__xe_add_node(request, node, 0); node 307 lib/common/ipc_attrd.c pcmk__attrd_api_refresh(pcmk_ipc_api_t *api, const char *node) node 311 lib/common/ipc_attrd.c const char *target = pcmk__node_attr_target(node); node 314 lib/common/ipc_attrd.c node = target; node 318 lib/common/ipc_attrd.c pcmk_ipc_name(api, true), pcmk__s(node, "local node")); node 323 lib/common/ipc_attrd.c pcmk__xe_add_node(request, node, 0); node 344 lib/common/ipc_attrd.c populate_update_op(xmlNode *op, const char *node, const char *name, const char *value, node 363 lib/common/ipc_attrd.c pcmk__xe_add_node(op, node, 0); node 378 lib/common/ipc_attrd.c pcmk__attrd_api_update(pcmk_ipc_api_t *api, const char *node, const char *name, node 390 lib/common/ipc_attrd.c target = pcmk__node_attr_target(node); node 393 lib/common/ipc_attrd.c node = target; node 398 lib/common/ipc_attrd.c pcmk__s(node, "local node")); node 401 lib/common/ipc_attrd.c populate_update_op(request, node, name, value, dampen, set, options); node 462 lib/common/ipc_attrd.c target = pcmk__node_attr_target(pair->node); node 465 lib/common/ipc_attrd.c pair->node = target; node 468 lib/common/ipc_attrd.c populate_update_op(child, pair->node, pair->name, pair->value, dampen, node 471 lib/common/ipc_attrd.c rc = pcmk__attrd_api_update(api, pair->node, pair->name, pair->value, node 165 lib/common/ipc_controld.c for (xmlNode *node = pcmk__xe_first_child(msg_data, PCMK_XE_NODE, NULL, node 167 lib/common/ipc_controld.c node != NULL; node = pcmk__xe_next_same(node)) { node 172 lib/common/ipc_controld.c crm_element_value_ll(node, PCMK_XA_ID, &id_ll); node 176 lib/common/ipc_controld.c node_info->uname = crm_element_value(node, PCMK_XA_UNAME); node 177 lib/common/ipc_controld.c node_info->state = crm_element_value(node, PCMK__XA_IN_CCM); node 319 lib/common/ipc_controld.c const char *node, xmlNode *msg_data) node 328 lib/common/ipc_controld.c if ((node == NULL) && !strcmp(op, CRM_OP_PING)) { node 333 lib/common/ipc_controld.c return create_request(op, msg_data, node, sys_to, node 24 lib/common/nodes.c pcmk_node_is_online(const pcmk_node_t *node) node 26 lib/common/nodes.c return (node != NULL) && node->details->online; node 42 lib/common/nodes.c pcmk_node_is_pending(const pcmk_node_t *node) node 44 lib/common/nodes.c return (node != NULL) && node->details->pending; node 61 lib/common/nodes.c pcmk_node_is_clean(const pcmk_node_t *node) node 63 lib/common/nodes.c return (node != NULL) && !(node->details->unclean); node 75 lib/common/nodes.c pcmk_node_is_shutting_down(const pcmk_node_t *node) node 77 lib/common/nodes.c return (node != NULL) && node->details->shutdown; node 89 lib/common/nodes.c pcmk_node_is_in_maintenance(const pcmk_node_t *node) node 91 lib/common/nodes.c return (node != NULL) && node->details->maintenance; node 107 lib/common/nodes.c pcmk_foreach_active_resource(pcmk_node_t *node, node 113 lib/common/nodes.c if ((node != NULL) && (fn != NULL)) { node 114 lib/common/nodes.c for (GList *item = node->details->running_rsc; item != NULL; node 127 lib/common/nodes.c pcmk__xe_add_node(xmlNode *xml, const char *node, int nodeid) node 131 lib/common/nodes.c if (node != NULL) { node 132 lib/common/nodes.c crm_xml_add(xml, PCMK__XA_ATTR_HOST, node); node 154 lib/common/nodes.c pcmk_node_t *node = (pcmk_node_t *) iter->data; node 156 lib/common/nodes.c if (pcmk__str_eq(node->details->uname, node_name, node 158 lib/common/nodes.c return node; node 181 lib/common/nodes.c pcmk_cib_node_shutdown(xmlNode *cib, const char *node) node 183 lib/common/nodes.c if ((cib != NULL) && (node != NULL)) { node 184 lib/common/nodes.c char *xpath = crm_strdup_printf(XP_SHUTDOWN, node); node 290 lib/common/nvpair.c pcmk__xe_set_attr_force(xmlNode *node, const char *name, const char *value) node 292 lib/common/nvpair.c xmlAttr *attr = xmlSetProp(node, (pcmkXmlStr) name, (pcmkXmlStr) value); node 313 lib/common/nvpair.c crm_xml_add(xmlNode *node, const char *name, const char *value) node 318 lib/common/nvpair.c CRM_CHECK(node != NULL, return NULL); node 325 lib/common/nvpair.c if (pcmk__tracking_xml_changes(node, FALSE)) { node 326 lib/common/nvpair.c const char *old = crm_element_value(node, name); node 333 lib/common/nvpair.c if (dirty && (pcmk__check_acl(node, name, pcmk__xf_acl_create) == FALSE)) { node 334 lib/common/nvpair.c crm_trace("Cannot add %s=%s to %s", name, value, node->name); node 338 lib/common/nvpair.c attr = pcmk__xe_set_attr_force(node, name, value); node 360 lib/common/nvpair.c crm_xml_add_int(xmlNode *node, const char *name, int value) node 363 lib/common/nvpair.c const char *added = crm_xml_add(node, name, number); node 382 lib/common/nvpair.c crm_xml_add_ms(xmlNode *node, const char *name, guint ms) node 385 lib/common/nvpair.c const char *added = crm_xml_add(node, name, number); node 987 lib/common/nvpair.c pcmk__xe_set_bool_attr(xmlNodePtr node, const char *name, bool value) node 989 lib/common/nvpair.c crm_xml_add(node, name, pcmk__btoa(value)); node 993 lib/common/nvpair.c pcmk__xe_get_bool_attr(const xmlNode *node, const char *name, bool *value) node 998 lib/common/nvpair.c if (node == NULL) { node 1004 lib/common/nvpair.c xml_value = crm_element_value(node, name); node 1020 lib/common/nvpair.c pcmk__xe_attr_is_true(const xmlNode *node, const char *name) node 1025 lib/common/nvpair.c rc = pcmk__xe_get_bool_attr(node, name, &value); node 1112 lib/common/nvpair.c crm_xml_replace(xmlNode *node, const char *name, const char *value) node 1118 lib/common/nvpair.c CRM_CHECK(node != NULL, return NULL); node 1121 lib/common/nvpair.c old_value = crm_element_value(node, name); node 1126 lib/common/nvpair.c if (pcmk__check_acl(node, name, pcmk__xf_acl_write) == FALSE) { node 1128 lib/common/nvpair.c crm_trace("Cannot replace %s=%s to %s", name, value, node->name); node 1132 lib/common/nvpair.c pcmk__xe_remove_attr(node, name); node 1136 lib/common/nvpair.c if (pcmk__tracking_xml_changes(node, FALSE)) { node 1142 lib/common/nvpair.c attr = pcmk__xe_set_attr_force(node, name, value); node 230 lib/common/options_display.c xmlNode *node = pcmk__output_create_xml_text_node(out, tag, desc); node 232 lib/common/options_display.c crm_xml_add(node, PCMK_XA_LANG, PCMK__VALUE_EN); node 245 lib/common/options_display.c node = pcmk__output_create_xml_text_node(out, tag, _(desc)); node 246 lib/common/options_display.c crm_xml_add(node, PCMK_XA_LANG, locale); node 295 lib/common/output_html.c htmlNodePtr node = NULL; node 299 lib/common/output_html.c node = pcmk__output_create_html_node(out, "pre", NULL, NULL, buf); node 300 lib/common/output_html.c crm_xml_add(node, PCMK_XA_LANG, "xml"); node 309 lib/common/output_html.c xmlNodePtr node = NULL; node 342 lib/common/output_html.c node = pcmk__output_xml_create_parent(out, "ul", NULL); node 343 lib/common/output_html.c g_queue_push_tail(priv->parent_q, node); node 451 lib/common/output_html.c htmlNodePtr node = NULL; node 456 lib/common/output_html.c node = pcmk__output_create_xml_text_node(out, element_name, text); node 459 lib/common/output_html.c crm_xml_add(node, PCMK_XA_CLASS, class_name); node 463 lib/common/output_html.c crm_xml_add(node, PCMK_XA_ID, id); node 466 lib/common/output_html.c return node; node 486 lib/common/output_html.c xmlNode *node = pcmk__xe_create(parent, name); node 488 lib/common/output_html.c pcmk__xe_set_props(node, node 492 lib/common/output_html.c return node; node 158 lib/common/output_log.c xmlNodePtr node = NULL; node 164 lib/common/output_log.c node = pcmk__xe_create(NULL, name); node 165 lib/common/output_log.c pcmk__xe_set_content(node, "%s", buf); node 166 lib/common/output_log.c do_crm_log_xml(priv->log_level, name, node); node 167 lib/common/output_log.c free(node); node 279 lib/common/output_text.c text_list_data_t *node = NULL; node 284 lib/common/output_text.c node = g_queue_pop_tail(priv->parent_q); node 286 lib/common/output_text.c if (node->singular_noun != NULL && node->plural_noun != NULL) { node 287 lib/common/output_text.c if (node->len == 1) { node 288 lib/common/output_text.c pcmk__indented_printf(out, "%d %s found\n", node->len, node->singular_noun); node 290 lib/common/output_text.c pcmk__indented_printf(out, "%d %s found\n", node->len, node->plural_noun); node 294 lib/common/output_text.c free_list_data(node); node 177 lib/common/output_xml.c xmlNodePtr node = (xmlNodePtr) user_data; node 179 lib/common/output_xml.c node = pcmk__xe_create(node, PCMK_XE_ERROR); node 180 lib/common/output_xml.c pcmk__xe_set_content(node, "%s", str); node 186 lib/common/output_xml.c xmlNodePtr node; node 198 lib/common/output_xml.c GSList *node = priv->errors; node 204 lib/common/output_xml.c while (node != NULL) { node 205 lib/common/output_xml.c fprintf(stderr, "%s\n", (char *) node->data); node 206 lib/common/output_xml.c node = node->next; node 211 lib/common/output_xml.c node = pcmk__xe_create(priv->root, PCMK_XE_STATUS); node 212 lib/common/output_xml.c pcmk__xe_set_props(node, node 218 lib/common/output_xml.c xmlNodePtr errors_node = pcmk__xe_create(node, PCMK_XE_ERRORS); node 248 lib/common/output_xml.c xmlNodePtr node, child_node; node 255 lib/common/output_xml.c node = pcmk__output_xml_create_parent(out, PCMK_XE_COMMAND, node 260 lib/common/output_xml.c child_node = pcmk__xe_create(node, PCMK_XE_OUTPUT); node 266 lib/common/output_xml.c child_node = pcmk__xe_create(node, PCMK_XE_OUTPUT); node 410 lib/common/output_xml.c xmlNodePtr node; node 413 lib/common/output_xml.c node = g_queue_pop_tail(priv->parent_q); node 414 lib/common/output_xml.c buf = crm_strdup_printf("%lu", xmlChildElementCount(node)); node 415 lib/common/output_xml.c crm_xml_add(node, PCMK_XA_COUNT, buf); node 480 lib/common/output_xml.c xmlNodePtr node = NULL; node 485 lib/common/output_xml.c node = pcmk__output_create_xml_node(out, name, NULL); node 488 lib/common/output_xml.c pcmk__xe_set_propv(node, args); node 491 lib/common/output_xml.c pcmk__output_xml_push_parent(out, node); node 492 lib/common/output_xml.c return node; node 496 lib/common/output_xml.c pcmk__output_xml_add_node_copy(pcmk__output_t *out, xmlNodePtr node) { node 500 lib/common/output_xml.c pcmk__assert((out != NULL) && (out->priv != NULL) && (node != NULL)); node 511 lib/common/output_xml.c pcmk__xml_copy(parent, node); node 516 lib/common/output_xml.c xmlNodePtr node = NULL; node 527 lib/common/output_xml.c node = pcmk__xe_create(g_queue_peek_tail(priv->parent_q), name); node 529 lib/common/output_xml.c pcmk__xe_set_propv(node, args); node 532 lib/common/output_xml.c return node; node 537 lib/common/output_xml.c xmlNodePtr node = NULL; node 542 lib/common/output_xml.c node = pcmk__output_create_xml_node(out, name, NULL); node 543 lib/common/output_xml.c pcmk__xe_set_content(node, "%s", content); node 544 lib/common/output_xml.c return node; node 904 lib/common/patchset.c purge_v1_diff_markers(xmlNode *node) node 908 lib/common/patchset.c CRM_CHECK(node != NULL, return); node 910 lib/common/patchset.c pcmk__xe_remove_attr(node, PCMK__XA_CRM_DIFF_MARKER); node 911 lib/common/patchset.c for (child = pcmk__xml_first_child(node); child != NULL; node 1393 lib/common/patchset.c can_prune_leaf_v1(xmlNode *node) node 1398 lib/common/patchset.c CRM_CHECK(node != NULL, return false); node 1403 lib/common/patchset.c if (pcmk__strcase_any_of((const char *) node->name, node 1410 lib/common/patchset.c for (xmlAttrPtr a = pcmk__xe_first_attr(node); a != NULL; a = a->next) { node 1419 lib/common/patchset.c cIter = pcmk__xml_first_child(node); node 18 lib/common/tests/nodes/pcmk__xe_add_node_test.c xmlNode *node = NULL; node 22 lib/common/tests/nodes/pcmk__xe_add_node_test.c node = pcmk__xe_create(NULL, "test"); node 24 lib/common/tests/nodes/pcmk__xe_add_node_test.c pcmk__xe_add_node(node, NULL, 0); node 25 lib/common/tests/nodes/pcmk__xe_add_node_test.c assert_null(xmlHasProp(node, (pcmkXmlStr) PCMK__XA_ATTR_HOST)); node 26 lib/common/tests/nodes/pcmk__xe_add_node_test.c assert_null(xmlHasProp(node, (pcmkXmlStr) PCMK__XA_ATTR_HOST_ID)); node 28 lib/common/tests/nodes/pcmk__xe_add_node_test.c pcmk__xe_add_node(node, NULL, -100); node 29 lib/common/tests/nodes/pcmk__xe_add_node_test.c assert_null(xmlHasProp(node, (pcmkXmlStr) PCMK__XA_ATTR_HOST)); node 30 lib/common/tests/nodes/pcmk__xe_add_node_test.c assert_null(xmlHasProp(node, (pcmkXmlStr) PCMK__XA_ATTR_HOST_ID)); node 32 lib/common/tests/nodes/pcmk__xe_add_node_test.c free_xml(node); node 37 lib/common/tests/nodes/pcmk__xe_add_node_test.c xmlNode *node = pcmk__xe_create(NULL, "test"); node 40 lib/common/tests/nodes/pcmk__xe_add_node_test.c pcmk__xe_add_node(node, "somenode", 47); node 42 lib/common/tests/nodes/pcmk__xe_add_node_test.c crm_element_value(node, PCMK__XA_ATTR_HOST)); node 44 lib/common/tests/nodes/pcmk__xe_add_node_test.c crm_element_value_int(node, PCMK__XA_ATTR_HOST_ID, &i)); node 47 lib/common/tests/nodes/pcmk__xe_add_node_test.c free_xml(node); node 52 lib/common/tests/nodes/pcmk__xe_add_node_test.c xmlNode *node = pcmk__xe_create(NULL, "test"); node 56 lib/common/tests/nodes/pcmk__xe_add_node_test.c pcmk__xe_add_node(node, "nodeA", 1); node 57 lib/common/tests/nodes/pcmk__xe_add_node_test.c pcmk__xe_add_node(node, "nodeB", 2); node 58 lib/common/tests/nodes/pcmk__xe_add_node_test.c pcmk__xe_add_node(node, "nodeC", 3); node 60 lib/common/tests/nodes/pcmk__xe_add_node_test.c assert_string_equal("nodeC", crm_element_value(node, PCMK__XA_ATTR_HOST)); node 62 lib/common/tests/nodes/pcmk__xe_add_node_test.c crm_element_value_int(node, PCMK__XA_ATTR_HOST_ID, &i)); node 65 lib/common/tests/nodes/pcmk__xe_add_node_test.c free_xml(node); node 53 lib/common/tests/nodes/pcmk_foreach_active_resource_test.c pcmk_node_t node = { node 61 lib/common/tests/nodes/pcmk_foreach_active_resource_test.c pcmk_foreach_active_resource(&node, NULL, NULL); node 73 lib/common/tests/nodes/pcmk_foreach_active_resource_test.c pcmk_node_t node = { node 78 lib/common/tests/nodes/pcmk_foreach_active_resource_test.c pcmk_foreach_active_resource(&node, fn, NULL); node 88 lib/common/tests/nodes/pcmk_foreach_active_resource_test.c pcmk_node_t node = { node 95 lib/common/tests/nodes/pcmk_foreach_active_resource_test.c pcmk_foreach_active_resource(&node, fn, NULL); node 107 lib/common/tests/nodes/pcmk_foreach_active_resource_test.c pcmk_node_t node = { node 116 lib/common/tests/nodes/pcmk_foreach_active_resource_test.c pcmk_foreach_active_resource(&node, fn, NULL); node 128 lib/common/tests/nodes/pcmk_foreach_active_resource_test.c pcmk_node_t node = { node 138 lib/common/tests/nodes/pcmk_foreach_active_resource_test.c pcmk_foreach_active_resource(&node, fn, NULL); node 31 lib/common/tests/nodes/pcmk_node_is_clean_test.c pcmk_node_t node = { node 35 lib/common/tests/nodes/pcmk_node_is_clean_test.c assert_true(pcmk_node_is_clean(&node)); node 44 lib/common/tests/nodes/pcmk_node_is_clean_test.c pcmk_node_t node = { node 48 lib/common/tests/nodes/pcmk_node_is_clean_test.c assert_false(pcmk_node_is_clean(&node)); node 31 lib/common/tests/nodes/pcmk_node_is_in_maintenance_test.c pcmk_node_t node = { node 35 lib/common/tests/nodes/pcmk_node_is_in_maintenance_test.c assert_true(pcmk_node_is_in_maintenance(&node)); node 44 lib/common/tests/nodes/pcmk_node_is_in_maintenance_test.c pcmk_node_t node = { node 48 lib/common/tests/nodes/pcmk_node_is_in_maintenance_test.c assert_false(pcmk_node_is_in_maintenance(&node)); node 31 lib/common/tests/nodes/pcmk_node_is_online_test.c pcmk_node_t node = { node 35 lib/common/tests/nodes/pcmk_node_is_online_test.c assert_true(pcmk_node_is_online(&node)); node 44 lib/common/tests/nodes/pcmk_node_is_online_test.c pcmk_node_t node = { node 48 lib/common/tests/nodes/pcmk_node_is_online_test.c assert_false(pcmk_node_is_online(&node)); node 31 lib/common/tests/nodes/pcmk_node_is_pending_test.c pcmk_node_t node = { node 35 lib/common/tests/nodes/pcmk_node_is_pending_test.c assert_true(pcmk_node_is_pending(&node)); node 44 lib/common/tests/nodes/pcmk_node_is_pending_test.c pcmk_node_t node = { node 48 lib/common/tests/nodes/pcmk_node_is_pending_test.c assert_false(pcmk_node_is_pending(&node)); node 31 lib/common/tests/nodes/pcmk_node_is_shutting_down_test.c pcmk_node_t node = { node 35 lib/common/tests/nodes/pcmk_node_is_shutting_down_test.c assert_true(pcmk_node_is_shutting_down(&node)); node 44 lib/common/tests/nodes/pcmk_node_is_shutting_down_test.c pcmk_node_t node = { node 48 lib/common/tests/nodes/pcmk_node_is_shutting_down_test.c assert_false(pcmk_node_is_shutting_down(&node)); node 18 lib/common/tests/nvpair/pcmk__xe_attr_is_true_test.c xmlNode *node = pcmk__xml_parse("<node/>"); node 22 lib/common/tests/nvpair/pcmk__xe_attr_is_true_test.c assert_false(pcmk__xe_attr_is_true(node, NULL)); node 24 lib/common/tests/nvpair/pcmk__xe_attr_is_true_test.c free_xml(node); node 30 lib/common/tests/nvpair/pcmk__xe_attr_is_true_test.c xmlNode *node = pcmk__xml_parse("<node a=\"true\" b=\"false\"/>"); node 32 lib/common/tests/nvpair/pcmk__xe_attr_is_true_test.c assert_false(pcmk__xe_attr_is_true(node, "c")); node 33 lib/common/tests/nvpair/pcmk__xe_attr_is_true_test.c free_xml(node); node 39 lib/common/tests/nvpair/pcmk__xe_attr_is_true_test.c xmlNode *node = pcmk__xml_parse("<node a=\"true\" b=\"false\"/>"); node 41 lib/common/tests/nvpair/pcmk__xe_attr_is_true_test.c assert_true(pcmk__xe_attr_is_true(node, "a")); node 42 lib/common/tests/nvpair/pcmk__xe_attr_is_true_test.c assert_false(pcmk__xe_attr_is_true(node, "b")); node 44 lib/common/tests/nvpair/pcmk__xe_attr_is_true_test.c free_xml(node); node 18 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c xmlNode *node = pcmk__xml_parse("<node/>"); node 23 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c assert_int_equal(pcmk__xe_get_bool_attr(node, NULL, &value), EINVAL); node 24 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c assert_int_equal(pcmk__xe_get_bool_attr(node, "whatever", NULL), EINVAL); node 26 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c free_xml(node); node 32 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c xmlNode *node = pcmk__xml_parse("<node a=\"true\" b=\"false\"/>"); node 35 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c assert_int_equal(pcmk__xe_get_bool_attr(node, "c", &value), ENODATA); node 36 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c free_xml(node); node 42 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c xmlNode *node = pcmk__xml_parse("<node a=\"true\" b=\"false\" " node 47 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c assert_int_equal(pcmk__xe_get_bool_attr(node, "a", &value), pcmk_rc_ok); node 50 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c assert_int_equal(pcmk__xe_get_bool_attr(node, "b", &value), pcmk_rc_ok); node 52 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c assert_int_equal(pcmk__xe_get_bool_attr(node, "c", &value), pcmk_rc_bad_input); node 54 lib/common/tests/nvpair/pcmk__xe_get_bool_attr_test.c free_xml(node); node 19 lib/common/tests/nvpair/pcmk__xe_set_bool_attr_test.c xmlNode *node = pcmk__xml_parse("<node/>"); node 21 lib/common/tests/nvpair/pcmk__xe_set_bool_attr_test.c pcmk__xe_set_bool_attr(node, "a", true); node 22 lib/common/tests/nvpair/pcmk__xe_set_bool_attr_test.c pcmk__xe_set_bool_attr(node, "b", false); node 24 lib/common/tests/nvpair/pcmk__xe_set_bool_attr_test.c assert_string_equal(crm_element_value(node, "a"), PCMK_VALUE_TRUE); node 25 lib/common/tests/nvpair/pcmk__xe_set_bool_attr_test.c assert_string_equal(crm_element_value(node, "b"), PCMK_VALUE_FALSE); node 27 lib/common/tests/nvpair/pcmk__xe_set_bool_attr_test.c free_xml(node); node 17 lib/common/tests/probes/pcmk_xe_is_probe_test.c xmlNode *node = NULL; node 21 lib/common/tests/probes/pcmk_xe_is_probe_test.c node = pcmk__xml_parse("<" PCMK__XE_LRM_RSC_OP "/>"); node 22 lib/common/tests/probes/pcmk_xe_is_probe_test.c assert_false(pcmk_xe_is_probe(node)); node 23 lib/common/tests/probes/pcmk_xe_is_probe_test.c free_xml(node); node 25 lib/common/tests/probes/pcmk_xe_is_probe_test.c node = pcmk__xml_parse("<" PCMK__XE_LRM_RSC_OP " " node 28 lib/common/tests/probes/pcmk_xe_is_probe_test.c assert_false(pcmk_xe_is_probe(node)); node 29 lib/common/tests/probes/pcmk_xe_is_probe_test.c free_xml(node); node 31 lib/common/tests/probes/pcmk_xe_is_probe_test.c node = pcmk__xml_parse("<" PCMK__XE_LRM_RSC_OP " " node 35 lib/common/tests/probes/pcmk_xe_is_probe_test.c assert_false(pcmk_xe_is_probe(node)); node 36 lib/common/tests/probes/pcmk_xe_is_probe_test.c free_xml(node); node 38 lib/common/tests/probes/pcmk_xe_is_probe_test.c node = pcmk__xml_parse("<" PCMK__XE_LRM_RSC_OP " " node 42 lib/common/tests/probes/pcmk_xe_is_probe_test.c assert_false(pcmk_xe_is_probe(node)); node 43 lib/common/tests/probes/pcmk_xe_is_probe_test.c free_xml(node); node 45 lib/common/tests/probes/pcmk_xe_is_probe_test.c node = pcmk__xml_parse("<" PCMK__XE_LRM_RSC_OP " " node 49 lib/common/tests/probes/pcmk_xe_is_probe_test.c assert_true(pcmk_xe_is_probe(node)); node 50 lib/common/tests/probes/pcmk_xe_is_probe_test.c free_xml(node); node 16 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c xmlNode *node = NULL; node 22 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse("<" PCMK__XE_LRM_RSC_OP " " node 26 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 27 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 32 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c xmlNode *node = NULL; node 35 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse("<" PCMK__XE_LRM_RSC_OP " " node 39 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 40 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 48 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 49 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 51 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 56 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c xmlNode *node = NULL; node 66 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 67 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 69 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 77 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 78 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_true(pcmk_xe_mask_probe_failure(node)); node 80 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 89 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 90 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 92 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 100 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 101 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_true(pcmk_xe_mask_probe_failure(node)); node 103 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 111 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 112 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_true(pcmk_xe_mask_probe_failure(node)); node 114 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 122 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 123 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 125 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 133 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 134 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 136 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 145 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 146 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_true(pcmk_xe_mask_probe_failure(node)); node 148 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 156 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 157 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_true(pcmk_xe_mask_probe_failure(node)); node 159 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 168 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 169 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 171 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 179 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 180 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_true(pcmk_xe_mask_probe_failure(node)); node 182 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 190 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 191 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_true(pcmk_xe_mask_probe_failure(node)); node 193 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 201 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 202 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 204 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 212 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 213 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 215 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 224 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 225 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 227 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 235 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 236 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_true(pcmk_xe_mask_probe_failure(node)); node 238 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 246 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 247 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_true(pcmk_xe_mask_probe_failure(node)); node 249 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 257 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 258 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 260 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 268 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 269 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 271 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 280 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 281 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 283 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 291 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 292 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_true(pcmk_xe_mask_probe_failure(node)); node 294 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 302 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 303 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_true(pcmk_xe_mask_probe_failure(node)); node 305 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 313 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 314 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 316 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 324 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c node = pcmk__xml_parse(s); node 325 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c assert_false(pcmk_xe_mask_probe_failure(node)); node 327 lib/common/tests/probes/pcmk_xe_mask_probe_failure_test.c free_xml(node); node 24 lib/common/tests/xml/pcmk__xc_create_test.c xmlNode *node = NULL; node 31 lib/common/tests/xml/pcmk__xc_create_test.c node = pcmk__xc_create(doc, content); node 32 lib/common/tests/xml/pcmk__xc_create_test.c assert_non_null(node); node 33 lib/common/tests/xml/pcmk__xc_create_test.c assert_int_equal(node->type, XML_COMMENT_NODE); node 34 lib/common/tests/xml/pcmk__xc_create_test.c assert_ptr_equal(node->doc, doc); node 37 lib/common/tests/xml/pcmk__xc_create_test.c assert_null(node->content); node 39 lib/common/tests/xml/pcmk__xc_create_test.c assert_non_null(node->content); node 40 lib/common/tests/xml/pcmk__xc_create_test.c assert_string_equal((const char *) node->content, content); node 43 lib/common/tests/xml/pcmk__xc_create_test.c nodepriv = node->_private; node 51 lib/common/tests/xml/pcmk__xc_create_test.c free_xml(node); node 225 lib/common/xml.c new_private_data(xmlNode *node, void *user_data) node 227 lib/common/xml.c CRM_CHECK(node != NULL, return true); node 229 lib/common/xml.c if (node->_private != NULL) { node 233 lib/common/xml.c switch (node->type) { node 240 lib/common/xml.c node->_private = docpriv; node 253 lib/common/xml.c node->_private = nodepriv; node 256 lib/common/xml.c for (xmlAttr *iter = pcmk__xe_first_attr(node); iter != NULL; node 270 lib/common/xml.c CRM_LOG_ASSERT(node->type == XML_ELEMENT_NODE); node 274 lib/common/xml.c if (pcmk__tracking_xml_changes(node, false)) { node 275 lib/common/xml.c pcmk__mark_xml_node_dirty(node); node 292 lib/common/xml.c free_private_data(xmlNode *node, void *user_data) node 294 lib/common/xml.c CRM_CHECK(node != NULL, return true); node 296 lib/common/xml.c if (node->_private == NULL) { node 300 lib/common/xml.c if (node->type == XML_DOCUMENT_NODE) { node 301 lib/common/xml.c reset_xml_private_data((xml_doc_private_t *) node->_private); node 304 lib/common/xml.c xml_node_private_t *nodepriv = node->_private; node 308 lib/common/xml.c for (xmlAttr *iter = pcmk__xe_first_attr(node); iter != NULL; node 314 lib/common/xml.c free(node->_private); node 315 lib/common/xml.c node->_private = NULL; node 772 lib/common/xml.c xmlNode *node = NULL; node 779 lib/common/xml.c node = xmlNewDocRawNode(doc, NULL, (pcmkXmlStr) name, NULL); node 780 lib/common/xml.c pcmk__mem_assert(node); node 782 lib/common/xml.c xmlDocSetRootElement(doc, node); node 785 lib/common/xml.c node = xmlNewChild(parent, NULL, (pcmkXmlStr) name, NULL); node 786 lib/common/xml.c pcmk__mem_assert(node); node 789 lib/common/xml.c pcmk__xml_new_private_data(node); node 790 lib/common/xml.c return node; node 840 lib/common/xml.c pcmk__xe_set_content(xmlNode *node, const char *format, ...) node 842 lib/common/xml.c if (node != NULL) { node 850 lib/common/xml.c CRM_CHECK((node->children == NULL) node 851 lib/common/xml.c || (node->children->type == XML_TEXT_NODE), node 874 lib/common/xml.c xmlNodeSetContent(node, (pcmkXmlStr) content); node 2130 lib/common/xml.c pcmk__xe_next_same(const xmlNode *node) node 2132 lib/common/xml.c for (xmlNode *match = pcmk__xe_next(node); match != NULL; node 2135 lib/common/xml.c if (pcmk__xe_is(match, (const char *) node->name)) { node 2279 lib/common/xml.c pcmk__xe_set_propv(xmlNodePtr node, va_list pairs) node 2291 lib/common/xml.c crm_xml_add(node, name, value); node 2297 lib/common/xml.c pcmk__xe_set_props(xmlNodePtr node, ...) node 2300 lib/common/xml.c va_start(pairs, node); node 2301 lib/common/xml.c pcmk__xe_set_propv(node, pairs); node 2314 lib/common/xml.c for (xmlNode *node = children; node != NULL; node = node->next) { node 2315 lib/common/xml.c if ((node->type == XML_ELEMENT_NODE) node 2317 lib/common/xml.c || pcmk__xe_is(node, child_element_name))) { node 2318 lib/common/xml.c int rc = handler(node, userdata); node 2348 lib/common/xml.c getDocPtr(xmlNode *node) node 2352 lib/common/xml.c CRM_CHECK(node != NULL, return NULL); node 2354 lib/common/xml.c doc = node->doc; node 2357 lib/common/xml.c xmlDocSetRootElement(doc, node); node 2496 lib/common/xml.c xmlNode *node = NULL; node 2503 lib/common/xml.c node = xmlNewDocRawNode(doc, NULL, (pcmkXmlStr) name, NULL); node 2504 lib/common/xml.c if (node == NULL) { node 2508 lib/common/xml.c xmlDocSetRootElement(doc, node); node 2511 lib/common/xml.c node = xmlNewChild(parent, NULL, (pcmkXmlStr) name, NULL); node 2512 lib/common/xml.c if (node == NULL) { node 2516 lib/common/xml.c pcmk__xml_new_private_data(node); node 2517 lib/common/xml.c return node; node 2524 lib/common/xml.c xmlNode *node = pcmk__xe_create(parent, name); node 2526 lib/common/xml.c pcmk__xe_set_content(node, "%s", content); node 2527 lib/common/xml.c return node; node 2534 lib/common/xml.c xmlNode *node = pcmk__html_create(parent, element_name, id, class_name); node 2536 lib/common/xml.c pcmk__xe_set_content(node, "%s", text); node 2537 lib/common/xml.c return node; node 30 lib/common/xml_comment.c xmlNode *node = NULL; node 35 lib/common/xml_comment.c node = xmlNewDocComment(doc, (pcmkXmlStr) content); node 36 lib/common/xml_comment.c pcmk__mem_assert(node); node 37 lib/common/xml_comment.c pcmk__xml_new_private_data(node); node 38 lib/common/xml_comment.c return node; node 290 lib/common/xpath.c pcmk__xpath_node_id(const char *xpath, const char *node) node 297 lib/common/xpath.c if (node == NULL || xpath == NULL) { node 301 lib/common/xpath.c patt = crm_strdup_printf("/%s[@" PCMK_XA_ID "=", node); node 172 lib/fencing/st_client.c stonith__watchdog_fencing_enabled_for_node_api(stonith_t *st, const char *node) node 207 lib/fencing/st_client.c rv = pcmk__str_in_list(node, targets, pcmk__str_casei); node 226 lib/fencing/st_client.c node, rv?"":"not "); node 231 lib/fencing/st_client.c stonith__watchdog_fencing_enabled_for_node(const char *node) node 233 lib/fencing/st_client.c return stonith__watchdog_fencing_enabled_for_node_api(NULL, node); node 365 lib/fencing/st_client.c const char *node, const char *pattern, node 371 lib/fencing/st_client.c CRM_CHECK(node || pattern || (attr && value), return -EINVAL); node 376 lib/fencing/st_client.c if (node) { node 377 lib/fencing/st_client.c crm_xml_add(data, PCMK_XA_TARGET, node); node 395 lib/fencing/st_client.c stonith_api_remove_level(stonith_t * st, int options, const char *node, int level) node 397 lib/fencing/st_client.c return stonith_api_remove_level_full(st, options, node, node 417 lib/fencing/st_client.c create_level_registration_xml(const char *node, const char *pattern, node 424 lib/fencing/st_client.c CRM_CHECK(node || pattern || (attr && value), return NULL); node 432 lib/fencing/st_client.c if (node) { node 433 lib/fencing/st_client.c crm_xml_add(data, PCMK_XA_TARGET, node); node 455 lib/fencing/st_client.c stonith_api_register_level_full(stonith_t *st, int options, const char *node, node 461 lib/fencing/st_client.c xmlNode *data = create_level_registration_xml(node, pattern, attr, value, node 472 lib/fencing/st_client.c stonith_api_register_level(stonith_t * st, int options, const char *node, int level, node 475 lib/fencing/st_client.c return stonith_api_register_level_full(st, options, node, NULL, NULL, NULL, node 668 lib/fencing/st_client.c stonith_api_fence_with_delay(stonith_t * stonith, int call_options, const char *node, node 675 lib/fencing/st_client.c crm_xml_add(data, PCMK__XA_ST_TARGET, node); node 688 lib/fencing/st_client.c stonith_api_fence(stonith_t * stonith, int call_options, const char *node, const char *action, node 691 lib/fencing/st_client.c return stonith_api_fence_with_delay(stonith, call_options, node, action, node 704 lib/fencing/st_client.c stonith_api_history(stonith_t * stonith, int call_options, const char *node, node 714 lib/fencing/st_client.c if (node) { node 716 lib/fencing/st_client.c crm_xml_add(data, PCMK__XA_ST_TARGET, node); node 719 lib/fencing/st_client.c stonith__set_call_options(call_options, node, st_opt_sync_call); node 459 lib/fencing/st_output.c xmlNodePtr node = NULL; node 461 lib/fencing/st_output.c node = pcmk__output_create_xml_node(out, PCMK_XE_FENCE_EVENT, node 470 lib/fencing/st_output.c pcmk__xe_set_props(node, node 477 lib/fencing/st_output.c crm_xml_add(node, PCMK_XA_STATUS, PCMK_VALUE_SUCCESS); node 482 lib/fencing/st_output.c pcmk__xe_set_props(node, node 492 lib/fencing/st_output.c crm_xml_add(node, PCMK_XA_DELEGATE, event->delegate); node 499 lib/fencing/st_output.c crm_xml_add(node, PCMK_XA_COMPLETED, time_s); node 565 lib/fencing/st_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, PCMK_XE_VALIDATE, node 571 lib/fencing/st_output.c crm_xml_add(node, PCMK_XA_DEVICE, device); node 574 lib/fencing/st_output.c pcmk__output_xml_push_parent(out, node); node 238 lib/lrmd/lrmd_alerts.c const char *node, uint32_t nodeid, node 248 lib/lrmd/lrmd_alerts.c params = alert_key2param(params, PCMK__alert_key_node, node); node 276 lib/lrmd/lrmd_alerts.c const char *node, uint32_t nodeid, const char *state) node 285 lib/lrmd/lrmd_alerts.c params = alert_key2param(params, PCMK__alert_key_node, node); node 346 lib/lrmd/lrmd_alerts.c const char *node, const lrmd_event_data_t *op) node 368 lib/lrmd/lrmd_alerts.c params = alert_key2param(params, PCMK__alert_key_node, node); node 77 lib/lrmd/lrmd_output.c xmlNodePtr node = NULL; node 79 lib/lrmd/lrmd_output.c node = pcmk__output_xml_create_parent(out, PCMK_XE_AGENTS, node 84 lib/lrmd/lrmd_output.c crm_xml_add(node, PCMK_XA_PROVIDER, provider); node 114 lib/lrmd/lrmd_output.c xmlNodePtr node = pcmk__output_xml_create_parent(out, PCMK_XE_PROVIDERS, node 119 lib/lrmd/lrmd_output.c crm_xml_add(node, PCMK_XA_AGENT, agent_spec); node 110 lib/pacemaker/libpacemaker_private.h bool (*create_probe)(pcmk_resource_t *rsc, pcmk_node_t *node); node 260 lib/pacemaker/libpacemaker_private.h uint32_t (*action_flags)(pcmk_action_t *action, const pcmk_node_t *node); node 287 lib/pacemaker/libpacemaker_private.h const pcmk_node_t *node, uint32_t flags, node 355 lib/pacemaker/libpacemaker_private.h const pcmk_node_t *node, uint32_t flags, node 366 lib/pacemaker/libpacemaker_private.h const pcmk_node_t *node); node 369 lib/pacemaker/libpacemaker_private.h pcmk_action_t *pcmk__new_shutdown_action(pcmk_node_t *node); node 381 lib/pacemaker/libpacemaker_private.h bool pcmk__check_action_config(pcmk_resource_t *rsc, pcmk_node_t *node, node 396 lib/pacemaker/libpacemaker_private.h const pcmk_node_t *node, const char *reason); node 400 lib/pacemaker/libpacemaker_private.h guint interval_ms, pcmk_node_t *node); node 427 lib/pacemaker/libpacemaker_private.h void pcmk__order_vs_unfence(const pcmk_resource_t *rsc, pcmk_node_t *node, node 432 lib/pacemaker/libpacemaker_private.h void pcmk__fence_guest(pcmk_node_t *node); node 435 lib/pacemaker/libpacemaker_private.h bool pcmk__node_unfenced(const pcmk_node_t *node); node 506 lib/pacemaker/libpacemaker_private.h pcmk__colocation_node_attr(const pcmk_node_t *node, const char *attr, node 516 lib/pacemaker/libpacemaker_private.h if (pcmk__is_bundle_node(node) && pcmk__is_bundled(rsc) node 525 lib/pacemaker/libpacemaker_private.h return pcmk__node_attr(node, attr, target, pcmk__rsc_node_assigned); node 618 lib/pacemaker/libpacemaker_private.h void pcmk__order_stops_before_shutdown(pcmk_node_t *node, node 698 lib/pacemaker/libpacemaker_private.h bool pcmk__is_failed_remote_node(const pcmk_node_t *node); node 705 lib/pacemaker/libpacemaker_private.h const pcmk_node_t *node); node 733 lib/pacemaker/libpacemaker_private.h const pcmk_node_t *node); node 752 lib/pacemaker/libpacemaker_private.h void pcmk__schedule_cleanup(pcmk_resource_t *rsc, const pcmk_node_t *node, node 809 lib/pacemaker/libpacemaker_private.h const pcmk_node_t *node); node 814 lib/pacemaker/libpacemaker_private.h const pcmk_node_t *node, node 843 lib/pacemaker/libpacemaker_private.h bool pcmk__clone_create_probe(pcmk_resource_t *rsc, pcmk_node_t *node); node 870 lib/pacemaker/libpacemaker_private.h const pcmk_node_t *node); node 896 lib/pacemaker/libpacemaker_private.h bool pcmk__bundle_create_probe(pcmk_resource_t *rsc, pcmk_node_t *node); node 923 lib/pacemaker/libpacemaker_private.h const pcmk_node_t *node); node 951 lib/pacemaker/libpacemaker_private.h const pcmk_node_t *node, enum rsc_role_e role, node 963 lib/pacemaker/libpacemaker_private.h const pcmk_node_t *node, node 971 lib/pacemaker/libpacemaker_private.h const pcmk_node_t *node); node 977 lib/pacemaker/libpacemaker_private.h xmlNode *pcmk__inject_node(cib_t *cib_conn, const char *node, const char *uuid); node 980 lib/pacemaker/libpacemaker_private.h xmlNode *pcmk__inject_node_state_change(cib_t *cib_conn, const char *node, node 1004 lib/pacemaker/libpacemaker_private.h bool pcmk__node_available(const pcmk_node_t *node, bool consider_score, node 1027 lib/pacemaker/libpacemaker_private.h const pcmk_node_t *node); node 1036 lib/pacemaker/libpacemaker_private.h bool pcmk__rsc_agent_changed(pcmk_resource_t *rsc, pcmk_node_t *node, node 1055 lib/pacemaker/libpacemaker_private.h bool pcmk__assign_resource(pcmk_resource_t *rsc, pcmk_node_t *node, bool force, node 1062 lib/pacemaker/libpacemaker_private.h bool pcmk__threshold_reached(pcmk_resource_t *rsc, const pcmk_node_t *node, node 1078 lib/pacemaker/libpacemaker_private.h bool pcmk__probe_rsc_on_node(pcmk_resource_t *rsc, pcmk_node_t *node); node 1084 lib/pacemaker/libpacemaker_private.h bool pcmk__probe_resource_list(GList *rscs, pcmk_node_t *node); node 42 lib/pacemaker/pcmk_fence.c const char *node = NULL; node 61 lib/pacemaker/pcmk_fence.c node = target; node 66 lib/pacemaker/pcmk_fence.c rc = st->cmds->register_level_full(st, st_opts, node, pattern, node 70 lib/pacemaker/pcmk_fence.c rc = st->cmds->remove_level_full(st, st_opts, node, pattern, node 35 lib/pacemaker/pcmk_graph_producer.c (((a)->node == NULL)? "no node" : (a)->node->details->uname) node 63 lib/pacemaker/pcmk_graph_producer.c add_node_to_xml(const pcmk_node_t *node, void *xml) node 65 lib/pacemaker/pcmk_graph_producer.c add_node_to_xml_by_id(node->details->id, (xmlNode *) xml); node 89 lib/pacemaker/pcmk_graph_producer.c const pcmk_node_t *node = iter->data; node 91 lib/pacemaker/pcmk_graph_producer.c if (pcmk__is_pacemaker_remote_node(node) && node 92 lib/pacemaker/pcmk_graph_producer.c (node->details->maintenance != node->details->remote_maintenance)) { node 95 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(add_node_to_xml_by_id(node->details->id, node 98 lib/pacemaker/pcmk_graph_producer.c (node->details->maintenance? "1" : "0")); node 139 lib/pacemaker/pcmk_graph_producer.c CRM_CHECK((xml != NULL) && (action != NULL) && (action->node != NULL), node 146 lib/pacemaker/pcmk_graph_producer.c add_node_to_xml_by_id(action->node->details->id, downed); node 157 lib/pacemaker/pcmk_graph_producer.c add_node_to_xml_by_id(action->node->details->id, downed); node 158 lib/pacemaker/pcmk_graph_producer.c pe_foreach_guest_node(action->node->details->data_set, node 159 lib/pacemaker/pcmk_graph_producer.c action->node, add_node_to_xml, downed); node 230 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(xml, PCMK__META_ON_NODE, action->node->details->uname); node 231 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(xml, PCMK__META_ON_NODE_UUID, action->node->details->id); node 342 lib/pacemaker/pcmk_graph_producer.c if ((action->rsc != NULL) && (action->node != NULL)) { node 344 lib/pacemaker/pcmk_graph_producer.c GHashTable *params = pe_rsc_params(action->rsc, action->node, node 371 lib/pacemaker/pcmk_graph_producer.c && (action->node != NULL)) { node 378 lib/pacemaker/pcmk_graph_producer.c g_hash_table_foreach(action->node->details->attrs, hash2metafield, node 460 lib/pacemaker/pcmk_graph_producer.c if (needs_node_info && (action->node != NULL)) { node 463 lib/pacemaker/pcmk_graph_producer.c action->node->details->uname); node 465 lib/pacemaker/pcmk_graph_producer.c action->node->details->id); node 483 lib/pacemaker/pcmk_graph_producer.c if (needs_node_info && (action->node != NULL)) { node 547 lib/pacemaker/pcmk_graph_producer.c if (action->node == NULL) { node 558 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, pcmk__node_name(action->node)); node 560 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__is_guest_or_bundle_node(action->node) node 561 lib/pacemaker/pcmk_graph_producer.c && !action->node->details->remote_requires_reset) { node 564 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, pcmk__node_name(action->node)); node 566 lib/pacemaker/pcmk_graph_producer.c } else if (!action->node->details->online) { node 573 lib/pacemaker/pcmk_graph_producer.c } else if (action->node->details->unclean) { node 668 lib/pacemaker/pcmk_graph_producer.c pcmk_node_t *input_node = input->action->node; node 691 lib/pacemaker/pcmk_graph_producer.c } else if (!pcmk__same_node(input_node, action->node)) { node 696 lib/pacemaker/pcmk_graph_producer.c (action->node? action->node->details->uname : "<none>"), node 711 lib/pacemaker/pcmk_graph_producer.c if (input->action->node && action->node node 712 lib/pacemaker/pcmk_graph_producer.c && !pcmk__same_node(input->action->node, action->node)) { node 717 lib/pacemaker/pcmk_graph_producer.c pcmk__node_name(action->node), node 718 lib/pacemaker/pcmk_graph_producer.c pcmk__node_name(input->action->node)); node 783 lib/pacemaker/pcmk_graph_producer.c input->action->node? input->action->node->details->uname : "", node 785 lib/pacemaker/pcmk_graph_producer.c action->node? action->node->details->uname : "", node 798 lib/pacemaker/pcmk_graph_producer.c action->node? action->node->details->uname : "", node 800 lib/pacemaker/pcmk_graph_producer.c init_action->node? init_action->node->details->uname : ""); node 809 lib/pacemaker/pcmk_graph_producer.c action->node? action->node->details->uname : "", node 811 lib/pacemaker/pcmk_graph_producer.c input->action->node? input->action->node->details->uname : "", node 814 lib/pacemaker/pcmk_graph_producer.c init_action->node? init_action->node->details->uname : ""); node 833 lib/pacemaker/pcmk_graph_producer.c input->action->node? input->action->node->details->uname : "", node 835 lib/pacemaker/pcmk_graph_producer.c action->node? action->node->details->uname : "", node 914 lib/pacemaker/pcmk_graph_producer.c ((action->node == NULL)? "" : " on "), node 915 lib/pacemaker/pcmk_graph_producer.c ((action->node == NULL)? "" : action->node->details->uname)); node 1073 lib/pacemaker/pcmk_graph_producer.c && (action->node != NULL) node 1074 lib/pacemaker/pcmk_graph_producer.c && action->node->details->shutdown node 1091 lib/pacemaker/pcmk_graph_producer.c action->node->details->unclean? "fence" : "shut down", node 1092 lib/pacemaker/pcmk_graph_producer.c pcmk__node_name(action->node), action->rsc->id, node 146 lib/pacemaker/pcmk_injections.c create_node_entry(cib_t *cib_conn, const char *node) node 149 lib/pacemaker/pcmk_injections.c char *xpath = crm_strdup_printf(XPATH_NODE_CONFIG, node); node 157 lib/pacemaker/pcmk_injections.c crm_xml_add(cib_object, PCMK_XA_ID, node); // Use node name as ID node 158 lib/pacemaker/pcmk_injections.c crm_xml_add(cib_object, PCMK_XA_UNAME, node); node 246 lib/pacemaker/pcmk_injections.c pcmk__inject_node(cib_t *cib_conn, const char *node, const char *uuid) node 250 lib/pacemaker/pcmk_injections.c char *xpath = crm_strdup_printf(XPATH_NODE_STATE, node); node 255 lib/pacemaker/pcmk_injections.c create_node_entry(cib_conn, node); node 271 lib/pacemaker/pcmk_injections.c query_node_uuid(cib_conn, node, &found_uuid, NULL); node 288 lib/pacemaker/pcmk_injections.c "state entries found for ID %s", node, found_uuid); node 294 lib/pacemaker/pcmk_injections.c crm_xml_add(cib_object, PCMK_XA_UNAME, node); node 308 lib/pacemaker/pcmk_injections.c crm_xml_add(cib_object, PCMK_XA_UNAME, node); node 315 lib/pacemaker/pcmk_injections.c crm_trace("Injecting node state for %s (rc=%d)", node, rc); node 343 lib/pacemaker/pcmk_injections.c pcmk__inject_node_state_change(cib_t *cib_conn, const char *node, bool up) node 345 lib/pacemaker/pcmk_injections.c xmlNode *cib_node = pcmk__inject_node(cib_conn, node, NULL); node 379 lib/pacemaker/pcmk_injections.c const char *node = crm_element_value(cib_node, PCMK_XA_UNAME); node 380 lib/pacemaker/pcmk_injections.c char *xpath = crm_strdup_printf(XPATH_RSC_HISTORY, node, resource); node 559 lib/pacemaker/pcmk_injections.c char *node = NULL; node 576 lib/pacemaker/pcmk_injections.c node = pcmk__assert_alloc(1, strlen(spec) + 1); node 577 lib/pacemaker/pcmk_injections.c rc = sscanf(spec, "%[^@]@%[^=]=%d", key, node, &outcome); node 596 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node(cib, node, NULL); node 620 lib/pacemaker/pcmk_injections.c free(node); node 662 lib/pacemaker/pcmk_injections.c const char *node = (const char *) iter->data; node 664 lib/pacemaker/pcmk_injections.c out->message(out, "inject-modify-node", "Online", node); node 666 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node_state_change(cib, node, true); node 676 lib/pacemaker/pcmk_injections.c const char *node = (const char *) iter->data; node 679 lib/pacemaker/pcmk_injections.c out->message(out, "inject-modify-node", "Offline", node); node 681 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node_state_change(cib, node, false); node 692 lib/pacemaker/pcmk_injections.c node); node 700 lib/pacemaker/pcmk_injections.c node); node 707 lib/pacemaker/pcmk_injections.c const char *node = (const char *) iter->data; node 709 lib/pacemaker/pcmk_injections.c out->message(out, "inject-modify-node", "Failing", node); node 711 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node_state_change(cib, node, true); node 81 lib/pacemaker/pcmk_output.c pcmk_node_t *node = (pcmk_node_t *) lpc2->data; node 88 lib/pacemaker/pcmk_output.c PCMK_XA_NODE, node->details->uname, node 92 lib/pacemaker/pcmk_output.c pcmk_readable_score(node->weight), node 551 lib/pacemaker/pcmk_output.c pcmk_node_t *node = (pcmk_node_t *) lpc2->data; node 555 lib/pacemaker/pcmk_output.c pcmk__node_name(node), node 556 lib/pacemaker/pcmk_output.c pcmk_readable_score(node->weight), cons->id, node 962 lib/pacemaker/pcmk_output.c const pcmk_node_t *node = va_arg(args, const pcmk_node_t *); node 983 lib/pacemaker/pcmk_output.c if ((node != NULL) && (node->details->uname != NULL)) { node 984 lib/pacemaker/pcmk_output.c node_desc = node->details->uname; node 1030 lib/pacemaker/pcmk_output.c const pcmk_node_t *node = va_arg(args, const pcmk_node_t *); node 1041 lib/pacemaker/pcmk_output.c pcmk__s(node->details->uname, ""), node 1228 lib/pacemaker/pcmk_output.c pcmk_node_t *node = iter->data; node 1232 lib/pacemaker/pcmk_output.c possible_matches = find_actions(rsc->actions, key, node); node 1247 lib/pacemaker/pcmk_output.c if (out->message(out, "rsc-action-item", "Stop", rsc, node, NULL, node 1390 lib/pacemaker/pcmk_output.c const char *node = va_arg(args, const char *); node 1400 lib/pacemaker/pcmk_output.c task, pcmk__xe_id(rsc), node); node 1402 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Cluster action: %s on %s", task, node); node 1413 lib/pacemaker/pcmk_output.c const char *node = va_arg(args, const char *); node 1425 lib/pacemaker/pcmk_output.c PCMK_XA_NODE, node, node 1578 lib/pacemaker/pcmk_output.c xmlNodePtr node = NULL; node 1584 lib/pacemaker/pcmk_output.c node = pcmk__output_xml_create_parent(out, PCMK_XE_MODIFICATIONS, NULL); node 1587 lib/pacemaker/pcmk_output.c crm_xml_add(node, PCMK_XA_QUORUM, quorum); node 1591 lib/pacemaker/pcmk_output.c crm_xml_add(node, PCMK_XA_WATCHDOG, watchdog); node 1603 lib/pacemaker/pcmk_output.c const char *node = va_arg(args, const char *); node 1610 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Bringing node %s online", node); node 1613 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Taking node %s offline", node); node 1616 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Failing node %s", node); node 1628 lib/pacemaker/pcmk_output.c const char *node = va_arg(args, const char *); node 1636 lib/pacemaker/pcmk_output.c PCMK_XA_NODE, node, node 1683 lib/pacemaker/pcmk_output.c const char *node = va_arg(args, const char *); node 1691 lib/pacemaker/pcmk_output.c task, ((node == NULL)? "" : " on "), pcmk__s(node, "")); node 1699 lib/pacemaker/pcmk_output.c const char *node = va_arg(args, const char *); node 1711 lib/pacemaker/pcmk_output.c if (node) { node 1712 lib/pacemaker/pcmk_output.c crm_xml_add(xml_node, PCMK_XA_NODE, node); node 1725 lib/pacemaker/pcmk_output.c const char *node = va_arg(args, const char *); node 1734 lib/pacemaker/pcmk_output.c rsc, operation, interval_ms, node); node 1737 lib/pacemaker/pcmk_output.c rsc, operation, node); node 1750 lib/pacemaker/pcmk_output.c const char *node = va_arg(args, const char *); node 1762 lib/pacemaker/pcmk_output.c PCMK_XA_NODE, node, node 2215 lib/pacemaker/pcmk_output.c xmlNodePtr node = NULL; node 2217 lib/pacemaker/pcmk_output.c node = pcmk__output_create_xml_node(out, PCMK_XE_ATTRIBUTE, node 2223 lib/pacemaker/pcmk_output.c crm_xml_add(node, PCMK_XA_SCOPE, scope); node 2227 lib/pacemaker/pcmk_output.c crm_xml_add(node, PCMK_XA_ID, instance); node 2231 lib/pacemaker/pcmk_output.c crm_xml_add(node, PCMK_XA_HOST, host); node 2467 lib/pacemaker/pcmk_output.c add_ticket_element_with_constraints(xmlNode *node, void *userdata) node 2470 lib/pacemaker/pcmk_output.c const char *ticket_id = crm_element_value(node, PCMK_XA_TICKET); node 2475 lib/pacemaker/pcmk_output.c pcmk__output_xml_add_node_copy(out, node); node 2485 lib/pacemaker/pcmk_output.c add_resource_element(xmlNode *node, void *userdata) node 2488 lib/pacemaker/pcmk_output.c const char *rsc = crm_element_value(node, PCMK_XA_RSC); node 2570 lib/pacemaker/pcmk_output.c add_ticket_element(xmlNode *node, void *userdata) node 2576 lib/pacemaker/pcmk_output.c pcmk__xe_copy_attrs(ticket_node, node, pcmk__xaf_none); node 33 lib/pacemaker/pcmk_resource.c best_op(const pcmk_resource_t *rsc, const pcmk_node_t *node) node 44 lib/pacemaker/pcmk_resource.c xpath = crm_strdup_printf(XPATH_OP_HISTORY, node->details->uname, rsc->id); node 197 lib/pacemaker/pcmk_resource.c const pcmk_node_t *node, GHashTable *overrides) node 205 lib/pacemaker/pcmk_resource.c if ((out == NULL) || (rsc == NULL) || (node == NULL)) { node 214 lib/pacemaker/pcmk_resource.c xml_op = best_op(rsc, node); node 227 lib/pacemaker/pcmk_resource.c digests = pe__calculate_digests(rsc, task, &interval_ms, node, xml_op, node 229 lib/pacemaker/pcmk_resource.c rc = out->message(out, "digests", rsc, node, task, interval_ms, digests); node 237 lib/pacemaker/pcmk_resource.c const pcmk_node_t *node, GHashTable *overrides) node 247 lib/pacemaker/pcmk_resource.c rc = pcmk__resource_digests(out, rsc, node, overrides); node 32 lib/pacemaker/pcmk_sched_actions.c action_flags_for_ordering(pcmk_action_t *action, const pcmk_node_t *node) node 47 lib/pacemaker/pcmk_sched_actions.c if ((node == NULL) || !pcmk__is_clone(action->rsc)) { node 57 lib/pacemaker/pcmk_sched_actions.c flags = action->rsc->cmds->action_flags(action, node); node 220 lib/pacemaker/pcmk_sched_actions.c const pcmk_node_t *node, uint32_t flags, uint32_t filter, uint32_t type, node 223 lib/pacemaker/pcmk_sched_actions.c return rsc->cmds->update_ordered_actions(first, then, node, flags, filter, node 253 lib/pacemaker/pcmk_sched_actions.c pcmk_node_t *node = then->node; node 264 lib/pacemaker/pcmk_sched_actions.c node = first->node; node 269 lib/pacemaker/pcmk_sched_actions.c first->uuid, then->uuid, pcmk__node_name(node)); node 274 lib/pacemaker/pcmk_sched_actions.c changed |= update(then->rsc, first, then, node, node 294 lib/pacemaker/pcmk_sched_actions.c changed |= update(then->rsc, first, then, node, first_flags, restart, node 304 lib/pacemaker/pcmk_sched_actions.c changed |= update(first->rsc, first, then, node, first_flags, node 320 lib/pacemaker/pcmk_sched_actions.c changed |= update(then->rsc, first, then, node, node 334 lib/pacemaker/pcmk_sched_actions.c changed |= update(then->rsc, first, then, node, first_flags, node 368 lib/pacemaker/pcmk_sched_actions.c changed |= update(then->rsc, first, then, node, first_flags, node 380 lib/pacemaker/pcmk_sched_actions.c changed |= update(then->rsc, first, then, node, first_flags, node 398 lib/pacemaker/pcmk_sched_actions.c changed |= update(then->rsc, first, then, node, first_flags, node 411 lib/pacemaker/pcmk_sched_actions.c changed |= update(then->rsc, first, then, node, first_flags, node 423 lib/pacemaker/pcmk_sched_actions.c changed |= update(then->rsc, first, then, node, first_flags, node 434 lib/pacemaker/pcmk_sched_actions.c changed |= update(then->rsc, first, then, node, first_flags, node 497 lib/pacemaker/pcmk_sched_actions.c (((a)->node == NULL)? "no node" : (a)->node->details->uname) node 546 lib/pacemaker/pcmk_sched_actions.c pcmk_node_t *then_node = then->node; node 547 lib/pacemaker/pcmk_sched_actions.c pcmk_node_t *first_node = first->node; node 739 lib/pacemaker/pcmk_sched_actions.c && pe__rsc_running_on_only(then->rsc, then->node)) { node 842 lib/pacemaker/pcmk_sched_actions.c const pcmk_node_t *node, uint32_t flags, node 935 lib/pacemaker/pcmk_sched_actions.c then->uuid, pcmk__node_name(then->node), node 949 lib/pacemaker/pcmk_sched_actions.c first->uuid, pcmk__node_name(first->node), node 975 lib/pacemaker/pcmk_sched_actions.c if (action->node != NULL) { node 976 lib/pacemaker/pcmk_sched_actions.c node_uname = action->node->details->uname; node 977 lib/pacemaker/pcmk_sched_actions.c node_uuid = action->node->details->id; node 1056 lib/pacemaker/pcmk_sched_actions.c pcmk__new_shutdown_action(pcmk_node_t *node) node 1061 lib/pacemaker/pcmk_sched_actions.c pcmk__assert(node != NULL); node 1064 lib/pacemaker/pcmk_sched_actions.c node->details->uname); node 1067 lib/pacemaker/pcmk_sched_actions.c node, FALSE, node->details->data_set); node 1069 lib/pacemaker/pcmk_sched_actions.c pcmk__order_stops_before_shutdown(node, shutdown_op); node 1121 lib/pacemaker/pcmk_sched_actions.c const char *node, const char *origin) node 1137 lib/pacemaker/pcmk_sched_actions.c ((node == NULL)? "no node" : node), caller_version, origin); node 1230 lib/pacemaker/pcmk_sched_actions.c crm_xml_add(xml_op, PCMK__META_ON_NODE, node); // For context during triage node 1309 lib/pacemaker/pcmk_sched_actions.c || !pcmk__same_node(action->node, action->rsc->lock_node)) { node 1316 lib/pacemaker/pcmk_sched_actions.c if (action->node->details->shutdown && (action->task != NULL) node 1429 lib/pacemaker/pcmk_sched_actions.c if (pcmk__is_guest_or_bundle_node(action->node)) { node 1430 lib/pacemaker/pcmk_sched_actions.c const pcmk_resource_t *remote = action->node->details->remote_rsc; node 1433 lib/pacemaker/pcmk_sched_actions.c pcmk__node_name(action->node), node 1435 lib/pacemaker/pcmk_sched_actions.c } else if (action->node != NULL) { node 1436 lib/pacemaker/pcmk_sched_actions.c node_name = crm_strdup_printf("%s", pcmk__node_name(action->node)); node 1523 lib/pacemaker/pcmk_sched_actions.c pcmk_node_t *node) node 1530 lib/pacemaker/pcmk_sched_actions.c trigger_unfencing(rsc, node, "Device parameters changed", NULL, node 1545 lib/pacemaker/pcmk_sched_actions.c const pcmk_node_t *node = user_data; node 1555 lib/pacemaker/pcmk_sched_actions.c if ((node == NULL) node 1562 lib/pacemaker/pcmk_sched_actions.c (node == NULL)? "inactive" : node->details->uname); node 1573 lib/pacemaker/pcmk_sched_actions.c custom_action(rsc, stop_key(rsc), PCMK_ACTION_STOP, node, FALSE, node 1580 lib/pacemaker/pcmk_sched_actions.c reload = custom_action(rsc, reload_key(rsc), PCMK_ACTION_RELOAD_AGENT, node, node 1608 lib/pacemaker/pcmk_sched_actions.c pcmk__check_action_config(pcmk_resource_t *rsc, pcmk_node_t *node, node 1615 lib/pacemaker/pcmk_sched_actions.c CRM_CHECK((rsc != NULL) && (node != NULL) && (xml_op != NULL), node 1629 lib/pacemaker/pcmk_sched_actions.c pcmk__node_name(node)); node 1634 lib/pacemaker/pcmk_sched_actions.c task, interval_ms, node, "orphan"); node 1639 lib/pacemaker/pcmk_sched_actions.c pcmk__node_name(node)); node 1646 lib/pacemaker/pcmk_sched_actions.c pcmk__node_name(node)); node 1648 lib/pacemaker/pcmk_sched_actions.c digest_data = rsc_action_digest_cmp(rsc, xml_op, node, rsc->cluster); node 1658 lib/pacemaker/pcmk_sched_actions.c pcmk__node_name(node), node 1667 lib/pacemaker/pcmk_sched_actions.c force_restart(rsc, task, interval_ms, node); node 1680 lib/pacemaker/pcmk_sched_actions.c pcmk__reschedule_recurring(rsc, task, interval_ms, node); node 1685 lib/pacemaker/pcmk_sched_actions.c trigger_unfencing(rsc, node, node 1689 lib/pacemaker/pcmk_sched_actions.c schedule_reload((gpointer) rsc, (gpointer) node); node 1698 lib/pacemaker/pcmk_sched_actions.c force_restart(rsc, task, interval_ms, node); node 1748 lib/pacemaker/pcmk_sched_actions.c pcmk_node_t *node) node 1765 lib/pacemaker/pcmk_sched_actions.c pcmk__schedule_cleanup(rsc, node, false); node 1770 lib/pacemaker/pcmk_sched_actions.c if (pe_find_node_id(rsc->running_on, node->details->id) == NULL) { node 1771 lib/pacemaker/pcmk_sched_actions.c if (pcmk__rsc_agent_changed(rsc, node, rsc_entry, false)) { node 1772 lib/pacemaker/pcmk_sched_actions.c pcmk__schedule_cleanup(rsc, node, false); node 1777 lib/pacemaker/pcmk_sched_actions.c rsc->id, pcmk__node_name(node)); node 1782 lib/pacemaker/pcmk_sched_actions.c rsc->id, pcmk__node_name(node)); node 1784 lib/pacemaker/pcmk_sched_actions.c if (pcmk__rsc_agent_changed(rsc, node, rsc_entry, true)) { node 1785 lib/pacemaker/pcmk_sched_actions.c pcmk__schedule_cleanup(rsc, node, false); node 1808 lib/pacemaker/pcmk_sched_actions.c || node->details->maintenance)) { node 1812 lib/pacemaker/pcmk_sched_actions.c task, interval_ms, node, "maintenance mode"); node 1831 lib/pacemaker/pcmk_sched_actions.c pe__add_param_check(rsc_op, rsc, node, pcmk__check_active, node 1834 lib/pacemaker/pcmk_sched_actions.c } else if (pcmk__check_action_config(rsc, node, rsc_op) node 1835 lib/pacemaker/pcmk_sched_actions.c && (pe_get_failcount(node, rsc, NULL, pcmk__fc_effective, node 1837 lib/pacemaker/pcmk_sched_actions.c pe__clear_failcount(rsc, node, "action definition changed", node 1859 lib/pacemaker/pcmk_sched_actions.c process_node_history(pcmk_node_t *node, const xmlNode *lrm_rscs) node 1861 lib/pacemaker/pcmk_sched_actions.c crm_trace("Processing node history for %s", pcmk__node_name(node)); node 1869 lib/pacemaker/pcmk_sched_actions.c node->details->data_set); node 1875 lib/pacemaker/pcmk_sched_actions.c process_rsc_history(rsc_entry, rsc, node); node 1911 lib/pacemaker/pcmk_sched_actions.c pcmk_node_t *node = (pcmk_node_t *) iter->data; node 1917 lib/pacemaker/pcmk_sched_actions.c if (node->details->maintenance node 1918 lib/pacemaker/pcmk_sched_actions.c || pcmk__node_available(node, false, false)) { node 1923 lib/pacemaker/pcmk_sched_actions.c xpath = crm_strdup_printf(XPATH_NODE_HISTORY, node->details->uname); node 1927 lib/pacemaker/pcmk_sched_actions.c process_node_history(node, history); node 69 lib/pacemaker/pcmk_sched_bundle.c pcmk_node_t *node = NULL; node 73 lib/pacemaker/pcmk_sched_bundle.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 74 lib/pacemaker/pcmk_sched_bundle.c if (!pcmk__same_node(node, replica->node)) { node 75 lib/pacemaker/pcmk_sched_bundle.c node->weight = -PCMK_SCORE_INFINITY; node 76 lib/pacemaker/pcmk_sched_bundle.c } else if (!pcmk__threshold_reached(replica->child, node, NULL)) { node 77 lib/pacemaker/pcmk_sched_bundle.c node->weight = PCMK_SCORE_INFINITY; node 84 lib/pacemaker/pcmk_sched_bundle.c replica->child->cmds->assign(replica->child, replica->node, node 139 lib/pacemaker/pcmk_sched_bundle.c pcmk_node_t *node = NULL; node 143 lib/pacemaker/pcmk_sched_bundle.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) & node)) { node 144 lib/pacemaker/pcmk_sched_bundle.c if (pe__node_is_bundle_instance(rsc, node)) { node 145 lib/pacemaker/pcmk_sched_bundle.c node->weight = 0; node 147 lib/pacemaker/pcmk_sched_bundle.c node->weight = -PCMK_SCORE_INFINITY; node 359 lib/pacemaker/pcmk_sched_bundle.c const pcmk_node_t *node; // Node to compare against replica node 378 lib/pacemaker/pcmk_sched_bundle.c if (pcmk__instance_matches(replica->container, match_data->node, node 396 lib/pacemaker/pcmk_sched_bundle.c get_bundle_node_host(const pcmk_node_t *node) node 398 lib/pacemaker/pcmk_sched_bundle.c if (pcmk__is_bundle_node(node)) { node 399 lib/pacemaker/pcmk_sched_bundle.c const pcmk_resource_t *container = node->details->remote_rsc->container; node 403 lib/pacemaker/pcmk_sched_bundle.c return node; node 425 lib/pacemaker/pcmk_sched_bundle.c match_data.node = dependent->fns->location(dependent, NULL, 0); node 426 lib/pacemaker/pcmk_sched_bundle.c match_data.node = get_bundle_node_host(match_data.node); node 427 lib/pacemaker/pcmk_sched_bundle.c if (match_data.node != NULL) { node 437 lib/pacemaker/pcmk_sched_bundle.c match_data.node = iter->data; node 438 lib/pacemaker/pcmk_sched_bundle.c match_data.node = get_bundle_node_host(match_data.node); node 439 lib/pacemaker/pcmk_sched_bundle.c if (match_data.node == NULL) { node 690 lib/pacemaker/pcmk_sched_bundle.c pcmk__bundle_action_flags(pcmk_action_t *action, const pcmk_node_t *node) node 711 lib/pacemaker/pcmk_sched_bundle.c node); node 718 lib/pacemaker/pcmk_sched_bundle.c flags = pcmk__collective_action_flags(action, containers, node); node 863 lib/pacemaker/pcmk_sched_bundle.c pcmk_node_t *node; // Node to create probes on node 910 lib/pacemaker/pcmk_sched_bundle.c && replica->ip->cmds->create_probe(replica->ip, probe_data->node)) { node 914 lib/pacemaker/pcmk_sched_bundle.c && pcmk__same_node(probe_data->node, replica->node) node 916 lib/pacemaker/pcmk_sched_bundle.c probe_data->node)) { node 921 lib/pacemaker/pcmk_sched_bundle.c probe_data->node)) { node 943 lib/pacemaker/pcmk_sched_bundle.c probe_data->node)) { node 952 lib/pacemaker/pcmk_sched_bundle.c probe_data->node); node 959 lib/pacemaker/pcmk_sched_bundle.c pcmk__node_name(probe_data->node)); node 982 lib/pacemaker/pcmk_sched_bundle.c pcmk__bundle_create_probe(pcmk_resource_t *rsc, pcmk_node_t *node) node 984 lib/pacemaker/pcmk_sched_bundle.c struct probe_data probe_data = { rsc, node, false }; node 398 lib/pacemaker/pcmk_sched_clone.c pcmk__clone_action_flags(pcmk_action_t *action, const pcmk_node_t *node) node 402 lib/pacemaker/pcmk_sched_clone.c return pcmk__collective_action_flags(action, action->rsc->children, node); node 470 lib/pacemaker/pcmk_sched_clone.c rsc_probed_on(const pcmk_resource_t *rsc, const pcmk_node_t *node) node 478 lib/pacemaker/pcmk_sched_clone.c if (rsc_probed_on(child, node)) { node 491 lib/pacemaker/pcmk_sched_clone.c if (pcmk__same_node(node, known_node)) { node 510 lib/pacemaker/pcmk_sched_clone.c find_probed_instance_on(const pcmk_resource_t *clone, const pcmk_node_t *node) node 515 lib/pacemaker/pcmk_sched_clone.c if (rsc_probed_on(instance, node)) { node 530 lib/pacemaker/pcmk_sched_clone.c probe_anonymous_clone(pcmk_resource_t *clone, pcmk_node_t *node) node 533 lib/pacemaker/pcmk_sched_clone.c pcmk_resource_t *child = find_probed_instance_on(clone, node); node 542 lib/pacemaker/pcmk_sched_clone.c if (pcmk__same_node(instance_node, node)) { node 553 lib/pacemaker/pcmk_sched_clone.c return child->cmds->create_probe(child, node); node 566 lib/pacemaker/pcmk_sched_clone.c pcmk__clone_create_probe(pcmk_resource_t *rsc, pcmk_node_t *node) node 568 lib/pacemaker/pcmk_sched_clone.c pcmk__assert((node != NULL) && pcmk__is_clone(rsc)); node 581 lib/pacemaker/pcmk_sched_clone.c node->details->id); node 592 lib/pacemaker/pcmk_sched_clone.c rsc->id, pcmk__node_name(node)); node 593 lib/pacemaker/pcmk_sched_clone.c g_hash_table_remove(rsc->allowed_nodes, node->details->id); node 600 lib/pacemaker/pcmk_sched_clone.c return pcmk__probe_resource_list(rsc->children, node); node 602 lib/pacemaker/pcmk_sched_clone.c return probe_anonymous_clone(rsc, node); node 1358 lib/pacemaker/pcmk_sched_colocation.c pcmk_node_t *node = NULL; node 1372 lib/pacemaker/pcmk_sched_colocation.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 1374 lib/pacemaker/pcmk_sched_colocation.c node->weight = pcmk__add_scores(-colocation->score, node->weight); node 1379 lib/pacemaker/pcmk_sched_colocation.c pcmk__node_name(node), node 1380 lib/pacemaker/pcmk_sched_colocation.c pcmk_readable_score(node->weight), node 1385 lib/pacemaker/pcmk_sched_colocation.c if (pcmk__str_eq(pcmk__colocation_node_attr(node, attr, dependent), node 1395 lib/pacemaker/pcmk_sched_colocation.c node->weight = pcmk__add_scores(colocation->score, node 1396 lib/pacemaker/pcmk_sched_colocation.c node->weight); node 1401 lib/pacemaker/pcmk_sched_colocation.c pcmk__node_name(node), node 1402 lib/pacemaker/pcmk_sched_colocation.c pcmk_readable_score(node->weight), node 1414 lib/pacemaker/pcmk_sched_colocation.c node->weight = -PCMK_SCORE_INFINITY; node 1418 lib/pacemaker/pcmk_sched_colocation.c dependent->id, pcmk__node_name(node), node 1545 lib/pacemaker/pcmk_sched_colocation.c pcmk_node_t *node = NULL; node 1579 lib/pacemaker/pcmk_sched_colocation.c while (g_hash_table_iter_next(&iter, NULL, (void **) &node)) { node 1581 lib/pacemaker/pcmk_sched_colocation.c if ((node->weight > best_score) node 1582 lib/pacemaker/pcmk_sched_colocation.c && pcmk__node_available(node, false, false) node 1583 lib/pacemaker/pcmk_sched_colocation.c && pcmk__str_eq(value, pcmk__colocation_node_attr(node, attr, rsc), node 1586 lib/pacemaker/pcmk_sched_colocation.c best_score = node->weight; node 1587 lib/pacemaker/pcmk_sched_colocation.c best_node = node->details->uname; node 1662 lib/pacemaker/pcmk_sched_colocation.c pcmk_node_t *node = NULL; node 1667 lib/pacemaker/pcmk_sched_colocation.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 1672 lib/pacemaker/pcmk_sched_colocation.c const char *value = pcmk__colocation_node_attr(node, attr, target_rsc); node 1715 lib/pacemaker/pcmk_sched_colocation.c pcmk__node_name(node), node->weight, factor, score); node 1720 lib/pacemaker/pcmk_sched_colocation.c if (node->weight == INFINITY_HACK) { node 1722 lib/pacemaker/pcmk_sched_colocation.c pcmk__node_name(node), node->weight, factor, score); node 1743 lib/pacemaker/pcmk_sched_colocation.c new_score = pcmk__add_scores(delta, node->weight); node 1745 lib/pacemaker/pcmk_sched_colocation.c if (only_positive && (new_score < 0) && (node->weight > 0)) { node 1748 lib/pacemaker/pcmk_sched_colocation.c pcmk__node_name(node), node->weight, factor, score, node 1750 lib/pacemaker/pcmk_sched_colocation.c node->weight = INFINITY_HACK; node 1754 lib/pacemaker/pcmk_sched_colocation.c if (only_positive && (new_score < 0) && (node->weight == 0)) { node 1756 lib/pacemaker/pcmk_sched_colocation.c pcmk__node_name(node), node->weight, factor, score, node 1761 lib/pacemaker/pcmk_sched_colocation.c crm_trace("%s: %d + %f * %d = %d", pcmk__node_name(node), node 1762 lib/pacemaker/pcmk_sched_colocation.c node->weight, factor, score, new_score); node 1763 lib/pacemaker/pcmk_sched_colocation.c node->weight = new_score; node 1896 lib/pacemaker/pcmk_sched_colocation.c pcmk_node_t *node = NULL; node 1900 lib/pacemaker/pcmk_sched_colocation.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 1901 lib/pacemaker/pcmk_sched_colocation.c if (node->weight == INFINITY_HACK) { node 1902 lib/pacemaker/pcmk_sched_colocation.c node->weight = 1; node 29 lib/pacemaker/pcmk_sched_fencing.c rsc_is_known_on(const pcmk_resource_t *rsc, const pcmk_node_t *node) node 31 lib/pacemaker/pcmk_sched_fencing.c if (g_hash_table_lookup(rsc->known_on, node->details->id) != NULL) { node 37 lib/pacemaker/pcmk_sched_fencing.c node->details->id) != NULL)) { node 59 lib/pacemaker/pcmk_sched_fencing.c CRM_CHECK(stonith_op && stonith_op->node, return); node 60 lib/pacemaker/pcmk_sched_fencing.c target = stonith_op->node; node 119 lib/pacemaker/pcmk_sched_fencing.c CRM_CHECK(stonith_op && stonith_op->node, return); node 120 lib/pacemaker/pcmk_sched_fencing.c target = stonith_op->node; node 201 lib/pacemaker/pcmk_sched_fencing.c rsc->id, pcmk__node_name(node)); node 216 lib/pacemaker/pcmk_sched_fencing.c if (!(action->node->details->online) || action->node->details->unclean node 306 lib/pacemaker/pcmk_sched_fencing.c pcmk__order_vs_unfence(const pcmk_resource_t *rsc, pcmk_node_t *node, node 325 lib/pacemaker/pcmk_sched_fencing.c pcmk_action_t *unfence = pe_fence_op(node, PCMK_ACTION_ON, TRUE, NULL, node 326 lib/pacemaker/pcmk_sched_fencing.c FALSE, node->details->data_set); node 330 lib/pacemaker/pcmk_sched_fencing.c if (!pcmk__node_unfenced(node)) { node 335 lib/pacemaker/pcmk_sched_fencing.c trigger_unfencing(NULL, node, reason, NULL, node 336 lib/pacemaker/pcmk_sched_fencing.c node->details->data_set); node 349 lib/pacemaker/pcmk_sched_fencing.c pcmk__fence_guest(pcmk_node_t *node) node 363 lib/pacemaker/pcmk_sched_fencing.c pcmk__assert(node != NULL); node 368 lib/pacemaker/pcmk_sched_fencing.c container = node->details->remote_rsc->container; node 382 lib/pacemaker/pcmk_sched_fencing.c stonith_op = pe_fence_op(node, fence_action, FALSE, "guest is unclean", node 383 lib/pacemaker/pcmk_sched_fencing.c FALSE, node->details->data_set); node 391 lib/pacemaker/pcmk_sched_fencing.c pcmk_action_t *parent_stonith_op = pe_fence_op(stop->node, NULL, FALSE, node 393 lib/pacemaker/pcmk_sched_fencing.c node->details->data_set); node 396 lib/pacemaker/pcmk_sched_fencing.c pcmk__node_name(node), stonith_op->id, node 397 lib/pacemaker/pcmk_sched_fencing.c pcmk__node_name(stop->node)); node 408 lib/pacemaker/pcmk_sched_fencing.c pcmk__node_name(node), stonith_op->id, node 418 lib/pacemaker/pcmk_sched_fencing.c stop = find_first_action(node->details->remote_rsc->actions, NULL, node 425 lib/pacemaker/pcmk_sched_fencing.c pcmk__node_name(node), stonith_op->id, stop->id); node 431 lib/pacemaker/pcmk_sched_fencing.c pcmk__node_name(node), stonith_op->id); node 436 lib/pacemaker/pcmk_sched_fencing.c pcmk__order_vs_fence(stonith_op, node->details->data_set); node 449 lib/pacemaker/pcmk_sched_fencing.c pcmk__node_unfenced(const pcmk_node_t *node) node 451 lib/pacemaker/pcmk_sched_fencing.c const char *unfenced = pcmk__node_attr(node, CRM_ATTR_UNFENCED, NULL, node 467 lib/pacemaker/pcmk_sched_fencing.c pcmk_node_t *node = (pcmk_node_t *) data; node 470 lib/pacemaker/pcmk_sched_fencing.c pcmk_action_t *unfence = pe_fence_op(node, PCMK_ACTION_ON, true, NULL, node 73 lib/pacemaker/pcmk_sched_group.c pcmk_node_t *node = NULL; node 77 lib/pacemaker/pcmk_sched_group.c node = member->cmds->assign(member, prefer, stop_if_fail); node 79 lib/pacemaker/pcmk_sched_group.c first_assigned_node = node; node 533 lib/pacemaker/pcmk_sched_group.c pcmk__group_action_flags(pcmk_action_t *action, const pcmk_node_t *node) node 550 lib/pacemaker/pcmk_sched_group.c task_s, node); node 554 lib/pacemaker/pcmk_sched_group.c node); node 617 lib/pacemaker/pcmk_sched_group.c const pcmk_node_t *node, uint32_t flags, node 628 lib/pacemaker/pcmk_sched_group.c changed |= pcmk__update_ordered_actions(first, then, node, flags, filter, node 636 lib/pacemaker/pcmk_sched_group.c then->task, node); node 640 lib/pacemaker/pcmk_sched_group.c member_action, node, node 30 lib/pacemaker/pcmk_sched_instances.c can_run_instance(const pcmk_resource_t *instance, const pcmk_node_t *node, node 37 lib/pacemaker/pcmk_sched_instances.c instance->id, pcmk__node_name(node)); node 41 lib/pacemaker/pcmk_sched_instances.c if (!pcmk__node_available(node, false, false)) { node 44 lib/pacemaker/pcmk_sched_instances.c instance->id, pcmk__node_name(node)); node 48 lib/pacemaker/pcmk_sched_instances.c allowed_node = pcmk__top_allowed_node(instance, node); node 51 lib/pacemaker/pcmk_sched_instances.c instance->id, pcmk__node_name(node)); node 58 lib/pacemaker/pcmk_sched_instances.c instance->id, pcmk__node_name(node), node 66 lib/pacemaker/pcmk_sched_instances.c instance->id, pcmk__node_name(node), max_per_node, node 72 lib/pacemaker/pcmk_sched_instances.c instance->id, pcmk__node_name(node), allowed_node->count); node 88 lib/pacemaker/pcmk_sched_instances.c pcmk_node_t *node = NULL; node 91 lib/pacemaker/pcmk_sched_instances.c while (g_hash_table_iter_next(&iter, NULL, (void **) &node)) { node 92 lib/pacemaker/pcmk_sched_instances.c if (!can_run_instance(instance, node, max_per_node)) { node 94 lib/pacemaker/pcmk_sched_instances.c instance->id, pcmk__node_name(node)); node 95 lib/pacemaker/pcmk_sched_instances.c node->weight = -PCMK_SCORE_INFINITY; node 102 lib/pacemaker/pcmk_sched_instances.c node->details->id); node 108 lib/pacemaker/pcmk_sched_instances.c pcmk__node_name(node)); node 128 lib/pacemaker/pcmk_sched_instances.c new_node_table(pcmk_node_t *node) node 132 lib/pacemaker/pcmk_sched_instances.c node = pe__copy_node(node); node 133 lib/pacemaker/pcmk_sched_instances.c g_hash_table_insert(table, (gpointer) node->details->id, node); node 270 lib/pacemaker/pcmk_sched_instances.c node_is_allowed(const pcmk_resource_t *rsc, pcmk_node_t **node) node 272 lib/pacemaker/pcmk_sched_instances.c if (*node != NULL) { node 274 lib/pacemaker/pcmk_sched_instances.c (*node)->details->id); node 278 lib/pacemaker/pcmk_sched_instances.c rsc->id, pcmk__node_name(*node)); node 279 lib/pacemaker/pcmk_sched_instances.c *node = NULL; node 715 lib/pacemaker/pcmk_sched_instances.c pcmk_node_t *node = NULL; node 719 lib/pacemaker/pcmk_sched_instances.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 720 lib/pacemaker/pcmk_sched_instances.c node->count = 0; node 721 lib/pacemaker/pcmk_sched_instances.c if (pcmk__node_available(node, false, false)) { node 740 lib/pacemaker/pcmk_sched_instances.c const pcmk_node_t *node = NULL; node 751 lib/pacemaker/pcmk_sched_instances.c node = pcmk__current_node(instance); node 752 lib/pacemaker/pcmk_sched_instances.c if (!pcmk__node_available(node, true, false)) { node 754 lib/pacemaker/pcmk_sched_instances.c instance->id, pcmk__node_name(node)); node 759 lib/pacemaker/pcmk_sched_instances.c parent_node = pcmk__top_allowed_node(instance, node); node 764 lib/pacemaker/pcmk_sched_instances.c instance->id, pcmk__node_name(node)); node 768 lib/pacemaker/pcmk_sched_instances.c return node; node 1076 lib/pacemaker/pcmk_sched_instances.c pcmk__instance_matches(const pcmk_resource_t *instance, const pcmk_node_t *node, node 1081 lib/pacemaker/pcmk_sched_instances.c CRM_CHECK((instance != NULL) && (node != NULL), return false); node 1104 lib/pacemaker/pcmk_sched_instances.c if (!pcmk__same_node(instance_node, node)) { node 1109 lib/pacemaker/pcmk_sched_instances.c pcmk__node_name(node)); node 1135 lib/pacemaker/pcmk_sched_instances.c const pcmk_node_t *node, enum rsc_role_e role, node 1144 lib/pacemaker/pcmk_sched_instances.c if (pcmk__instance_matches(instance, node, role, current)) { node 1148 lib/pacemaker/pcmk_sched_instances.c match_rsc->id, pcmk__node_name(node)); node 1158 lib/pacemaker/pcmk_sched_instances.c pcmk__node_name(node)); node 1182 lib/pacemaker/pcmk_sched_instances.c const pcmk_node_t *node = NULL; node 1185 lib/pacemaker/pcmk_sched_instances.c node = match_rsc->fns->location(match_rsc, NULL, current); node 1186 lib/pacemaker/pcmk_sched_instances.c if (node != NULL) { node 1187 lib/pacemaker/pcmk_sched_instances.c return find_compatible_instance_on_node(match_rsc, rsc, node, role, node 1264 lib/pacemaker/pcmk_sched_instances.c const char *action_name, const pcmk_node_t *node, node 1298 lib/pacemaker/pcmk_sched_instances.c node = NULL; // Containerized actions are on bundle-created guest node 1301 lib/pacemaker/pcmk_sched_instances.c matching_action = find_first_action(rsc->actions, NULL, action_name, node); node 1380 lib/pacemaker/pcmk_sched_instances.c const pcmk_node_t *node, uint32_t filter, node 1416 lib/pacemaker/pcmk_sched_instances.c orig_first_task, node, true); node 1422 lib/pacemaker/pcmk_sched_instances.c node, false); node 1433 lib/pacemaker/pcmk_sched_instances.c first_action, then_action, node, node 1434 lib/pacemaker/pcmk_sched_instances.c first_instance->cmds->action_flags(first_action, node), filter, node 1514 lib/pacemaker/pcmk_sched_instances.c const pcmk_action_t *then, const pcmk_node_t *node, node 1523 lib/pacemaker/pcmk_sched_instances.c node); node 1529 lib/pacemaker/pcmk_sched_instances.c instance_flags = instance->cmds->action_flags(instance_action, node); node 1536 lib/pacemaker/pcmk_sched_instances.c node, flags, filter, type, node 1577 lib/pacemaker/pcmk_sched_instances.c const pcmk_node_t *node, uint32_t flags, node 1587 lib/pacemaker/pcmk_sched_instances.c return update_interleaved_actions(first, then, node, filter, type); node 1594 lib/pacemaker/pcmk_sched_instances.c changed |= pcmk__update_ordered_actions(first, then, node, flags, node 1602 lib/pacemaker/pcmk_sched_instances.c node, flags, filter, type); node 1627 lib/pacemaker/pcmk_sched_instances.c const pcmk_node_t *node) node 1645 lib/pacemaker/pcmk_sched_instances.c instance_node = node; node 1652 lib/pacemaker/pcmk_sched_instances.c instance->id, action_name, pcmk__node_name(node)); node 1658 lib/pacemaker/pcmk_sched_instances.c pcmk__node_name(node)); node 1660 lib/pacemaker/pcmk_sched_instances.c instance_flags = instance->cmds->action_flags(instance_action, node); node 1683 lib/pacemaker/pcmk_sched_instances.c if (node == NULL) { node 25 lib/pacemaker/pcmk_sched_location.c pcmk_node_t *node, pcmk_resource_t *rsc) node 42 lib/pacemaker/pcmk_sched_location.c attr_score = pcmk__node_attr(node, score, target, node 46 lib/pacemaker/pcmk_sched_location.c rule, pcmk__node_name(node), score); node 51 lib/pacemaker/pcmk_sched_location.c rule, pcmk__node_name(node), attr_score, score); node 198 lib/pacemaker/pcmk_sched_location.c pcmk_node_t *node = iter->data; node 200 lib/pacemaker/pcmk_sched_location.c rule_input->node_attrs = node->details->attrs; node 201 lib/pacemaker/pcmk_sched_location.c rule_input->rsc_params = pe_rsc_params(rsc, node, rsc->cluster); node 205 lib/pacemaker/pcmk_sched_location.c pcmk_node_t *local = pe__copy_node(node); node 208 lib/pacemaker/pcmk_sched_location.c local->weight = get_node_score(rule_id, score, raw_score, node, node 210 lib/pacemaker/pcmk_sched_location.c crm_trace("%s has score %s after %s", pcmk__node_name(node), node 236 lib/pacemaker/pcmk_sched_location.c const char *node = crm_element_value(xml_obj, PCMK_XE_NODE); node 250 lib/pacemaker/pcmk_sched_location.c if ((node != NULL) && (score != NULL)) { node 252 lib/pacemaker/pcmk_sched_location.c pcmk_node_t *match = pcmk_find_node(rsc->cluster, node); node 259 lib/pacemaker/pcmk_sched_location.c pcmk__s(id, "without ID"), node); node 589 lib/pacemaker/pcmk_sched_location.c int node_score, const char *discover_mode, pcmk_node_t *node) node 593 lib/pacemaker/pcmk_sched_location.c CRM_CHECK((node != NULL) || (node_score == 0), return NULL); node 629 lib/pacemaker/pcmk_sched_location.c if (node != NULL) { node 630 lib/pacemaker/pcmk_sched_location.c pcmk_node_t *copy = pe__copy_node(node); node 694 lib/pacemaker/pcmk_sched_location.c pcmk_node_t *node = iter->data; node 696 lib/pacemaker/pcmk_sched_location.c node->details->id); node 702 lib/pacemaker/pcmk_sched_location.c rsc->id, pcmk__node_name(node), node 704 lib/pacemaker/pcmk_sched_location.c pcmk_readable_score(node->weight)); node 707 lib/pacemaker/pcmk_sched_location.c allowed_node = pe__copy_node(node); node 713 lib/pacemaker/pcmk_sched_location.c node->weight); node 30 lib/pacemaker/pcmk_sched_nodes.c pcmk__node_available(const pcmk_node_t *node, bool consider_score, node 33 lib/pacemaker/pcmk_sched_nodes.c if ((node == NULL) || (node->details == NULL) || !node->details->online node 34 lib/pacemaker/pcmk_sched_nodes.c || node->details->shutdown || node->details->unclean node 35 lib/pacemaker/pcmk_sched_nodes.c || node->details->standby || node->details->maintenance) { node 39 lib/pacemaker/pcmk_sched_nodes.c if (consider_score && (node->weight < 0)) { node 44 lib/pacemaker/pcmk_sched_nodes.c if (consider_guest && pcmk__is_guest_or_bundle_node(node)) { node 45 lib/pacemaker/pcmk_sched_nodes.c pcmk_resource_t *guest = node->details->remote_rsc->container; node 68 lib/pacemaker/pcmk_sched_nodes.c pcmk_node_t *node = NULL; node 75 lib/pacemaker/pcmk_sched_nodes.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 76 lib/pacemaker/pcmk_sched_nodes.c pcmk_node_t *new_node = pe__copy_node(node); node 340 lib/pacemaker/pcmk_sched_nodes.c const pcmk_node_t *node = NULL; node 346 lib/pacemaker/pcmk_sched_nodes.c while (g_hash_table_iter_next(&iter, NULL, (void **) &node)) { node 347 lib/pacemaker/pcmk_sched_nodes.c if (pcmk__node_available(node, true, false)) { node 381 lib/pacemaker/pcmk_sched_nodes.c pcmk_node_t *node = (pcmk_node_t *) iter->data; node 382 lib/pacemaker/pcmk_sched_nodes.c int health = pe__sum_node_health_scores(node, base_health); node 389 lib/pacemaker/pcmk_sched_nodes.c pcmk__node_name(node), health); node 405 lib/pacemaker/pcmk_sched_nodes.c pcmk__new_location(strategy_str, rsc, health, NULL, node); node 408 lib/pacemaker/pcmk_sched_nodes.c rsc->id, pcmk__node_name(node)); node 425 lib/pacemaker/pcmk_sched_nodes.c pcmk__top_allowed_node(const pcmk_resource_t *rsc, const pcmk_node_t *node) node 429 lib/pacemaker/pcmk_sched_nodes.c if ((rsc == NULL) || (node == NULL)) { node 436 lib/pacemaker/pcmk_sched_nodes.c return g_hash_table_lookup(allowed_nodes, node->details->id); node 1111 lib/pacemaker/pcmk_sched_ordering.c && pcmk__rsc_corresponds_to_guest(action->rsc, input->action->node)) { node 1161 lib/pacemaker/pcmk_sched_ordering.c pcmk__order_stops_before_shutdown(pcmk_node_t *node, pcmk_action_t *shutdown_op) node 1163 lib/pacemaker/pcmk_sched_ordering.c for (GList *iter = node->details->data_set->actions; node 1169 lib/pacemaker/pcmk_sched_ordering.c if (!pcmk__same_node(action->node, node) node 1180 lib/pacemaker/pcmk_sched_ordering.c action->uuid, pcmk__node_name(node)); node 1183 lib/pacemaker/pcmk_sched_ordering.c } else if (node->details->maintenance) { node 1187 lib/pacemaker/pcmk_sched_ordering.c action->uuid, pcmk__node_name(node)); node 1200 lib/pacemaker/pcmk_sched_ordering.c action->uuid, pcmk__node_name(node)); node 1205 lib/pacemaker/pcmk_sched_ordering.c action->uuid, pcmk__node_name(node)); node 1210 lib/pacemaker/pcmk_sched_ordering.c node->details->data_set); node 1489 lib/pacemaker/pcmk_sched_ordering.c before_desc, pcmk__node_name(before->node), node 1490 lib/pacemaker/pcmk_sched_ordering.c after_desc, pcmk__node_name(after->node)); node 20 lib/pacemaker/pcmk_sched_primitive.c static void stop_resource(pcmk_resource_t *rsc, pcmk_node_t *node, node 22 lib/pacemaker/pcmk_sched_primitive.c static void start_resource(pcmk_resource_t *rsc, pcmk_node_t *node, node 24 lib/pacemaker/pcmk_sched_primitive.c static void demote_resource(pcmk_resource_t *rsc, pcmk_node_t *node, node 26 lib/pacemaker/pcmk_sched_primitive.c static void promote_resource(pcmk_resource_t *rsc, pcmk_node_t *node, node 28 lib/pacemaker/pcmk_sched_primitive.c static void assert_role_error(pcmk_resource_t *rsc, pcmk_node_t *node, node 83 lib/pacemaker/pcmk_sched_primitive.c typedef void (*rsc_transition_fn)(pcmk_resource_t *rsc, pcmk_node_t *node, node 865 lib/pacemaker/pcmk_sched_primitive.c pcmk_node_t *node = NULL; node 868 lib/pacemaker/pcmk_sched_primitive.c while (g_hash_table_iter_next(&iter, NULL, (void **) &node)) { node 869 lib/pacemaker/pcmk_sched_primitive.c if (node->details->remote_rsc != NULL) { node 870 lib/pacemaker/pcmk_sched_primitive.c node->weight = -PCMK_SCORE_INFINITY; node 1026 lib/pacemaker/pcmk_sched_primitive.c pcmk_node_t *node = item->data; node 1028 lib/pacemaker/pcmk_sched_primitive.c if (node->details->remote_rsc != remote_rsc) { node 1029 lib/pacemaker/pcmk_sched_primitive.c node->weight = -PCMK_SCORE_INFINITY; node 1204 lib/pacemaker/pcmk_sched_primitive.c pcmk__primitive_action_flags(pcmk_action_t *action, const pcmk_node_t *node) node 1225 lib/pacemaker/pcmk_sched_primitive.c is_expected_node(const pcmk_resource_t *rsc, const pcmk_node_t *node) node 1230 lib/pacemaker/pcmk_sched_primitive.c && pcmk__same_node(rsc->allocated_to, node); node 1242 lib/pacemaker/pcmk_sched_primitive.c stop_resource(pcmk_resource_t *rsc, pcmk_node_t *node, bool optional) node 1323 lib/pacemaker/pcmk_sched_primitive.c start_resource(pcmk_resource_t *rsc, pcmk_node_t *node, bool optional) node 1327 lib/pacemaker/pcmk_sched_primitive.c pcmk__assert(node != NULL); node 1331 lib/pacemaker/pcmk_sched_primitive.c pcmk__node_name(node), node->weight); node 1332 lib/pacemaker/pcmk_sched_primitive.c start = start_action(rsc, node, TRUE); node 1334 lib/pacemaker/pcmk_sched_primitive.c pcmk__order_vs_unfence(rsc, node, start, pcmk__ar_first_implies_then); node 1340 lib/pacemaker/pcmk_sched_primitive.c if (is_expected_node(rsc, node)) { node 1347 lib/pacemaker/pcmk_sched_primitive.c rsc->id, pcmk__node_name(node)); node 1361 lib/pacemaker/pcmk_sched_primitive.c promote_resource(pcmk_resource_t *rsc, pcmk_node_t *node, bool optional) node 1367 lib/pacemaker/pcmk_sched_primitive.c pcmk__assert(node != NULL); node 1370 lib/pacemaker/pcmk_sched_primitive.c action_list = pe__resource_actions(rsc, node, PCMK_ACTION_START, true); node 1381 lib/pacemaker/pcmk_sched_primitive.c pcmk_action_t *promote = promote_action(rsc, node, optional); node 1385 lib/pacemaker/pcmk_sched_primitive.c pcmk__node_name(node)); node 1387 lib/pacemaker/pcmk_sched_primitive.c if (is_expected_node(rsc, node)) { node 1394 lib/pacemaker/pcmk_sched_primitive.c rsc->id, pcmk__node_name(node)); node 1399 lib/pacemaker/pcmk_sched_primitive.c rsc->id, pcmk__node_name(node)); node 1400 lib/pacemaker/pcmk_sched_primitive.c action_list = pe__resource_actions(rsc, node, PCMK_ACTION_PROMOTE, node 1420 lib/pacemaker/pcmk_sched_primitive.c demote_resource(pcmk_resource_t *rsc, pcmk_node_t *node, bool optional) node 1445 lib/pacemaker/pcmk_sched_primitive.c assert_role_error(pcmk_resource_t *rsc, pcmk_node_t *node, bool optional) node 1459 lib/pacemaker/pcmk_sched_primitive.c pcmk__schedule_cleanup(pcmk_resource_t *rsc, const pcmk_node_t *node, node 1469 lib/pacemaker/pcmk_sched_primitive.c CRM_CHECK((rsc != NULL) && (node != NULL), return); node 1473 lib/pacemaker/pcmk_sched_primitive.c rsc->id, pcmk__node_name(node)); node 1477 lib/pacemaker/pcmk_sched_primitive.c if (node->details->unclean || !node->details->online) { node 1479 lib/pacemaker/pcmk_sched_primitive.c rsc->id, pcmk__node_name(node)); node 1484 lib/pacemaker/pcmk_sched_primitive.c rsc->id, pcmk__node_name(node)); node 1485 lib/pacemaker/pcmk_sched_primitive.c delete_action(rsc, node, optional); node 1578 lib/pacemaker/pcmk_sched_primitive.c shutdown_time(pcmk_node_t *node) node 1580 lib/pacemaker/pcmk_sched_primitive.c const char *shutdown = pcmk__node_attr(node, PCMK__NODE_ATTR_SHUTDOWN, NULL, node 1593 lib/pacemaker/pcmk_sched_primitive.c shutdown, pcmk__node_name(node), pcmk_rc_str(rc)); node 1596 lib/pacemaker/pcmk_sched_primitive.c return (result == 0)? get_effective_time(node->details->data_set) : result; node 1609 lib/pacemaker/pcmk_sched_primitive.c const pcmk_node_t *node = (const pcmk_node_t *) data; node 1612 lib/pacemaker/pcmk_sched_primitive.c if (strcmp(node->details->uname, rsc->lock_node->details->uname) != 0) { node 1613 lib/pacemaker/pcmk_sched_primitive.c resource_location(rsc, node, -PCMK_SCORE_INFINITY, node 1649 lib/pacemaker/pcmk_sched_primitive.c pcmk_node_t *node = rsc->running_on->data; node 1651 lib/pacemaker/pcmk_sched_primitive.c if (node->details->shutdown) { node 1652 lib/pacemaker/pcmk_sched_primitive.c if (node->details->unclean) { node 1655 lib/pacemaker/pcmk_sched_primitive.c rsc->id, pcmk__node_name(node)); node 1657 lib/pacemaker/pcmk_sched_primitive.c rsc->lock_node = node; node 1658 lib/pacemaker/pcmk_sched_primitive.c rsc->lock_time = shutdown_time(node); node 29 lib/pacemaker/pcmk_sched_probes.c const pcmk_node_t *node) node 32 lib/pacemaker/pcmk_sched_probes.c pcmk_node_t *running = pe_find_node_id(rsc->running_on, node->details->id); node 53 lib/pacemaker/pcmk_sched_probes.c pcmk__probe_resource_list(GList *rscs, pcmk_node_t *node) node 60 lib/pacemaker/pcmk_sched_probes.c if (rsc->cmds->create_probe(rsc, node)) { node 99 lib/pacemaker/pcmk_sched_probes.c guest_resource_will_stop(const pcmk_node_t *node) node 101 lib/pacemaker/pcmk_sched_probes.c const pcmk_resource_t *guest_rsc = node->details->remote_rsc->container; node 106 lib/pacemaker/pcmk_sched_probes.c return node->details->remote_requires_reset node 107 lib/pacemaker/pcmk_sched_probes.c || node->details->unclean node 128 lib/pacemaker/pcmk_sched_probes.c probe_action(pcmk_resource_t *rsc, pcmk_node_t *node) node 134 lib/pacemaker/pcmk_sched_probes.c pcmk_role_text(rsc->role), rsc->id, pcmk__node_name(node)); node 136 lib/pacemaker/pcmk_sched_probes.c probe = custom_action(rsc, key, PCMK_ACTION_MONITOR, node, FALSE, node 140 lib/pacemaker/pcmk_sched_probes.c pcmk__order_vs_unfence(rsc, node, probe, pcmk__ar_ordered); node 141 lib/pacemaker/pcmk_sched_probes.c add_expected_result(probe, rsc, node); node 157 lib/pacemaker/pcmk_sched_probes.c pcmk__probe_rsc_on_node(pcmk_resource_t *rsc, pcmk_node_t *node) node 165 lib/pacemaker/pcmk_sched_probes.c pcmk__assert((rsc != NULL) && (node != NULL)); node 172 lib/pacemaker/pcmk_sched_probes.c if (pcmk__is_pacemaker_remote_node(node)) { node 177 lib/pacemaker/pcmk_sched_probes.c } else if (pcmk__is_guest_or_bundle_node(node) node 190 lib/pacemaker/pcmk_sched_probes.c return pcmk__probe_resource_list(rsc->children, node); node 201 lib/pacemaker/pcmk_sched_probes.c } else if (g_hash_table_lookup(rsc->known_on, node->details->id) != NULL) { node 206 lib/pacemaker/pcmk_sched_probes.c allowed = g_hash_table_lookup(rsc->allowed_nodes, node->details->id); node 226 lib/pacemaker/pcmk_sched_probes.c allowed = node; node 233 lib/pacemaker/pcmk_sched_probes.c if (pcmk__is_guest_or_bundle_node(node)) { node 234 lib/pacemaker/pcmk_sched_probes.c pcmk_resource_t *guest = node->details->remote_rsc->container; node 242 lib/pacemaker/pcmk_sched_probes.c } else if (guest_resource_will_stop(node)) { node 256 lib/pacemaker/pcmk_sched_probes.c probe = probe_action(rsc, node); node 287 lib/pacemaker/pcmk_sched_probes.c rsc->id, node->details->id, reason); node 306 lib/pacemaker/pcmk_sched_probes.c && pcmk__same_node(probe->node, then->node)) { node 317 lib/pacemaker/pcmk_sched_probes.c && (probe->node != NULL) && (then->node != NULL) node 318 lib/pacemaker/pcmk_sched_probes.c && !pcmk__same_node(probe->node, then->node)) { node 496 lib/pacemaker/pcmk_sched_probes.c probe->uuid, pcmk__node_name(probe->node), node 497 lib/pacemaker/pcmk_sched_probes.c after->action->uuid, pcmk__node_name(after->action->node)); node 514 lib/pacemaker/pcmk_sched_probes.c probe->uuid, pcmk__node_name(probe->node), node 515 lib/pacemaker/pcmk_sched_probes.c then->action->uuid, pcmk__node_name(then->action->node), node 559 lib/pacemaker/pcmk_sched_probes.c probe->uuid, pcmk__node_name(probe->node), node 560 lib/pacemaker/pcmk_sched_probes.c after->uuid, pcmk__node_name(after->node)); node 652 lib/pacemaker/pcmk_sched_probes.c after->uuid, pcmk__node_name(after->node), node 654 lib/pacemaker/pcmk_sched_probes.c pcmk__node_name(after_wrapper->action->node), node 862 lib/pacemaker/pcmk_sched_probes.c pcmk_node_t *node = (pcmk_node_t *) iter->data; node 865 lib/pacemaker/pcmk_sched_probes.c if (!node->details->online) { // Don't probe offline nodes node 866 lib/pacemaker/pcmk_sched_probes.c if (pcmk__is_failed_remote_node(node)) { node 867 lib/pacemaker/pcmk_sched_probes.c pe_fence_node(scheduler, node, node 872 lib/pacemaker/pcmk_sched_probes.c } else if (node->details->unclean) { // ... or nodes that need fencing node 875 lib/pacemaker/pcmk_sched_probes.c } else if (!node->details->rsc_discovery_enabled) { node 885 lib/pacemaker/pcmk_sched_probes.c probed = pcmk__node_attr(node, CRM_OP_PROBED, NULL, node 892 lib/pacemaker/pcmk_sched_probes.c node->details->uname), node 893 lib/pacemaker/pcmk_sched_probes.c CRM_OP_REPROBE, node, FALSE, scheduler); node 899 lib/pacemaker/pcmk_sched_probes.c pcmk__probe_resource_list(scheduler->resources, node); node 168 lib/pacemaker/pcmk_sched_promotable.c pcmk_node_t *node = NULL; node 184 lib/pacemaker/pcmk_sched_promotable.c node = rsc->fns->location(rsc, NULL, FALSE); node 185 lib/pacemaker/pcmk_sched_promotable.c if (node == NULL) { node 193 lib/pacemaker/pcmk_sched_promotable.c rsc->id, pcmk__node_name(node)); node 207 lib/pacemaker/pcmk_sched_promotable.c } else if (!pcmk__node_available(node, false, true)) { node 210 lib/pacemaker/pcmk_sched_promotable.c rsc->id, pcmk__node_name(node)); node 215 lib/pacemaker/pcmk_sched_promotable.c local_node = g_hash_table_lookup(parent->allowed_nodes, node->details->id); node 225 lib/pacemaker/pcmk_sched_promotable.c rsc->id, parent->id, pcmk__node_name(node)); node 234 lib/pacemaker/pcmk_sched_promotable.c rsc->id, pcmk__node_name(node)); node 316 lib/pacemaker/pcmk_sched_promotable.c pcmk_node_t *node = NULL; node 332 lib/pacemaker/pcmk_sched_promotable.c node = g_hash_table_lookup(clone->allowed_nodes, chosen->details->id); node 333 lib/pacemaker/pcmk_sched_promotable.c pcmk__assert(node != NULL); node 335 lib/pacemaker/pcmk_sched_promotable.c node->weight = pcmk__add_scores(child->sort_index, node->weight); node 340 lib/pacemaker/pcmk_sched_promotable.c pcmk__node_name(node), pcmk_readable_score(node->weight)); node 410 lib/pacemaker/pcmk_sched_promotable.c const pcmk_node_t *node = g_hash_table_lookup(clone->allowed_nodes, node 413 lib/pacemaker/pcmk_sched_promotable.c pcmk__assert(node != NULL); node 414 lib/pacemaker/pcmk_sched_promotable.c child->sort_index = node->weight; node 481 lib/pacemaker/pcmk_sched_promotable.c const pcmk_node_t *node) node 488 lib/pacemaker/pcmk_sched_promotable.c active = clone->fns->find_rsc(child, id, node, node 510 lib/pacemaker/pcmk_sched_promotable.c const pcmk_node_t *node) node 522 lib/pacemaker/pcmk_sched_promotable.c if (g_hash_table_lookup(child->known_on, node->details->id)) { node 540 lib/pacemaker/pcmk_sched_promotable.c is_allowed(const pcmk_resource_t *rsc, const pcmk_node_t *node) node 543 lib/pacemaker/pcmk_sched_promotable.c node->details->id); node 558 lib/pacemaker/pcmk_sched_promotable.c promotion_score_applies(const pcmk_resource_t *rsc, const pcmk_node_t *node) node 569 lib/pacemaker/pcmk_sched_promotable.c active = find_active_anon_instance(parent, id, node); node 578 lib/pacemaker/pcmk_sched_promotable.c if ((active == NULL) && anonymous_known_on(parent, id, node)) { node 596 lib/pacemaker/pcmk_sched_promotable.c if ((g_hash_table_lookup(rsc->known_on, node->details->id) != NULL) node 597 lib/pacemaker/pcmk_sched_promotable.c || (pe_find_node_id(rsc->running_on, node->details->id) != NULL)) { node 603 lib/pacemaker/pcmk_sched_promotable.c rsc->id, id, pcmk__node_name(node)); node 609 lib/pacemaker/pcmk_sched_promotable.c if (is_allowed(rsc, node)) { node 611 lib/pacemaker/pcmk_sched_promotable.c rsc->id, id, pcmk__node_name(node), reason); node 618 lib/pacemaker/pcmk_sched_promotable.c rsc->id, id, pcmk__node_name(node)); node 634 lib/pacemaker/pcmk_sched_promotable.c promotion_attr_value(const pcmk_resource_t *rsc, const pcmk_node_t *node, node 649 lib/pacemaker/pcmk_sched_promotable.c attr_value = pcmk__node_attr(node, attr_name, target, node_type); node 665 lib/pacemaker/pcmk_sched_promotable.c promotion_score(const pcmk_resource_t *rsc, const pcmk_node_t *node, node 677 lib/pacemaker/pcmk_sched_promotable.c CRM_CHECK((rsc != NULL) && (node != NULL), return 0); node 690 lib/pacemaker/pcmk_sched_promotable.c int child_score = promotion_score(child, node, &child_default); node 700 lib/pacemaker/pcmk_sched_promotable.c if (!promotion_score_applies(rsc, node)) { node 710 lib/pacemaker/pcmk_sched_promotable.c attr_value = promotion_attr_value(rsc, node, name); node 713 lib/pacemaker/pcmk_sched_promotable.c name, pcmk__node_name(node), node 722 lib/pacemaker/pcmk_sched_promotable.c attr_value = promotion_attr_value(rsc, node, name); node 724 lib/pacemaker/pcmk_sched_promotable.c name, pcmk__node_name(node), rsc->id, node 742 lib/pacemaker/pcmk_sched_promotable.c rsc->id, pcmk__node_name(node), attr_value); node 765 lib/pacemaker/pcmk_sched_promotable.c pcmk_node_t *node = NULL; node 769 lib/pacemaker/pcmk_sched_promotable.c while (g_hash_table_iter_next(&iter, NULL, (void **) &node)) { node 770 lib/pacemaker/pcmk_sched_promotable.c if (!pcmk__node_available(node, false, false)) { node 777 lib/pacemaker/pcmk_sched_promotable.c score = promotion_score(child_rsc, node, NULL); node 779 lib/pacemaker/pcmk_sched_promotable.c new_score = pcmk__add_scores(node->weight, score); node 780 lib/pacemaker/pcmk_sched_promotable.c if (new_score != node->weight) { // Could remain INFINITY node 781 lib/pacemaker/pcmk_sched_promotable.c node->weight = new_score; node 786 lib/pacemaker/pcmk_sched_promotable.c pcmk__node_name(node), node 1047 lib/pacemaker/pcmk_sched_promotable.c pcmk_node_t *node = NULL; node 1051 lib/pacemaker/pcmk_sched_promotable.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 1052 lib/pacemaker/pcmk_sched_promotable.c node->count = 0; node 1171 lib/pacemaker/pcmk_sched_promotable.c pcmk_node_t *node = NULL; node 1188 lib/pacemaker/pcmk_sched_promotable.c while (g_hash_table_iter_next(&iter, NULL, (void **) &node)) { node 1189 lib/pacemaker/pcmk_sched_promotable.c const char *dependent_value = pcmk__colocation_node_attr(node, attr, node 1193 lib/pacemaker/pcmk_sched_promotable.c node->weight = pcmk__add_scores(node->weight, colocation->score); node 1198 lib/pacemaker/pcmk_sched_promotable.c pcmk__node_name(node), node 1199 lib/pacemaker/pcmk_sched_promotable.c pcmk_readable_score(node->weight)); node 1224 lib/pacemaker/pcmk_sched_promotable.c pcmk_node_t *node = instance->fns->location(instance, NULL, FALSE); node 1226 lib/pacemaker/pcmk_sched_promotable.c if (node == NULL) { node 1230 lib/pacemaker/pcmk_sched_promotable.c update_dependent_allowed_nodes(dependent, primary, node, node 1232 lib/pacemaker/pcmk_sched_promotable.c affected_nodes = g_list_prepend(affected_nodes, node); node 199 lib/pacemaker/pcmk_sched_recurring.c const pcmk_node_t *node, const char *key, node 204 lib/pacemaker/pcmk_sched_recurring.c if (node == NULL) { // Should only be possible if unmanaged and stopped node 218 lib/pacemaker/pcmk_sched_recurring.c possible_matches = find_actions_exact(rsc->actions, key, node); node 222 lib/pacemaker/pcmk_sched_recurring.c key, pcmk__node_name(node)); node 255 lib/pacemaker/pcmk_sched_recurring.c const pcmk_node_t *node, const struct op_history *op) node 267 lib/pacemaker/pcmk_sched_recurring.c is_optional = active_recurring_should_be_optional(rsc, node, op->key, node 283 lib/pacemaker/pcmk_sched_recurring.c node); node 323 lib/pacemaker/pcmk_sched_recurring.c pcmk__node_name(node)); node 325 lib/pacemaker/pcmk_sched_recurring.c mon = custom_action(rsc, strdup(op->key), op->name, node, is_optional, node 332 lib/pacemaker/pcmk_sched_recurring.c } else if ((node == NULL) || !node->details->online node 333 lib/pacemaker/pcmk_sched_recurring.c || node->details->unclean) { node 341 lib/pacemaker/pcmk_sched_recurring.c rsc->id, pcmk__node_name(node)); node 349 lib/pacemaker/pcmk_sched_recurring.c if ((node == NULL) || pcmk_is_set(rsc->flags, pcmk_rsc_managed)) { node 390 lib/pacemaker/pcmk_sched_recurring.c cancel_if_running(pcmk_resource_t *rsc, const pcmk_node_t *node, node 393 lib/pacemaker/pcmk_sched_recurring.c GList *possible_matches = find_actions_exact(rsc->actions, key, node); node 401 lib/pacemaker/pcmk_sched_recurring.c cancel_op = pcmk__new_cancel_action(rsc, name, interval_ms, node); node 422 lib/pacemaker/pcmk_sched_recurring.c pcmk__node_name(node), pcmk_role_text(rsc->next_role)); node 434 lib/pacemaker/pcmk_sched_recurring.c order_after_probes(pcmk_resource_t *rsc, const pcmk_node_t *node, node 437 lib/pacemaker/pcmk_sched_recurring.c GList *probes = pe__resource_actions(rsc, node, PCMK_ACTION_MONITOR, FALSE); node 455 lib/pacemaker/pcmk_sched_recurring.c order_after_stops(pcmk_resource_t *rsc, const pcmk_node_t *node, node 458 lib/pacemaker/pcmk_sched_recurring.c GList *stop_ops = pe__resource_actions(rsc, node, PCMK_ACTION_STOP, TRUE); node 467 lib/pacemaker/pcmk_sched_recurring.c action->uuid, pcmk__node_name(node)); node 473 lib/pacemaker/pcmk_sched_recurring.c action->uuid, pcmk__node_name(node)); node 497 lib/pacemaker/pcmk_sched_recurring.c recurring_op_for_inactive(pcmk_resource_t *rsc, const pcmk_node_t *node, node 524 lib/pacemaker/pcmk_sched_recurring.c if ((node != NULL) node 525 lib/pacemaker/pcmk_sched_recurring.c && pcmk__str_eq(stop_node->details->uname, node->details->uname, node 527 lib/pacemaker/pcmk_sched_recurring.c cancel_if_running(rsc, node, op->key, op->name, op->interval_ms); node 647 lib/pacemaker/pcmk_sched_recurring.c guint interval_ms, const pcmk_node_t *node) node 653 lib/pacemaker/pcmk_sched_recurring.c pcmk__assert((rsc != NULL) && (task != NULL) && (node != NULL)); node 660 lib/pacemaker/pcmk_sched_recurring.c cancel_op = custom_action(rsc, key, PCMK_ACTION_CANCEL, node, FALSE, node 688 lib/pacemaker/pcmk_sched_recurring.c const pcmk_node_t *node, const char *reason) node 693 lib/pacemaker/pcmk_sched_recurring.c && (node != NULL) && (reason != NULL), node 698 lib/pacemaker/pcmk_sched_recurring.c pcmk__node_name(node), reason); node 699 lib/pacemaker/pcmk_sched_recurring.c cancel = pcmk__new_cancel_action(rsc, task, interval_ms, node); node 718 lib/pacemaker/pcmk_sched_recurring.c guint interval_ms, pcmk_node_t *node) node 722 lib/pacemaker/pcmk_sched_recurring.c trigger_unfencing(rsc, node, "Device parameters changed (reschedule)", node 725 lib/pacemaker/pcmk_sched_recurring.c task, node, TRUE, rsc->cluster); node 86 lib/pacemaker/pcmk_sched_remote.c get_remote_node_state(const pcmk_node_t *node) node 91 lib/pacemaker/pcmk_sched_remote.c pcmk__assert(node != NULL); node 93 lib/pacemaker/pcmk_sched_remote.c remote_rsc = node->details->remote_rsc; node 123 lib/pacemaker/pcmk_sched_remote.c && node->details->remote_was_fenced node 124 lib/pacemaker/pcmk_sched_remote.c && !pe__shutdown_requested(node)) { node 172 lib/pacemaker/pcmk_sched_remote.c enum remote_connection_state state = get_remote_node_state(action->node); node 180 lib/pacemaker/pcmk_sched_remote.c pcmk__assert(pcmk__is_pacemaker_remote_node(action->node)); node 182 lib/pacemaker/pcmk_sched_remote.c remote_rsc = action->node->details->remote_rsc; node 225 lib/pacemaker/pcmk_sched_remote.c pe_fence_node(remote_rsc->cluster, action->node, node 276 lib/pacemaker/pcmk_sched_remote.c pe_fence_node(remote_rsc->cluster, action->node, node 312 lib/pacemaker/pcmk_sched_remote.c pcmk__assert(action->node != NULL); node 313 lib/pacemaker/pcmk_sched_remote.c pcmk__assert(pcmk__is_pacemaker_remote_node(action->node)); node 315 lib/pacemaker/pcmk_sched_remote.c remote_rsc = action->node->details->remote_rsc; node 322 lib/pacemaker/pcmk_sched_remote.c pe_fence_node(action->rsc->cluster, action->node, "container failed", node 433 lib/pacemaker/pcmk_sched_remote.c if (action->node == NULL) { node 437 lib/pacemaker/pcmk_sched_remote.c if (!pcmk__is_pacemaker_remote_node(action->node)) { node 451 lib/pacemaker/pcmk_sched_remote.c remote = action->node->details->remote_rsc; node 467 lib/pacemaker/pcmk_sched_remote.c if (!pcmk__same_node(rsc_action->node, action->node) node 506 lib/pacemaker/pcmk_sched_remote.c pcmk__is_failed_remote_node(const pcmk_node_t *node) node 508 lib/pacemaker/pcmk_sched_remote.c return pcmk__is_remote_node(node) && (node->details->remote_rsc != NULL) node 509 lib/pacemaker/pcmk_sched_remote.c && (get_remote_node_state(node) == remote_state_failed); node 524 lib/pacemaker/pcmk_sched_remote.c const pcmk_node_t *node) node 526 lib/pacemaker/pcmk_sched_remote.c return (rsc != NULL) && (rsc->fillers != NULL) && (node != NULL) node 527 lib/pacemaker/pcmk_sched_remote.c && (node->details->remote_rsc != NULL) node 528 lib/pacemaker/pcmk_sched_remote.c && (node->details->remote_rsc->container == rsc); node 554 lib/pacemaker/pcmk_sched_remote.c || !pcmk__is_pacemaker_remote_node(action->node)) { node 558 lib/pacemaker/pcmk_sched_remote.c pcmk__assert(action->node->details->remote_rsc != NULL); node 560 lib/pacemaker/pcmk_sched_remote.c began_on = pcmk__current_node(action->node->details->remote_rsc); node 561 lib/pacemaker/pcmk_sched_remote.c ended_on = action->node->details->remote_rsc->allocated_to; node 562 lib/pacemaker/pcmk_sched_remote.c if (action->node->details->remote_rsc node 563 lib/pacemaker/pcmk_sched_remote.c && (action->node->details->remote_rsc->container == NULL) node 564 lib/pacemaker/pcmk_sched_remote.c && action->node->details->remote_rsc->partial_migration_target) { node 687 lib/pacemaker/pcmk_sched_remote.c const pcmk_node_t *guest = action->node; node 111 lib/pacemaker/pcmk_sched_resource.c pcmk__rsc_agent_changed(pcmk_resource_t *rsc, pcmk_node_t *node, node 127 lib/pacemaker/pcmk_sched_resource.c trigger_unfencing(rsc, node, "Device definition changed", NULL, node 132 lib/pacemaker/pcmk_sched_resource.c rsc->id, pcmk__node_name(node), attr_list[i], node 139 lib/pacemaker/pcmk_sched_resource.c custom_action(rsc, stop_key(rsc), PCMK_ACTION_STOP, node, FALSE, node 362 lib/pacemaker/pcmk_sched_resource.c add_assigned_resource(pcmk_node_t *node, pcmk_resource_t *rsc) node 364 lib/pacemaker/pcmk_sched_resource.c node->details->allocated_rsc = g_list_prepend(node->details->allocated_rsc, node 404 lib/pacemaker/pcmk_sched_resource.c pcmk__assign_resource(pcmk_resource_t *rsc, pcmk_node_t *node, bool force, node 415 lib/pacemaker/pcmk_sched_resource.c changed |= pcmk__assign_resource(child_rsc, node, force, node 423 lib/pacemaker/pcmk_sched_resource.c if (!force && (node != NULL) node 424 lib/pacemaker/pcmk_sched_resource.c && ((node->weight < 0) node 426 lib/pacemaker/pcmk_sched_resource.c || (!pcmk__node_available(node, true, false) node 427 lib/pacemaker/pcmk_sched_resource.c && !pcmk__is_guest_or_bundle_node(node)))) { node 432 lib/pacemaker/pcmk_sched_resource.c rsc->id, pcmk__node_name(node), node 433 lib/pacemaker/pcmk_sched_resource.c (pcmk__node_available(node, true, false)? "" : "not"), node 434 lib/pacemaker/pcmk_sched_resource.c pcmk_readable_score(node->weight)); node 439 lib/pacemaker/pcmk_sched_resource.c node = NULL; node 443 lib/pacemaker/pcmk_sched_resource.c changed = !pcmk__same_node(rsc->allocated_to, node); node 445 lib/pacemaker/pcmk_sched_resource.c changed = (node != NULL); node 450 lib/pacemaker/pcmk_sched_resource.c if (node == NULL) { node 497 lib/pacemaker/pcmk_sched_resource.c pcmk__rsc_debug(rsc, "Assigning %s to %s", rsc->id, pcmk__node_name(node)); node 498 lib/pacemaker/pcmk_sched_resource.c rsc->allocated_to = pe__copy_node(node); node 500 lib/pacemaker/pcmk_sched_resource.c add_assigned_resource(node, rsc); node 501 lib/pacemaker/pcmk_sched_resource.c node->details->num_resources++; node 502 lib/pacemaker/pcmk_sched_resource.c node->count++; node 503 lib/pacemaker/pcmk_sched_resource.c pcmk__consume_node_capacity(node->details->utilization, rsc); node 508 lib/pacemaker/pcmk_sched_resource.c out->message(out, "resource-util", rsc, node, __func__); node 571 lib/pacemaker/pcmk_sched_resource.c pcmk__threshold_reached(pcmk_resource_t *rsc, const pcmk_node_t *node, node 588 lib/pacemaker/pcmk_sched_resource.c fail_count = pe_get_failcount(node, rsc, NULL, node 607 lib/pacemaker/pcmk_sched_resource.c rsc_to_ban->id, pcmk__node_name(node), fail_count, node 618 lib/pacemaker/pcmk_sched_resource.c pcmk__node_name(node), rsc->migration_threshold); node 632 lib/pacemaker/pcmk_sched_resource.c get_node_score(const pcmk_node_t *node, GHashTable *nodes) node 636 lib/pacemaker/pcmk_sched_resource.c if ((node != NULL) && (nodes != NULL)) { node 637 lib/pacemaker/pcmk_sched_resource.c found_node = g_hash_table_lookup(nodes, node->details->id); node 726 lib/pacemaker/pcmk_sched_resource.c const pcmk_node_t *node = (const pcmk_node_t *) iter->data; node 728 lib/pacemaker/pcmk_sched_resource.c r1_score = get_node_score(node, r1_nodes); node 729 lib/pacemaker/pcmk_sched_resource.c r2_score = get_node_score(node, r2_nodes); node 207 lib/pacemaker/pcmk_sched_utilization.c const pcmk_node_t *node; node 228 lib/pacemaker/pcmk_sched_utilization.c node_value_s = g_hash_table_lookup(data->node->details->utilization, key); node 236 lib/pacemaker/pcmk_sched_utilization.c (const char *) key, pcmk__node_name(data->node), remaining, node 253 lib/pacemaker/pcmk_sched_utilization.c have_enough_capacity(const pcmk_node_t *node, const char *rsc_id, node 257 lib/pacemaker/pcmk_sched_utilization.c .node = node, node 304 lib/pacemaker/pcmk_sched_utilization.c pcmk_node_t *node = NULL; node 336 lib/pacemaker/pcmk_sched_utilization.c while (g_hash_table_iter_next(&iter, NULL, (void **) &node)) { node 337 lib/pacemaker/pcmk_sched_utilization.c if (!pcmk__node_available(node, true, false)) { node 341 lib/pacemaker/pcmk_sched_utilization.c if (have_enough_capacity(node, rscs_id, unassigned_utilization)) { node 347 lib/pacemaker/pcmk_sched_utilization.c || (pcmk__compare_node_capacities(node, most_capable_node) < 0)) { node 348 lib/pacemaker/pcmk_sched_utilization.c most_capable_node = node; node 355 lib/pacemaker/pcmk_sched_utilization.c while (g_hash_table_iter_next(&iter, NULL, (void **) &node)) { node 356 lib/pacemaker/pcmk_sched_utilization.c if (pcmk__node_available(node, true, false) node 357 lib/pacemaker/pcmk_sched_utilization.c && !have_enough_capacity(node, rscs_id, node 360 lib/pacemaker/pcmk_sched_utilization.c pcmk__node_name(node), rscs_id); node 361 lib/pacemaker/pcmk_sched_utilization.c resource_location(rsc, node, -PCMK_SCORE_INFINITY, node 370 lib/pacemaker/pcmk_sched_utilization.c while (g_hash_table_iter_next(&iter, NULL, (void **) &node)) { node 371 lib/pacemaker/pcmk_sched_utilization.c if (pcmk__node_available(node, true, false) node 372 lib/pacemaker/pcmk_sched_utilization.c && !have_enough_capacity(node, rsc->id, rsc->utilization)) { node 374 lib/pacemaker/pcmk_sched_utilization.c pcmk__node_name(node), rsc->id); node 375 lib/pacemaker/pcmk_sched_utilization.c resource_location(rsc, node, -PCMK_SCORE_INFINITY, node 399 lib/pacemaker/pcmk_sched_utilization.c new_load_stopped_op(pcmk_node_t *node) node 402 lib/pacemaker/pcmk_sched_utilization.c node->details->uname); node 404 lib/pacemaker/pcmk_sched_utilization.c node->details->data_set); node 406 lib/pacemaker/pcmk_sched_utilization.c if (load_stopped->node == NULL) { node 407 lib/pacemaker/pcmk_sched_utilization.c load_stopped->node = pe__copy_node(node); node 467 lib/pacemaker/pcmk_sched_utilization.c const pcmk_node_t *node = (const pcmk_node_t *) iter->data; node 470 lib/pacemaker/pcmk_sched_utilization.c out->message(out, "node-capacity", node, desc); node 43 lib/pacemaker/pcmk_scheduler.c check_params(pcmk_resource_t *rsc, pcmk_node_t *node, const xmlNode *rsc_op, node 51 lib/pacemaker/pcmk_scheduler.c if (pcmk__check_action_config(rsc, node, rsc_op) node 52 lib/pacemaker/pcmk_scheduler.c && pe_get_failcount(node, rsc, NULL, pcmk__fc_effective, node 59 lib/pacemaker/pcmk_scheduler.c digest_data = rsc_action_digest_cmp(rsc, rsc_op, node, node 65 lib/pacemaker/pcmk_scheduler.c rsc->id, pcmk__xe_id(rsc_op), node->details->id); node 76 lib/pacemaker/pcmk_scheduler.c pe__clear_failcount(rsc, node, reason, rsc->cluster); node 91 lib/pacemaker/pcmk_scheduler.c failcount_clear_action_exists(const pcmk_node_t *node, node 94 lib/pacemaker/pcmk_scheduler.c GList *list = pe__resource_actions(rsc, node, PCMK_ACTION_CLEAR_FAILCOUNT, node 115 lib/pacemaker/pcmk_scheduler.c const pcmk_node_t *node = user_data; node 123 lib/pacemaker/pcmk_scheduler.c if (!failcount_clear_action_exists(node, rsc)) { node 136 lib/pacemaker/pcmk_scheduler.c if (pcmk__threshold_reached(rsc, node, &failed)) { node 137 lib/pacemaker/pcmk_scheduler.c resource_location(failed, node, -PCMK_SCORE_INFINITY, node 160 lib/pacemaker/pcmk_scheduler.c const pcmk_node_t *node = user_data; node 169 lib/pacemaker/pcmk_scheduler.c match = g_hash_table_lookup(rsc->allowed_nodes, node->details->id); node 188 lib/pacemaker/pcmk_scheduler.c pcmk_node_t *node = NULL; node 204 lib/pacemaker/pcmk_scheduler.c node = rsc->running_on->data; node 213 lib/pacemaker/pcmk_scheduler.c node->details->id) == NULL)) { node 217 lib/pacemaker/pcmk_scheduler.c rsc->id, pcmk__node_name(node)); node 222 lib/pacemaker/pcmk_scheduler.c rsc->id, rsc->stickiness, pcmk__node_name(node)); node 223 lib/pacemaker/pcmk_scheduler.c resource_location(rsc, node, rsc->stickiness, "stickiness", rsc->cluster); node 260 lib/pacemaker/pcmk_scheduler.c pcmk_node_t *node = (pcmk_node_t *) iter->data; node 262 lib/pacemaker/pcmk_scheduler.c if ((node != NULL) && (node->weight >= 0) && node->details->online node 263 lib/pacemaker/pcmk_scheduler.c && (node->details->type != node_ping)) { node 368 lib/pacemaker/pcmk_scheduler.c pcmk_node_t *node = (pcmk_node_t *) iter->data; node 371 lib/pacemaker/pcmk_scheduler.c if (!node->details->online) { node 374 lib/pacemaker/pcmk_scheduler.c if (pe_get_failcount(node, rsc, NULL, pcmk__fc_effective, NULL) == 0) { node 378 lib/pacemaker/pcmk_scheduler.c clear_op = pe__clear_failcount(rsc, node, "it is orphaned", node 472 lib/pacemaker/pcmk_scheduler.c needs_fencing(const pcmk_node_t *node, bool have_managed) node 474 lib/pacemaker/pcmk_scheduler.c return have_managed && node->details->unclean node 475 lib/pacemaker/pcmk_scheduler.c && pe_can_fence(node->details->data_set, node); node 487 lib/pacemaker/pcmk_scheduler.c needs_shutdown(const pcmk_node_t *node) node 489 lib/pacemaker/pcmk_scheduler.c if (pcmk__is_pacemaker_remote_node(node)) { node 495 lib/pacemaker/pcmk_scheduler.c return node->details->online && node->details->shutdown; node 531 lib/pacemaker/pcmk_scheduler.c schedule_fencing(pcmk_node_t *node) node 533 lib/pacemaker/pcmk_scheduler.c pcmk_action_t *fencing = pe_fence_op(node, NULL, FALSE, "node is unclean", node 534 lib/pacemaker/pcmk_scheduler.c FALSE, node->details->data_set); node 536 lib/pacemaker/pcmk_scheduler.c pcmk__sched_warn("Scheduling node %s for fencing", pcmk__node_name(node)); node 537 lib/pacemaker/pcmk_scheduler.c pcmk__order_vs_fence(fencing, node->details->data_set); node 564 lib/pacemaker/pcmk_scheduler.c pcmk_node_t *node = (pcmk_node_t *) iter->data; node 570 lib/pacemaker/pcmk_scheduler.c if (pcmk__is_guest_or_bundle_node(node)) { node 571 lib/pacemaker/pcmk_scheduler.c if (node->details->remote_requires_reset && have_managed node 572 lib/pacemaker/pcmk_scheduler.c && pe_can_fence(scheduler, node)) { node 573 lib/pacemaker/pcmk_scheduler.c pcmk__fence_guest(node); node 578 lib/pacemaker/pcmk_scheduler.c if (needs_fencing(node, have_managed)) { node 579 lib/pacemaker/pcmk_scheduler.c fencing = schedule_fencing(node); node 582 lib/pacemaker/pcmk_scheduler.c if (node->details->is_dc) { node 589 lib/pacemaker/pcmk_scheduler.c } else if (needs_shutdown(node)) { node 590 lib/pacemaker/pcmk_scheduler.c pcmk_action_t *down_op = pcmk__new_shutdown_action(node); node 593 lib/pacemaker/pcmk_scheduler.c if (node->details->is_dc) { node 600 lib/pacemaker/pcmk_scheduler.c if ((fencing == NULL) && node->details->unclean) { node 603 lib/pacemaker/pcmk_scheduler.c pcmk__node_name(node)); node 52 lib/pacemaker/pcmk_simulate.c if (action->node != NULL) { node 53 lib/pacemaker/pcmk_simulate.c action_host = action->node->details->uname; node 477 lib/pacemaker/pcmk_simulate.c const char *node = crm_element_value(action->xml, PCMK__META_ON_NODE); node 481 lib/pacemaker/pcmk_simulate.c out->message(out, "inject-pseudo-action", node, task); node 517 lib/pacemaker/pcmk_simulate.c char *node = crm_element_value_copy(action->xml, PCMK__META_ON_NODE); node 524 lib/pacemaker/pcmk_simulate.c crm_debug("No history injection for %s op on %s", operation, node); node 530 lib/pacemaker/pcmk_simulate.c free(node); node 542 lib/pacemaker/pcmk_simulate.c free(node); node 558 lib/pacemaker/pcmk_simulate.c out->message(out, "inject-rsc-action", resource, operation, node, node 574 lib/pacemaker/pcmk_simulate.c cib_node = pcmk__inject_node(fake_cib, node, node 575 lib/pacemaker/pcmk_simulate.c ((router_node == NULL)? uuid: node)); node 586 lib/pacemaker/pcmk_simulate.c free(node); node 594 lib/pacemaker/pcmk_simulate.c out->message(out, "inject-rsc-action", resource, op->op_type, node, node 606 lib/pacemaker/pcmk_simulate.c op->interval_ms, node); node 617 lib/pacemaker/pcmk_simulate.c op->op_type, op->interval_ms, node); node 652 lib/pacemaker/pcmk_simulate.c free(node); node 671 lib/pacemaker/pcmk_simulate.c const char *node = crm_element_value(action->xml, PCMK__META_ON_NODE); node 677 lib/pacemaker/pcmk_simulate.c out->message(out, "inject-cluster-action", node, task, rsc); node 322 lib/pacemaker/pcmk_status.c pcmk_node_t *node = (pcmk_node_t *) iter->data; node 324 lib/pacemaker/pcmk_status.c if (node->details->standby && node->details->online) { node 326 lib/pacemaker/pcmk_status.c } else if (node->details->maintenance && node->details->online) { node 328 lib/pacemaker/pcmk_status.c } else if (node->details->online) { node 332 lib/pacemaker/pcmk_status.c pcmk__add_word(&offline_nodes, 0, pcmk__node_name(node)); node 79 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c xmlNode *node = NULL; node 88 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c node = getXpathResult(xpath_obj, 0); node 89 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c assert_string_equal(crm_element_value(node, PCMK_XA_ID), ticket_id); node 99 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c node = getXpathResult(xpath_obj, 0); node 100 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c assert_string_equal(crm_element_value(node, PCMK_XA_NAME), attr_name); node 101 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_get_attr_test.c assert_string_equal(crm_element_value(node, PCMK_XA_VALUE), attr_value); node 58 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c xmlNode *node = NULL; node 77 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c node = getXpathResult(xpath_obj, 0); node 78 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_string_equal(crm_element_value(node, PCMK_XA_STATUS), PCMK_VALUE_REVOKED); node 79 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_string_equal(crm_element_value(node, PCMK__XA_GRANTED), "false"); node 80 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_string_equal(crm_element_value(node, PCMK_XA_STANDBY), PCMK_VALUE_FALSE); node 81 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_string_equal(crm_element_value(node, "owner"), "1"); node 87 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c node = getXpathResult(xpath_obj, 0); node 88 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_string_equal(crm_element_value(node, PCMK_XA_STATUS), PCMK_VALUE_GRANTED); node 89 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_string_equal(crm_element_value(node, PCMK__XA_GRANTED), "true"); node 90 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_string_equal(crm_element_value(node, PCMK_XA_STANDBY), PCMK_VALUE_FALSE); node 91 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_null(crm_element_value(node, "owner")); node 97 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c node = getXpathResult(xpath_obj, 0); node 98 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_string_equal(crm_element_value(node, PCMK_XA_STATUS), PCMK_VALUE_GRANTED); node 99 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_string_equal(crm_element_value(node, PCMK__XA_GRANTED), "true"); node 100 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_string_equal(crm_element_value(node, PCMK_XA_STANDBY), PCMK_VALUE_FALSE); node 101 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_null(crm_element_value(node, "owner")); node 110 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c xmlNode *node = NULL; node 124 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c node = getXpathResult(xpath_obj, 0); node 125 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_string_equal(crm_element_value(node, PCMK_XA_STATUS), PCMK_VALUE_REVOKED); node 126 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_string_equal(crm_element_value(node, PCMK__XA_GRANTED), "false"); node 127 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_string_equal(crm_element_value(node, PCMK_XA_STANDBY), PCMK_VALUE_FALSE); node 128 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_info_test.c assert_string_equal(crm_element_value(node, "owner"), "1"); node 160 lib/pengine/bundle.c const pcmk_node_t *node) node 168 lib/pengine/bundle.c if (pcmk__same_node(node, replica->node)) { node 685 lib/pengine/bundle.c pcmk_node_t *node = NULL; node 735 lib/pengine/bundle.c node = pcmk_find_node(parent->cluster, uname); node 736 lib/pengine/bundle.c if (node == NULL) { node 737 lib/pengine/bundle.c node = pe_create_node(uname, uname, PCMK_VALUE_REMOTE, node 740 lib/pengine/bundle.c node->weight = -PCMK_SCORE_INFINITY; node 742 lib/pengine/bundle.c node->rsc_discover_mode = pcmk_probe_never; node 764 lib/pengine/bundle.c replica->node = pe__copy_node(node); node 765 lib/pengine/bundle.c replica->node->weight = 500; node 766 lib/pengine/bundle.c replica->node->rsc_discover_mode = pcmk_probe_exclusive; node 774 lib/pengine/bundle.c (gpointer) replica->node->details->id, node 775 lib/pengine/bundle.c pe__copy_node(replica->node)); node 778 lib/pengine/bundle.c pcmk_node_t *copy = pe__copy_node(replica->node); node 781 lib/pengine/bundle.c (gpointer) replica->node->details->id, copy); node 789 lib/pengine/bundle.c while (g_hash_table_iter_next(&gIter, NULL, (void **)&node)) { node 790 lib/pengine/bundle.c if (pcmk__is_pacemaker_remote_node(node)) { node 792 lib/pengine/bundle.c node->weight = -PCMK_SCORE_INFINITY; node 796 lib/pengine/bundle.c replica->node->details->remote_rsc = replica->remote; node 804 lib/pengine/bundle.c pcmk__insert_dup(replica->node->details->attrs, node 943 lib/pengine/bundle.c pcmk_node_t *node = NULL; node 955 lib/pengine/bundle.c node = replica->container->allocated_to; node 956 lib/pengine/bundle.c if (node == NULL) { node 960 lib/pengine/bundle.c node = pcmk__current_node(replica->container); node 963 lib/pengine/bundle.c if(node == NULL) { node 969 lib/pengine/bundle.c rsc->id, pcmk__node_name(node)); node 971 lib/pengine/bundle.c crm_xml_add(xml, field, node->details->uname); node 974 lib/pengine/bundle.c return node->details->uname; node 1402 lib/pengine/bundle.c pe__find_bundle_replica(const pcmk_resource_t *bundle, const pcmk_node_t *node) node 1406 lib/pengine/bundle.c pcmk__assert((bundle != NULL) && (node != NULL)); node 1413 lib/pengine/bundle.c pcmk__assert((replica != NULL) && (replica->node != NULL)); node 1414 lib/pengine/bundle.c if (pcmk__same_node(replica->node, node)) { node 1604 lib/pengine/bundle.c pcmk_node_t *node, uint32_t show_opts) node 1627 lib/pengine/bundle.c pe__common_output_html(out, rsc, buffer, node, show_opts); node 1764 lib/pengine/bundle.c pcmk_node_t *node, uint32_t show_opts) node 1787 lib/pengine/bundle.c pe__common_output_text(out, rsc, buffer, node, show_opts); node 1908 lib/pengine/bundle.c pcmk_node_t *node = NULL; node 1930 lib/pengine/bundle.c node = pcmk__current_node(replica->container); node 1931 lib/pengine/bundle.c common_print(rsc, pre_text, buffer, node, options, print_data); node 2013 lib/pengine/bundle.c if (replica->node) { node 2014 lib/pengine/bundle.c free(replica->node); node 2015 lib/pengine/bundle.c replica->node = NULL; node 2189 lib/pengine/bundle.c pcmk_node_t *node = NULL; node 2229 lib/pengine/bundle.c node = container->fns->active_node(container, count_all, count_clean); node 2231 lib/pengine/bundle.c return node; node 2241 lib/pengine/bundle.c node = node_iter->data; node 2244 lib/pengine/bundle.c if (g_hash_table_insert(nodes, (gpointer) node->details, node 2245 lib/pengine/bundle.c (gpointer) node) node 2246 lib/pengine/bundle.c && !pe__count_active_node(rsc, node, &active, count_all, node 820 lib/pengine/clone.c pcmk_node_t *node = (pcmk_node_t *) nIter->data; node 823 lib/pengine/clone.c node->details->uname) == NULL) { node 824 lib/pengine/clone.c pcmk__add_word(&stopped_list, 1024, node->details->uname); node 1151 lib/pengine/clone.c pcmk_node_t *node = (pcmk_node_t *) nIter->data; node 1154 lib/pengine/clone.c node->details->uname) == NULL) node 1155 lib/pengine/clone.c && pcmk__str_in_list(node->details->uname, only_node, node 1157 lib/pengine/clone.c xmlNode *probe_op = pe__failed_probe_for_rsc(rsc, node->details->uname); node 1173 lib/pengine/clone.c g_hash_table_insert(stopped, strdup(node->details->uname), node 1176 lib/pengine/clone.c pcmk__insert_dup(stopped, node->details->uname, state); node 175 lib/pengine/complex.c pcmk_node_t *node, pcmk_scheduler_t *scheduler) node 191 lib/pengine/complex.c if (node) { node 196 lib/pengine/complex.c rule_data.node_hash = node->details->attrs; node 232 lib/pengine/complex.c const pcmk_node_t *node, pcmk_scheduler_t *scheduler) node 242 lib/pengine/complex.c if (node) { node 243 lib/pengine/complex.c rule_data.node_hash = node->details->attrs; node 251 lib/pengine/complex.c get_rsc_attributes(meta_hash, rsc->parent, node, scheduler); node 484 lib/pengine/complex.c pe_rsc_params(pcmk_resource_t *rsc, const pcmk_node_t *node, node 499 lib/pengine/complex.c if ((node != NULL) && (node->details->uname != NULL)) { node 500 lib/pengine/complex.c node_name = node->details->uname; node 513 lib/pengine/complex.c get_rsc_attributes(params_on_node, rsc, node, scheduler); node 1166 lib/pengine/complex.c pe__count_active_node(const pcmk_resource_t *rsc, pcmk_node_t *node, node 1173 lib/pengine/complex.c CRM_CHECK((rsc != NULL) && (node != NULL) && (active != NULL), node 1176 lib/pengine/complex.c is_happy = node->details->online && !node->details->unclean; node 1189 lib/pengine/complex.c if (pcmk__same_node(node, rsc->partial_migration_source)) { node 1190 lib/pengine/complex.c *active = node; // This is the migration source node 1197 lib/pengine/complex.c *active = node; // This is the first clean node node 1203 lib/pengine/complex.c *active = node; // This is the first node checked node 77 lib/pengine/failcounts.c block_failure(const pcmk_node_t *node, pcmk_resource_t *rsc, node 137 lib/pengine/failcounts.c node->details->uname, xml_name, node 278 lib/pengine/failcounts.c const pcmk_node_t *node;// Node to check for fail count node 309 lib/pengine/failcounts.c (const char *) key, pcmk__node_name(fc_data->node), node 350 lib/pengine/failcounts.c fc_data->failcount += pe_get_failcount(fc_data->node, filler, node 373 lib/pengine/failcounts.c pe_get_failcount(const pcmk_node_t *node, pcmk_resource_t *rsc, node 377 lib/pengine/failcounts.c .node = node, node 389 lib/pengine/failcounts.c g_hash_table_foreach(node->details->attrs, update_failcount_for_attr, node 396 lib/pengine/failcounts.c && block_failure(node, rsc, xml_op)) { node 413 lib/pengine/failcounts.c rsc->id, pcmk__node_name(node), node 439 lib/pengine/failcounts.c pcmk__node_name(node)); node 446 lib/pengine/failcounts.c pcmk__node_name(node)); node 470 lib/pengine/failcounts.c pe__clear_failcount(pcmk_resource_t *rsc, const pcmk_node_t *node, node 476 lib/pengine/failcounts.c CRM_CHECK(rsc && node && reason && scheduler, return NULL); node 479 lib/pengine/failcounts.c clear = custom_action(rsc, key, PCMK_ACTION_CLEAR_FAILCOUNT, node, FALSE, node 483 lib/pengine/failcounts.c rsc->id, pcmk__node_name(node), reason, clear->uuid); node 44 lib/pengine/native.c native_priority_to_node(pcmk_resource_t *rsc, pcmk_node_t *node, node 61 lib/pengine/native.c node->details->priority += priority; node 63 lib/pengine/native.c pcmk__node_name(node), node->details->priority, node 70 lib/pengine/native.c if (node->details->remote_rsc node 71 lib/pengine/native.c && node->details->remote_rsc->container) { node 72 lib/pengine/native.c GList *gIter = node->details->remote_rsc->container->running_on; node 85 lib/pengine/native.c pcmk__node_name(node)); node 91 lib/pengine/native.c native_add_running(pcmk_resource_t *rsc, pcmk_node_t *node, node 96 lib/pengine/native.c CRM_CHECK(node != NULL, return); node 101 lib/pengine/native.c if (pcmk__str_eq(a_node->details->id, node->details->id, pcmk__str_casei)) { node 106 lib/pengine/native.c pcmk__rsc_trace(rsc, "Adding %s to %s %s", rsc->id, pcmk__node_name(node), node 109 lib/pengine/native.c rsc->running_on = g_list_append(rsc->running_on, node); node 111 lib/pengine/native.c node->details->running_rsc = g_list_append(node->details->running_rsc, rsc); node 112 lib/pengine/native.c native_priority_to_node(rsc, node, failed); node 113 lib/pengine/native.c if (node->details->maintenance) { node 123 lib/pengine/native.c resource_location(rsc, node, PCMK_SCORE_INFINITY, node 126 lib/pengine/native.c while(p && node->details->online) { node 128 lib/pengine/native.c p->running_on = g_list_append(p->running_on, node); node 182 lib/pengine/native.c rsc->id, pcmk__node_name(node), node 187 lib/pengine/native.c rsc->id, pcmk__node_name(node)); node 191 lib/pengine/native.c native_add_running(rsc->parent, node, scheduler, FALSE); node 244 lib/pengine/native.c rsc_is_on_node(pcmk_resource_t *rsc, const pcmk_node_t *node, int flags) node 247 lib/pengine/native.c rsc->id, pcmk__node_name(node)); node 253 lib/pengine/native.c if (pcmk__same_node((pcmk_node_t *) iter->data, node)) { node 264 lib/pengine/native.c && pcmk__same_node(rsc->allocated_to, node)) { node 325 lib/pengine/native.c native_parameter(pcmk_resource_t *rsc, pcmk_node_t *node, gboolean create, node 335 lib/pengine/native.c params = pe_rsc_params(rsc, node, scheduler); node 513 lib/pengine/native.c pcmk_node_t *node = (pcmk_node_t *) gIter->data; node 517 lib/pengine/native.c pre_text, pcmk__s(node->details->uname, ""), node 518 lib/pengine/native.c node->details->id, pcmk__btoa(!node->details->online)); node 537 lib/pengine/native.c add_output_node(GString *s, const char *node, bool have_nodes) node 540 lib/pengine/native.c g_string_append(s, node); node 560 lib/pengine/native.c const pcmk_node_t *node, uint32_t show_opts, node 581 lib/pengine/native.c if ((node == NULL) && (rsc->lock_node != NULL)) { node 582 lib/pengine/native.c node = rsc->lock_node; node 586 lib/pengine/native.c node = NULL; node 612 lib/pengine/native.c if (node) { node 613 lib/pengine/native.c pcmk__add_word(&outstr, 0, pcmk__node_name(node)); node 618 lib/pengine/native.c xmlNode *probe_op = pe__failed_probe_for_rsc(rsc, node ? node->details->uname : NULL); node 630 lib/pengine/native.c if (node && !(node->details->online) && node->details->unclean) { node 633 lib/pengine/native.c if (node && (node == rsc->lock_node)) { node 727 lib/pengine/native.c const char *name, const pcmk_node_t *node, node 773 lib/pengine/native.c content = pcmk__native_output_string(rsc, name, node, show_opts, node 783 lib/pengine/native.c const char *name, const pcmk_node_t *node, node 804 lib/pengine/native.c gchar *s = pcmk__native_output_string(rsc, name, node, show_opts, node 820 lib/pengine/native.c const pcmk_node_t *node, long options, void *print_data) node 870 lib/pengine/native.c gchar *resource_s = pcmk__native_output_string(rsc, name, node, options, node 942 lib/pengine/native.c const pcmk_node_t *node = NULL; node 951 lib/pengine/native.c node = pcmk__current_node(rsc); node 953 lib/pengine/native.c if (node == NULL) { node 955 lib/pengine/native.c node = rsc->pending_node; node 958 lib/pengine/native.c common_print(rsc, pre_text, rsc_printable_id(rsc), node, options, print_data); node 1037 lib/pengine/native.c pcmk_node_t *node = (pcmk_node_t *) gIter->data; node 1038 lib/pengine/native.c const char *cached = pcmk__btoa(node->details->online); node 1041 lib/pengine/native.c PCMK_XA_NAME, node->details->uname, node 1042 lib/pengine/native.c PCMK_XA_ID, node->details->id, node 1063 lib/pengine/native.c const pcmk_node_t *node = pcmk__current_node(rsc); node 1071 lib/pengine/native.c if (node == NULL) { node 1073 lib/pengine/native.c node = rsc->pending_node; node 1075 lib/pengine/native.c return pe__common_output_html(out, rsc, rsc_printable_id(rsc), node, show_opts); node 1088 lib/pengine/native.c const pcmk_node_t *node = pcmk__current_node(rsc); node 1096 lib/pengine/native.c if (node == NULL) { node 1098 lib/pengine/native.c node = rsc->pending_node; node 1100 lib/pengine/native.c return pe__common_output_text(out, rsc, rsc_printable_id(rsc), node, show_opts); node 1171 lib/pengine/native.c pcmk_node_t *node = (pcmk_node_t *) gIter->data; node 1173 lib/pengine/native.c if (*list == NULL || pe_find_node_id(*list, node->details->id) == NULL) { node 1174 lib/pengine/native.c *list = g_list_append(*list, node); node 1230 lib/pengine/native.c pcmk_node_t *node = (pcmk_node_t *) gIter2->data; node 1233 lib/pengine/native.c if (node->details->unclean == FALSE && node->details->online == FALSE && node 1238 lib/pengine/native.c node_table = g_hash_table_lookup(active_table, node->details->uname); node 1241 lib/pengine/native.c g_hash_table_insert(active_table, strdup(node->details->uname), node_table); node 56 lib/pengine/pe_actions.c const pcmk_node_t *node, const pcmk_scheduler_t *scheduler) node 65 lib/pengine/pe_actions.c key, node); node 170 lib/pengine/pe_actions.c const pcmk_node_t *node, bool optional, pcmk_scheduler_t *scheduler) node 178 lib/pengine/pe_actions.c if (node) { node 179 lib/pengine/pe_actions.c action->node = pe__copy_node(node); node 218 lib/pengine/pe_actions.c pcmk__node_name(node)); node 272 lib/pengine/pe_actions.c if ((action->rsc != NULL) && (action->node != NULL) node 278 lib/pengine/pe_actions.c action->uuid, pcmk__node_name(action->node), node 332 lib/pengine/pe_actions.c if (action->node == NULL) { node 338 lib/pengine/pe_actions.c && !(action->node->details->online) node 339 lib/pengine/pe_actions.c && (!pcmk__is_guest_or_bundle_node(action->node) node 340 lib/pengine/pe_actions.c || action->node->details->remote_requires_reset)) { node 343 lib/pengine/pe_actions.c action->uuid, pcmk__node_name(action->node)); node 346 lib/pengine/pe_actions.c && !(action->node->details->unclean)) { node 347 lib/pengine/pe_actions.c pe_fence_node(scheduler, action->node, "stop is unrunnable", false); node 351 lib/pengine/pe_actions.c && action->node->details->pending) { node 355 lib/pengine/pe_actions.c action->uuid, pcmk__node_name(action->node)); node 359 lib/pengine/pe_actions.c if (pcmk__is_guest_or_bundle_node(action->node) node 360 lib/pengine/pe_actions.c && !pe_can_fence(scheduler, action->node)) { node 369 lib/pengine/pe_actions.c action->uuid, pcmk__node_name(action->node)); node 374 lib/pengine/pe_actions.c action->uuid, pcmk__node_name(action->node)); node 383 lib/pengine/pe_actions.c action->uuid, pcmk__node_name(action->node)); node 394 lib/pengine/pe_actions.c pcmk__node_name(action->node)); node 702 lib/pengine/pe_actions.c pcmk__unpack_action_meta(pcmk_resource_t *rsc, const pcmk_node_t *node, node 727 lib/pengine/pe_actions.c .node_hash = (node == NULL)? NULL : node->details->attrs, node 805 lib/pengine/pe_actions.c GHashTable *params = pe_rsc_params(rsc, node, rsc->cluster); node 1100 lib/pengine/pe_actions.c action->meta = pcmk__unpack_action_meta(action->rsc, action->node, node 1152 lib/pengine/pe_actions.c if ((action->node != NULL) && (action->op_entry != NULL) node 1155 lib/pengine/pe_actions.c GHashTable *attrs = action->node->details->attrs; node 1213 lib/pengine/pe_actions.c node_priority_fencing_delay(const pcmk_node_t *node, node 1229 lib/pengine/pe_actions.c if (node->details->type != pcmk_node_variant_cluster) { node 1234 lib/pengine/pe_actions.c if (node->details->online) { node 1273 lib/pengine/pe_actions.c if (node->details->priority < top_priority) { node 1281 lib/pengine/pe_actions.c pe_fence_op(pcmk_node_t *node, const char *op, bool optional, node 1293 lib/pengine/pe_actions.c PCMK_ACTION_STONITH, node->details->uname, op); node 1297 lib/pengine/pe_actions.c stonith_op = custom_action(NULL, op_key, PCMK_ACTION_STONITH, node, node 1300 lib/pengine/pe_actions.c pcmk__insert_meta(stonith_op, PCMK__META_ON_NODE, node->details->uname); node 1302 lib/pengine/pe_actions.c node->details->id); node 1319 lib/pengine/pe_actions.c data = pe__compare_fencing_digest(match, agent, node, node 1324 lib/pengine/pe_actions.c "%s changed", pcmk__node_name(node), match->id); node 1331 lib/pengine/pe_actions.c pcmk__node_name(node), match->id); node 1376 lib/pengine/pe_actions.c char *delay_s = pcmk__itoa(node_priority_fencing_delay(node, node 1384 lib/pengine/pe_actions.c if(optional == FALSE && pe_can_fence(scheduler, node)) { node 1413 lib/pengine/pe_actions.c free(action->node); node 1468 lib/pengine/pe_actions.c } else if (action->node == NULL) { node 1471 lib/pengine/pe_actions.c } else if (pcmk__same_node(on_node, action->node)) { node 1497 lib/pengine/pe_actions.c } else if (action->node == NULL) { node 1501 lib/pengine/pe_actions.c action->node = pe__copy_node(on_node); node 1504 lib/pengine/pe_actions.c } else if (pcmk__same_node(on_node, action->node)) { node 1527 lib/pengine/pe_actions.c if ((action->node != NULL) node 1529 lib/pengine/pe_actions.c && pcmk__str_eq(on_node->details->id, action->node->details->id, node 1553 lib/pengine/pe_actions.c pe__resource_actions(const pcmk_resource_t *rsc, const pcmk_node_t *node, node 1560 lib/pengine/pe_actions.c result = find_actions_exact(rsc->actions, key, node); node 1562 lib/pengine/pe_actions.c result = find_actions(rsc->actions, key, node); node 1630 lib/pengine/pe_actions.c pe__clear_resource_history(pcmk_resource_t *rsc, const pcmk_node_t *node) node 1632 lib/pengine/pe_actions.c pcmk__assert((rsc != NULL) && (node != NULL)); node 1635 lib/pengine/pe_actions.c PCMK_ACTION_LRM_DELETE, node, FALSE, rsc->cluster); node 99 lib/pengine/pe_digest.c const pcmk_node_t *node, GHashTable *params, node 148 lib/pengine/pe_digest.c params = pcmk__unpack_action_rsc_params(action_config, node->details->attrs, node 157 lib/pengine/pe_digest.c params = pcmk__unpack_action_meta(rsc, node, task, *interval_ms, node 307 lib/pengine/pe_digest.c guint *interval_ms, const pcmk_node_t *node, node 338 lib/pengine/pe_digest.c params = pe_rsc_params(rsc, node, scheduler); node 339 lib/pengine/pe_digest.c calculate_main_digest(data, rsc, node, params, task, interval_ms, xml_op, node 365 lib/pengine/pe_digest.c pcmk_node_t *node, const xmlNode *xml_op, node 371 lib/pengine/pe_digest.c data = g_hash_table_lookup(node->details->digest_cache, key); node 373 lib/pengine/pe_digest.c data = pe__calculate_digests(rsc, task, &interval_ms, node, xml_op, node 376 lib/pengine/pe_digest.c g_hash_table_insert(node->details->digest_cache, strdup(key), data); node 395 lib/pengine/pe_digest.c pcmk_node_t *node, pcmk_scheduler_t *scheduler) node 405 lib/pengine/pe_digest.c pcmk__assert(node != NULL); node 412 lib/pengine/pe_digest.c data = rsc_action_digest(rsc, task, interval_ms, node, xml_op, node 421 lib/pengine/pe_digest.c interval_ms, task, rsc->id, pcmk__node_name(node), node 446 lib/pengine/pe_digest.c interval_ms, task, rsc->id, pcmk__node_name(node), node 456 lib/pengine/pe_digest.c interval_ms, task, rsc->id, pcmk__node_name(node), node 552 lib/pengine/pe_digest.c pcmk_node_t *node, pcmk_scheduler_t *scheduler) node 558 lib/pengine/pe_digest.c node, NULL, TRUE, scheduler); node 561 lib/pengine/pe_digest.c node_summary = pcmk__node_attr(node, CRM_ATTR_DIGESTS_ALL, NULL, node 576 lib/pengine/pe_digest.c node_summary = pcmk__node_attr(node, CRM_ATTR_DIGESTS_SECURE, NULL, node 585 lib/pengine/pe_digest.c pcmk__node_name(node)); node 602 lib/pengine/pe_digest.c pcmk__node_name(node), digest); node 609 lib/pengine/pe_digest.c rsc->id, pcmk__node_name(node), digest); node 66 lib/pengine/pe_health.c const pcmk_node_t *node; // Node that health score is being summed for node 89 lib/pengine/pe_health.c (const char *) key, pcmk__node_name(health_sum->node), node 110 lib/pengine/pe_health.c pe__sum_node_health_scores(const pcmk_node_t *node, int base_health) node 112 lib/pengine/pe_health.c struct health_sum health_sum = { node, base_health, }; node 114 lib/pengine/pe_health.c pcmk__assert(node != NULL); node 115 lib/pengine/pe_health.c g_hash_table_foreach(node->details->attrs, add_node_health_value, node 130 lib/pengine/pe_health.c pe__node_health(pcmk_node_t *node) node 139 lib/pengine/pe_health.c pcmk__assert(node != NULL); node 141 lib/pengine/pe_health.c strategy = pe__health_strategy(node->details->data_set); node 146 lib/pengine/pe_health.c g_hash_table_iter_init(&iter, node->details->attrs); node 168 lib/pengine/pe_health.c name, pcmk__node_name(node), value, node 20 lib/pengine/pe_notif.c const pcmk_node_t *node; node 72 lib/pengine/pe_notif.c if ((entry_a->node == NULL) && (entry_b->node == NULL)) { node 75 lib/pengine/pe_notif.c if (entry_a->node == NULL) { node 78 lib/pengine/pe_notif.c if (entry_b->node == NULL) { node 83 lib/pengine/pe_notif.c return strcmp(entry_a->node->details->id, entry_b->node->details->id); node 101 lib/pengine/pe_notif.c dup->node = entry->node; node 130 lib/pengine/pe_notif.c const pcmk_node_t *node = (const pcmk_node_t *) iter->data; node 132 lib/pengine/pe_notif.c if (node->details->uname == NULL) { node 138 lib/pengine/pe_notif.c pcmk__add_word(all_node_names, 1024, node->details->uname); node 143 lib/pengine/pe_notif.c if (pcmk__is_guest_or_bundle_node(node) node 144 lib/pengine/pe_notif.c && (node->details->remote_rsc->container->running_on != NULL)) { node 145 lib/pengine/pe_notif.c node = pcmk__current_node(node->details->remote_rsc->container); node 146 lib/pengine/pe_notif.c if (node->details->uname == NULL) { node 150 lib/pengine/pe_notif.c pcmk__add_word(host_node_names, 1024, node->details->uname); node 205 lib/pengine/pe_notif.c CRM_LOG_ASSERT((node_names == NULL) || (entry->node != NULL)); node 206 lib/pengine/pe_notif.c if ((node_names != NULL) && (entry->node == NULL)) { node 219 lib/pengine/pe_notif.c if ((node_names != NULL) && (entry->node->details->uname != NULL)) { node 220 lib/pengine/pe_notif.c pcmk__add_word(node_names, 1024, entry->node->details->uname); node 310 lib/pengine/pe_notif.c new_notify_action(pcmk_resource_t *rsc, const pcmk_node_t *node, node 320 lib/pengine/pe_notif.c CRM_CHECK((rsc != NULL) && (node != NULL), return NULL); node 327 lib/pengine/pe_notif.c } else if (!node->details->online) { node 334 lib/pengine/pe_notif.c rsc->id, pcmk__node_name(node), skip_reason); node 342 lib/pengine/pe_notif.c rsc->id, pcmk__node_name(node), value, task); node 346 lib/pengine/pe_notif.c notify_action = custom_action(rsc, key, op->task, node, node 369 lib/pengine/pe_notif.c new_post_notify_action(pcmk_resource_t *rsc, const pcmk_node_t *node, node 377 lib/pengine/pe_notif.c notify = new_notify_action(rsc, node, n_data->post, n_data->post_done, node 519 lib/pengine/pe_notif.c new_notify_entry(const pcmk_resource_t *rsc, const pcmk_node_t *node) node 524 lib/pengine/pe_notif.c entry->node = node; node 542 lib/pengine/pe_notif.c const pcmk_node_t *node = NULL; node 565 lib/pengine/pe_notif.c node = rsc->running_on->data; // First is sufficient node 567 lib/pengine/pe_notif.c entry = new_notify_entry(rsc, node); node 594 lib/pengine/pe_notif.c rsc->id, pcmk__node_name(node), node 609 lib/pengine/pe_notif.c && (op->node != NULL)) { node 612 lib/pengine/pe_notif.c if ((task == pcmk_action_stop) && op->node->details->unclean) { node 618 lib/pengine/pe_notif.c entry = new_notify_entry(rsc, op->node); node 783 lib/pengine/pe_notif.c if ((action != NULL) && (action->node != NULL)) { node 784 lib/pengine/pe_notif.c pcmk_resource_t *remote_rsc = action->node->details->remote_rsc; node 821 lib/pengine/pe_notif.c && (op->node != NULL)) { node 1000 lib/pengine/pe_notif.c add_notify_env(n_data, "notify_stop_uname", stop->node->details->uname); node 63 lib/pengine/pe_output.c add_extra_info(const pcmk_node_t *node, GList *rsc_list, node 76 lib/pengine/pe_output.c if (add_extra_info(node, rsc->children, scheduler, attrname, node 86 lib/pengine/pe_output.c params = pe_rsc_params(rsc, node, scheduler); node 182 lib/pengine/pe_output.c xmlNodePtr node = user_data; node 184 lib/pengine/pe_output.c node = pcmk__xe_create(node, (const char *) key); node 185 lib/pengine/pe_output.c pcmk__xe_set_content(node, "%s", (const char *) value); node 356 lib/pengine/pe_output.c get_node_feature_set(const pcmk_node_t *node) node 358 lib/pengine/pe_output.c if (node->details->online && node->details->expected_up node 359 lib/pengine/pe_output.c && !pcmk__is_pacemaker_remote_node(node)) { node 361 lib/pengine/pe_output.c const char *feature_set = g_hash_table_lookup(node->details->attrs, node 377 lib/pengine/pe_output.c pcmk_node_t *node = gIter->data; node 378 lib/pengine/pe_output.c const char *node_feature_set = get_node_feature_set(node); node 558 lib/pengine/pe_output.c pe__node_display_name(pcmk_node_t *node, bool print_detail) node 565 lib/pengine/pe_output.c pcmk__assert((node != NULL) && (node->details != NULL) node 566 lib/pengine/pe_output.c && (node->details->uname != NULL)); node 569 lib/pengine/pe_output.c if (print_detail && pcmk__is_guest_or_bundle_node(node)) { node 570 lib/pengine/pe_output.c const pcmk_resource_t *container = node->details->remote_rsc->container; node 582 lib/pengine/pe_output.c if (print_detail && !pcmk__str_eq(node->details->uname, node->details->id, pcmk__str_casei)) { node 583 lib/pengine/pe_output.c node_id = node->details->id; node 587 lib/pengine/pe_output.c name_len = strlen(node->details->uname) + 1; node 597 lib/pengine/pe_output.c strcpy(node_name, node->details->uname); node 743 lib/pengine/pe_output.c pcmk_node_t *node = (pcmk_node_t *) gIter2->data; node 745 lib/pengine/pe_output.c if (node->weight < 0) { node 747 lib/pengine/pe_output.c out->message(out, "ban", node, location, show_opts); node 907 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li", NULL); node 910 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, PCMK__VALUE_BOLD); node 914 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, NULL); node 919 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, node 924 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, NULL); node 928 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, NULL); node 932 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, node 937 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, NULL); node 941 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, node 1062 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li", NULL); node 1065 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, NULL); node 1068 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, PCMK__VALUE_BOLD); node 1071 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, NULL); node 1077 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li", NULL); node 1080 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, NULL); node 1083 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, PCMK__VALUE_BOLD); node 1086 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, NULL); node 1229 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li", NULL); node 1232 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, PCMK__VALUE_BOLD); node 1235 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, NULL); node 1239 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, NULL); node 1242 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, NULL); node 1246 lib/pengine/pe_output.c child = pcmk__html_create(node, PCMK__XE_SPAN, NULL, NULL); node 1595 lib/pengine/pe_output.c xmlNodePtr node = NULL; node 1611 lib/pengine/pe_output.c node = pcmk__output_create_xml_node(out, PCMK_XE_FAILURE, node 1638 lib/pengine/pe_output.c pcmk__xe_set_props(node, node 1706 lib/pengine/pe_output.c status_node(pcmk_node_t *node, xmlNodePtr parent, uint32_t show_opts) node 1708 lib/pengine/pe_output.c int health = pe__node_health(node); node 1712 lib/pengine/pe_output.c if (node->details->online) { node 1724 lib/pengine/pe_output.c if (node->details->standby_onfail && (node->details->running_rsc != NULL)) { node 1731 lib/pengine/pe_output.c } else if (node->details->standby_onfail) { node 1737 lib/pengine/pe_output.c } else if (node->details->standby && (node->details->running_rsc != NULL)) { node 1743 lib/pengine/pe_output.c } else if (node->details->standby) { node 1750 lib/pengine/pe_output.c if (node->details->maintenance) { node 1770 lib/pengine/pe_output.c const char *feature_set = get_node_feature_set(node); node 1782 lib/pengine/pe_output.c pcmk_node_t *node = va_arg(args, pcmk_node_t *); node 1788 lib/pengine/pe_output.c char *node_name = pe__node_display_name(node, pcmk_is_set(show_opts, pcmk_show_node_id)); node 1795 lib/pengine/pe_output.c GList *rscs = pe__filter_rsc_list(node->details->running_rsc, only_rsc); node 1801 lib/pengine/pe_output.c status_node(node, item_node, show_opts); node 1821 lib/pengine/pe_output.c status_node(node, item_node, show_opts); node 1823 lib/pengine/pe_output.c for (lpc2 = node->details->running_rsc; lpc2 != NULL; lpc2 = lpc2->next) { node 1841 lib/pengine/pe_output.c status_node(node, item_node, show_opts); node 1860 lib/pengine/pe_output.c node_text_status(const pcmk_node_t *node) node 1862 lib/pengine/pe_output.c if (node->details->unclean) { node 1863 lib/pengine/pe_output.c if (node->details->online) { node 1866 lib/pengine/pe_output.c } else if (node->details->pending) { node 1873 lib/pengine/pe_output.c } else if (node->details->pending) { node 1876 lib/pengine/pe_output.c } else if (node->details->standby_onfail && node->details->online) { node 1879 lib/pengine/pe_output.c } else if (node->details->standby) { node 1880 lib/pengine/pe_output.c if (node->details->online) { node 1881 lib/pengine/pe_output.c if (node->details->running_rsc) { node 1890 lib/pengine/pe_output.c } else if (node->details->maintenance) { node 1891 lib/pengine/pe_output.c if (node->details->online) { node 1897 lib/pengine/pe_output.c } else if (node->details->online) { node 1908 lib/pengine/pe_output.c pcmk_node_t *node = va_arg(args, pcmk_node_t *); node 1915 lib/pengine/pe_output.c char *node_name = pe__node_display_name(node, pcmk_is_set(show_opts, pcmk_show_node_id)); node 1917 lib/pengine/pe_output.c int health = pe__node_health(node); node 1920 lib/pengine/pe_output.c if (pcmk__is_guest_or_bundle_node(node)) { node 1922 lib/pengine/pe_output.c } else if (pcmk__is_remote_node(node)) { node 1927 lib/pengine/pe_output.c pcmk__g_strcat(str, " ", node_name, ": ", node_text_status(node), NULL); node 1935 lib/pengine/pe_output.c const char *feature_set = get_node_feature_set(node); node 1944 lib/pengine/pe_output.c GList *rscs = pe__filter_rsc_list(node->details->running_rsc, only_rsc); node 1965 lib/pengine/pe_output.c for (gIter2 = node->details->running_rsc; gIter2 != NULL; gIter2 = gIter2->next) { node 1983 lib/pengine/pe_output.c char *node_name = pe__node_display_name(node, pcmk_is_set(show_opts, pcmk_show_node_id)); node 2043 lib/pengine/pe_output.c pcmk_node_t *node = va_arg(args, pcmk_node_t *); node 2050 lib/pengine/pe_output.c const char *online = pcmk__btoa(node->details->online); node 2051 lib/pengine/pe_output.c const char *standby = pcmk__btoa(node->details->standby); node 2052 lib/pengine/pe_output.c const char *standby_onfail = pcmk__btoa(node->details->standby_onfail); node 2053 lib/pengine/pe_output.c const char *maintenance = pcmk__btoa(node->details->maintenance); node 2054 lib/pengine/pe_output.c const char *pending = pcmk__btoa(node->details->pending); node 2055 lib/pengine/pe_output.c const char *unclean = pcmk__btoa(node->details->unclean); node 2056 lib/pengine/pe_output.c const char *health = health_text(pe__node_health(node)); node 2057 lib/pengine/pe_output.c const char *feature_set = get_node_feature_set(node); node 2058 lib/pengine/pe_output.c const char *shutdown = pcmk__btoa(node->details->shutdown); node 2059 lib/pengine/pe_output.c const char *expected_up = pcmk__btoa(node->details->expected_up); node 2060 lib/pengine/pe_output.c const char *is_dc = pcmk__btoa(node->details->is_dc); node 2061 lib/pengine/pe_output.c int length = g_list_length(node->details->running_rsc); node 2063 lib/pengine/pe_output.c const char *node_type = node_type_str(node->details->type); node 2068 lib/pengine/pe_output.c PCMK_XA_NAME, node->details->uname, node 2069 lib/pengine/pe_output.c PCMK_XA_ID, node->details->id, node 2088 lib/pengine/pe_output.c if (pcmk__is_guest_or_bundle_node(node)) { node 2091 lib/pengine/pe_output.c node->details->remote_rsc->container->id); node 2097 lib/pengine/pe_output.c for (lpc = node->details->running_rsc; lpc != NULL; lpc = lpc->next) { node 2109 lib/pengine/pe_output.c PCMK_XA_NAME, node->details->uname, node 2205 lib/pengine/pe_output.c const pcmk_node_t *node = pcmk__current_node(rsc); node 2210 lib/pengine/pe_output.c if (node == NULL) { node 2211 lib/pengine/pe_output.c node = rsc->pending_node; node 2214 lib/pengine/pe_output.c node_str = pcmk__native_output_string(rsc, rsc_printable_id(rsc), node, node 2257 lib/pengine/pe_output.c xmlNode *node = NULL; node 2263 lib/pengine/pe_output.c node = pcmk__output_create_xml_node(out, PCMK_XE_OPERATION, node 2285 lib/pengine/pe_output.c pcmk__xe_set_props(node, node 2297 lib/pengine/pe_output.c pcmk__xe_set_props(node, node 2314 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, PCMK_XE_ATTRIBUTE, node 2321 lib/pengine/pe_output.c crm_xml_add(node, PCMK_XA_EXPECTED, buf); node 2342 lib/pengine/pe_output.c pcmk_node_t *node = gIter->data; node 2348 lib/pengine/pe_output.c if (!node || !node->details || !node->details->online) { node 2352 lib/pengine/pe_output.c g_hash_table_iter_init(&iter, node->details->attrs); node 2361 lib/pengine/pe_output.c if (!pcmk__str_in_list(node->details->uname, only_node, pcmk__str_star_matches|pcmk__str_casei)) { node 2368 lib/pengine/pe_output.c out->message(out, "node", node, show_opts, false, only_node, only_rsc); node 2376 lib/pengine/pe_output.c value = pcmk__node_attr(node, name, NULL, pcmk__rsc_node_current); node 2378 lib/pengine/pe_output.c add_extra = add_extra_info(node, node->details->running_rsc, node 2398 lib/pengine/pe_output.c const pcmk_node_t *node = va_arg(args, pcmk_node_t *); node 2402 lib/pengine/pe_output.c comment, pcmk__node_name(node)); node 2404 lib/pengine/pe_output.c g_hash_table_foreach(node->details->utilization, append_dump_text, &dump_text); node 2415 lib/pengine/pe_output.c const pcmk_node_t *node = va_arg(args, pcmk_node_t *); node 2416 lib/pengine/pe_output.c const char *uname = node->details->uname; node 2423 lib/pengine/pe_output.c g_hash_table_foreach(node->details->utilization, add_dump_node, xml_node); node 2433 lib/pengine/pe_output.c pcmk_node_t *node = va_arg(args, pcmk_node_t *); node 2489 lib/pengine/pe_output.c int failcount = pe_get_failcount(node, rsc, &last_failure, node 2498 lib/pengine/pe_output.c out->message(out, "node", node, show_opts, false, only_node, node 2517 lib/pengine/pe_output.c out->message(out, "node", node, show_opts, false, only_node, node 2521 lib/pengine/pe_output.c out->message(out, "resource-operation-list", scheduler, rsc, node, node 2542 lib/pengine/pe_output.c pcmk_node_t *node = (pcmk_node_t *) gIter->data; node 2544 lib/pengine/pe_output.c if (!pcmk__str_in_list(node->details->uname, only_node, node 2551 lib/pengine/pe_output.c out->message(out, "node", node, show_opts, true, only_node, only_rsc); node 2577 lib/pengine/pe_output.c pcmk_node_t *node = (pcmk_node_t *) gIter->data; node 2578 lib/pengine/pe_output.c char *node_name = pe__node_display_name(node, pcmk_is_set(show_opts, pcmk_show_node_id)); node 2580 lib/pengine/pe_output.c if (!pcmk__str_in_list(node->details->uname, only_node, node 2589 lib/pengine/pe_output.c if (node->details->unclean || node->details->pending node 2590 lib/pengine/pe_output.c || (node->details->standby_onfail && node->details->online) node 2591 lib/pengine/pe_output.c || node->details->standby || node->details->maintenance node 2594 lib/pengine/pe_output.c || (pe__node_health(node) <= 0)) { node 2597 lib/pengine/pe_output.c } else if (node->details->online) { node 2599 lib/pengine/pe_output.c if (pcmk__is_guest_or_bundle_node(node)) { node 2602 lib/pengine/pe_output.c } else if (pcmk__is_remote_node(node)) { node 2613 lib/pengine/pe_output.c if (pcmk__is_remote_node(node)) { node 2616 lib/pengine/pe_output.c } else if (pcmk__is_guest_or_bundle_node(node)) { node 2627 lib/pengine/pe_output.c out->message(out, "node", node, show_opts, true, only_node, only_rsc); node 2677 lib/pengine/pe_output.c pcmk_node_t *node = (pcmk_node_t *) gIter->data; node 2679 lib/pengine/pe_output.c if (!pcmk__str_in_list(node->details->uname, only_node, node 2684 lib/pengine/pe_output.c out->message(out, "node", node, show_opts, true, only_node, only_rsc); node 2715 lib/pengine/pe_output.c pcmk_node_t *node = pe_find_node_id(scheduler->nodes, node 2718 lib/pengine/pe_output.c if (!node || !node->details || !node->details->online) { node 2722 lib/pengine/pe_output.c if (!pcmk__str_in_list(node->details->uname, only_node, node 2730 lib/pengine/pe_output.c out->message(out, "node-history-list", scheduler, node, node_state, node 2768 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, PCMK_XE_NODE_WEIGHT, node 2775 lib/pengine/pe_output.c crm_xml_add(node, PCMK_XA_ID, rsc->id); node 2811 lib/pengine/pe_output.c xmlNodePtr node = NULL; node 2813 lib/pengine/pe_output.c node = pcmk__output_create_xml_node(out, PCMK_XE_OPERATION_HISTORY, node 2823 lib/pengine/pe_output.c crm_xml_add(node, PCMK_XA_INTERVAL, s); node 2834 lib/pengine/pe_output.c crm_xml_add(node, PCMK_XA_LAST_RC_CHANGE, s); node 2841 lib/pengine/pe_output.c crm_xml_add(node, PCMK_XA_EXEC_TIME, s); node 2847 lib/pengine/pe_output.c crm_xml_add(node, PCMK_XA_QUEUE_TIME, s); node 2883 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, PCMK_XE_PROMOTION_SCORE, node 2889 lib/pengine/pe_output.c crm_xml_add(node, PCMK_XA_NODE, chosen->details->uname); node 2951 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_xml_create_parent(out, node 2957 lib/pengine/pe_output.c pcmk__xe_set_bool_attr(node, PCMK_XA_ORPHAN, true); node 2961 lib/pengine/pe_output.c pcmk__xe_set_props(node, node 2970 lib/pengine/pe_output.c crm_xml_add(node, PCMK_XA_FAIL_COUNT, s); node 2977 lib/pengine/pe_output.c crm_xml_add(node, PCMK_XA_LAST_FAILURE, s); node 3120 lib/pengine/pe_output.c pcmk_node_t *node = va_arg(args, pcmk_node_t *); node 3147 lib/pengine/pe_output.c int failcount = pe_get_failcount(node, rsc, &last_failure, node 3173 lib/pengine/pe_output.c pcmk_node_t *node = va_arg(args, pcmk_node_t *); node 3177 lib/pengine/pe_output.c fn, rsc->id, pcmk__node_name(node)); node 3192 lib/pengine/pe_output.c pcmk_node_t *node = va_arg(args, pcmk_node_t *); node 3193 lib/pengine/pe_output.c const char *uname = node->details->uname; node 3308 lib/pengine/pe_output.c xmlNodePtr node = NULL; node 3315 lib/pengine/pe_output.c node = pcmk__output_create_xml_node(out, PCMK_XE_TICKET, node 3324 lib/pengine/pe_output.c crm_xml_add(node, PCMK_XA_LAST_GRANTED, buf); node 3338 lib/pengine/pe_output.c crm_xml_add(node, name, value); node 123 lib/pengine/pe_status_private.h pcmk_node_t *node, node 184 lib/pengine/remote.c pcmk_node_t *node; // Known node corresponding to history entry node 190 lib/pengine/remote.c pcmk_node_t *node, enum pcmk__check_parameters flag, node 195 lib/pengine/remote.c CRM_CHECK(scheduler && rsc_op && rsc && node, return); node 203 lib/pengine/remote.c check_op->node = node; node 226 lib/pengine/remote.c cb(check_op->rsc, check_op->node, check_op->rsc_op, node 235 lib/pengine/status.c pcmk_node_t *node = (pcmk_node_t *) iterator->data; node 238 lib/pengine/status.c if (node == NULL) { node 241 lib/pengine/status.c if (node->details == NULL) { node 242 lib/pengine/status.c free(node); node 249 lib/pengine/status.c crm_trace("Freeing node %s", (pcmk__is_pacemaker_remote_node(node)? node 250 lib/pengine/status.c "(guest or remote)" : pcmk__node_name(node))); node 252 lib/pengine/status.c if (node->details->attrs != NULL) { node 253 lib/pengine/status.c g_hash_table_destroy(node->details->attrs); node 255 lib/pengine/status.c if (node->details->utilization != NULL) { node 256 lib/pengine/status.c g_hash_table_destroy(node->details->utilization); node 258 lib/pengine/status.c if (node->details->digest_cache != NULL) { node 259 lib/pengine/status.c g_hash_table_destroy(node->details->digest_cache); node 261 lib/pengine/status.c g_list_free(node->details->running_rsc); node 262 lib/pengine/status.c g_list_free(node->details->allocated_rsc); node 263 lib/pengine/status.c free(node->details); node 264 lib/pengine/status.c free(node); node 495 lib/pengine/status.c pcmk_node_t *node = (pcmk_node_t *) iter->data; node 501 lib/pengine/status.c if (pcmk__str_eq(node->details->id, id, pcmk__str_casei)) { node 502 lib/pengine/status.c return node; node 71 lib/pengine/tags.c pcmk_node_t *node = pe_find_node_id(scheduler->nodes, id); node 73 lib/pengine/tags.c if (!node) { node 78 lib/pengine/tags.c retval = g_list_append(retval, strdup(node->details->uname)); node 32 lib/pengine/unpack.c pcmk_node_t *node; // Node that history is for node 70 lib/pengine/unpack.c static void unpack_rsc_op(pcmk_resource_t *rsc, pcmk_node_t *node, node 75 lib/pengine/unpack.c static void add_node_attrs(const xmlNode *xml_obj, pcmk_node_t *node, node 81 lib/pengine/unpack.c static void unpack_node_lrm(pcmk_node_t *node, const xmlNode *xml, node 86 lib/pengine/unpack.c is_dangling_guest_node(pcmk_node_t *node) node 91 lib/pengine/unpack.c if (pcmk__is_pacemaker_remote_node(node) node 92 lib/pengine/unpack.c && (node->details->remote_rsc != NULL) node 93 lib/pengine/unpack.c && (node->details->remote_rsc->container == NULL) node 94 lib/pengine/unpack.c && pcmk_is_set(node->details->remote_rsc->flags, node 112 lib/pengine/unpack.c pe_fence_node(pcmk_scheduler_t *scheduler, pcmk_node_t *node, node 115 lib/pengine/unpack.c CRM_CHECK(node, return); node 118 lib/pengine/unpack.c if (pcmk__is_guest_or_bundle_node(node)) { node 119 lib/pengine/unpack.c pcmk_resource_t *rsc = node->details->remote_rsc->container; node 126 lib/pengine/unpack.c pcmk__node_name(node), reason, rsc->id); node 130 lib/pengine/unpack.c pcmk__node_name(node), rsc->id, reason); node 136 lib/pengine/unpack.c node->details->remote_requires_reset = TRUE; node 142 lib/pengine/unpack.c } else if (is_dangling_guest_node(node)) { node 146 lib/pengine/unpack.c pcmk__node_name(node), reason); node 147 lib/pengine/unpack.c pcmk__set_rsc_flags(node->details->remote_rsc, node 150 lib/pengine/unpack.c } else if (pcmk__is_remote_node(node)) { node 151 lib/pengine/unpack.c pcmk_resource_t *rsc = node->details->remote_rsc; node 156 lib/pengine/unpack.c pcmk__node_name(node), reason); node 157 lib/pengine/unpack.c } else if(node->details->remote_requires_reset == FALSE) { node 158 lib/pengine/unpack.c node->details->remote_requires_reset = TRUE; node 160 lib/pengine/unpack.c pcmk__node_name(node), node 161 lib/pengine/unpack.c pe_can_fence(scheduler, node)? "will be fenced" : "is unclean", node 164 lib/pengine/unpack.c node->details->unclean = TRUE; node 166 lib/pengine/unpack.c pe_fence_op(node, NULL, TRUE, reason, FALSE, scheduler); node 168 lib/pengine/unpack.c } else if (node->details->unclean) { node 170 lib/pengine/unpack.c pcmk__node_name(node), node 171 lib/pengine/unpack.c pe_can_fence(scheduler, node)? "would also be fenced" : "also is unclean", node 176 lib/pengine/unpack.c pcmk__node_name(node), node 177 lib/pengine/unpack.c pe_can_fence(scheduler, node)? "will be fenced" : "is unclean", node 179 lib/pengine/unpack.c node->details->unclean = TRUE; node 180 lib/pengine/unpack.c pe_fence_op(node, NULL, TRUE, reason, priority_delay, scheduler); node 1199 lib/pengine/unpack.c unpack_transient_attributes(const xmlNode *state, pcmk_node_t *node, node 1207 lib/pengine/unpack.c add_node_attrs(attrs, node, TRUE, scheduler); node 1209 lib/pengine/unpack.c if (crm_is_true(pcmk__node_attr(node, PCMK_NODE_ATTR_STANDBY, NULL, node 1211 lib/pengine/unpack.c crm_info("%s is in standby mode", pcmk__node_name(node)); node 1212 lib/pengine/unpack.c node->details->standby = TRUE; node 1215 lib/pengine/unpack.c if (crm_is_true(pcmk__node_attr(node, PCMK_NODE_ATTR_MAINTENANCE, NULL, node 1217 lib/pengine/unpack.c crm_info("%s is in maintenance mode", pcmk__node_name(node)); node 1218 lib/pengine/unpack.c node->details->maintenance = TRUE; node 1221 lib/pengine/unpack.c discovery = pcmk__node_attr(node, node 1229 lib/pengine/unpack.c pcmk__node_name(node)); node 1474 lib/pengine/unpack.c pcmk_node_t *node = pcmk__current_node(container); node 1476 lib/pengine/unpack.c if (node) { node 1477 lib/pengine/unpack.c stop_action(container, node, FALSE); node 1597 lib/pengine/unpack.c unpack_node_terminate(const pcmk_node_t *node, const xmlNode *node_state) node 1602 lib/pengine/unpack.c const char *value_s = pcmk__node_attr(node, PCMK_NODE_ATTR_TERMINATE, node 1615 lib/pengine/unpack.c value_s, pcmk__node_name(node), pcmk_rc_str(rc)); node 1672 lib/pengine/unpack.c pending_too_long(pcmk_scheduler_t *scheduler, const pcmk_node_t *node, node 1681 lib/pengine/unpack.c if (get_effective_time(node->details->data_set) >= timeout) { node 2040 lib/pengine/unpack.c pcmk_node_t *node; node 2043 lib/pengine/unpack.c node = pcmk_find_node(scheduler, rsc_id); node 2044 lib/pengine/unpack.c if (node == NULL) { node 2045 lib/pengine/unpack.c node = pe_create_node(rsc_id, rsc_id, PCMK_VALUE_REMOTE, 0, node 2050 lib/pengine/unpack.c if (node) { node 2052 lib/pengine/unpack.c node->details->shutdown = TRUE; node 2079 lib/pengine/unpack.c const pcmk_node_t *node, pcmk_scheduler_t *scheduler) node 2088 lib/pengine/unpack.c top->id, parent->id, rsc_id, pcmk__node_name(node)); node 2108 lib/pengine/unpack.c find_anonymous_clone(pcmk_scheduler_t *scheduler, const pcmk_node_t *node, node 2120 lib/pengine/unpack.c rsc_id, pcmk__node_name(node), parent->id); node 2148 lib/pengine/unpack.c if (pcmk__same_node((pcmk_node_t *) locations->data, node)) { node 2169 lib/pengine/unpack.c parent->id, pcmk__node_name(node)); node 2192 lib/pengine/unpack.c !pcmk__same_node(inactive_instance->pending_node, node)) { node 2219 lib/pengine/unpack.c && (!node->details->online || node->details->unclean) node 2220 lib/pengine/unpack.c && !pcmk__is_guest_or_bundle_node(node) node 2227 lib/pengine/unpack.c rsc = create_anonymous_orphan(parent, rsc_id, node, scheduler); node 2234 lib/pengine/unpack.c unpack_find_resource(pcmk_scheduler_t *scheduler, const pcmk_node_t *node, node 2274 lib/pengine/unpack.c rsc = pe__find_bundle_replica(parent->parent, node); node 2278 lib/pengine/unpack.c rsc = find_anonymous_clone(scheduler, node, parent, base); node 2289 lib/pengine/unpack.c rsc_id, pcmk__node_name(node), rsc->id, node 2296 lib/pengine/unpack.c process_orphan_resource(const xmlNode *rsc_entry, const pcmk_node_t *node, node 2303 lib/pengine/unpack.c rsc_id, pcmk__node_name(node)); node 2322 lib/pengine/unpack.c process_rsc_state(pcmk_resource_t *rsc, pcmk_node_t *node, node 2331 lib/pengine/unpack.c rsc->id, pcmk_role_text(rsc->role), pcmk__node_name(node), node 2339 lib/pengine/unpack.c if (g_hash_table_lookup(iter->known_on, node->details->id) == NULL) { node 2340 lib/pengine/unpack.c pcmk_node_t *n = pe__copy_node(node); node 2358 lib/pengine/unpack.c && node->details->online == FALSE node 2359 lib/pengine/unpack.c && node->details->maintenance == FALSE node 2371 lib/pengine/unpack.c if (pcmk__is_guest_or_bundle_node(node)) { node 2377 lib/pengine/unpack.c if (pcmk__is_remote_node(node) node 2378 lib/pengine/unpack.c && (node->details->remote_rsc != NULL) node 2379 lib/pengine/unpack.c && !pcmk_is_set(node->details->remote_rsc->flags, node 2388 lib/pengine/unpack.c node->details->unseen = TRUE; node 2401 lib/pengine/unpack.c pe_fence_node(rsc->cluster, node, reason, FALSE); node 2409 lib/pengine/unpack.c if (node->details->unclean) { node 2423 lib/pengine/unpack.c demote_action(rsc, node, FALSE); node 2431 lib/pengine/unpack.c pe_fence_node(rsc->cluster, node, reason, FALSE); node 2436 lib/pengine/unpack.c node->details->standby = TRUE; node 2437 lib/pengine/unpack.c node->details->standby_onfail = TRUE; node 2452 lib/pengine/unpack.c resource_location(rsc, node, -PCMK_SCORE_INFINITY, node 2466 lib/pengine/unpack.c stop_action(rsc, node, FALSE); node 2481 lib/pengine/unpack.c stop_action(rsc->container, node, FALSE); node 2484 lib/pengine/unpack.c stop_action(rsc, node, FALSE); node 2507 lib/pengine/unpack.c stop_action(rsc, node, FALSE); node 2535 lib/pengine/unpack.c rsc->id, pcmk__node_name(node)); node 2539 lib/pengine/unpack.c " is set to false", rsc->id, pcmk__node_name(node)); node 2543 lib/pengine/unpack.c native_add_running(rsc, node, rsc->cluster, node 2568 lib/pengine/unpack.c GList *possible_matches = pe__resource_actions(rsc, node, node 2586 lib/pengine/unpack.c && rsc->partial_migration_source->details == node->details node 2596 lib/pengine/unpack.c process_recurring(pcmk_node_t *node, pcmk_resource_t *rsc, node 2618 lib/pengine/unpack.c if (node->details->online == FALSE) { node 2620 lib/pengine/unpack.c rsc->id, pcmk__node_name(node)); node 2626 lib/pengine/unpack.c id, pcmk__node_name(node)); node 2631 lib/pengine/unpack.c id, pcmk__node_name(node), counter); node 2638 lib/pengine/unpack.c id, pcmk__node_name(node)); node 2645 lib/pengine/unpack.c id, pcmk__node_name(node)); node 2651 lib/pengine/unpack.c pcmk__rsc_trace(rsc, "Creating %s on %s", key, pcmk__node_name(node)); node 2652 lib/pengine/unpack.c custom_action(rsc, key, task, node, TRUE, scheduler); node 2711 lib/pengine/unpack.c const pcmk_node_t *node, pcmk_scheduler_t *scheduler) node 2722 lib/pengine/unpack.c rsc->id, pcmk__node_name(node)); node 2723 lib/pengine/unpack.c pe__clear_resource_history(rsc, node); node 2729 lib/pengine/unpack.c rsc->lock_node = (pcmk_node_t *) node; node 2746 lib/pengine/unpack.c unpack_lrm_resource(pcmk_node_t *node, const xmlNode *lrm_resource, node 2773 lib/pengine/unpack.c rsc_id, pcmk__node_name(node)); node 2793 lib/pengine/unpack.c rsc = unpack_find_resource(scheduler, node, rsc_id); node 2799 lib/pengine/unpack.c rsc = process_orphan_resource(lrm_resource, node, scheduler); node 2806 lib/pengine/unpack.c unpack_shutdown_lock(lrm_resource, rsc, node, scheduler); node 2817 lib/pengine/unpack.c unpack_rsc_op(rsc, node, rsc_op, &last_failure, &on_fail); node 2822 lib/pengine/unpack.c process_recurring(node, rsc, start_index, stop_index, sorted_op_list, node 2828 lib/pengine/unpack.c process_rsc_state(rsc, node, on_fail); node 2902 lib/pengine/unpack.c unpack_node_lrm(pcmk_node_t *node, const xmlNode *xml, node 2923 lib/pengine/unpack.c pcmk_resource_t *rsc = unpack_lrm_resource(node, rsc_entry, scheduler); node 2954 lib/pengine/unpack.c pcmk_node_t *node = value; node 2957 lib/pengine/unpack.c node->weight = *score; node 2968 lib/pengine/unpack.c find_lrm_op(const char *resource, const char *op, const char *node, const char *source, node 2974 lib/pengine/unpack.c CRM_CHECK((resource != NULL) && (op != NULL) && (node != NULL), node 2979 lib/pengine/unpack.c XPATH_NODE_STATE "[@" PCMK_XA_UNAME "='", node, "']" node 3263 lib/pengine/unpack.c add_dangling_migration(pcmk_resource_t *rsc, const pcmk_node_t *node) node 3266 lib/pengine/unpack.c rsc->id, pcmk__node_name(node)); node 3269 lib/pengine/unpack.c (gpointer) node); node 3323 lib/pengine/unpack.c if (get_migration_node_names(history->xml, history->node, NULL, &source, node 3362 lib/pengine/unpack.c add_dangling_migration(history->rsc, history->node); node 3438 lib/pengine/unpack.c if (get_migration_node_names(history->xml, history->node, NULL, &source, node 3487 lib/pengine/unpack.c (gpointer) history->node); node 3505 lib/pengine/unpack.c if (get_migration_node_names(history->xml, NULL, history->node, &source, node 3554 lib/pengine/unpack.c if (!(history->node->details->online)) { node 3565 lib/pengine/unpack.c && pcmk__str_eq(uname, history->node->details->uname, node 3568 lib/pengine/unpack.c history->key, pcmk__node_name(history->node)); node 3574 lib/pengine/unpack.c history->key, pcmk__node_name(history->node)); node 3575 lib/pengine/unpack.c crm_xml_add(history->xml, PCMK_XA_UNAME, history->node->details->uname); node 3744 lib/pengine/unpack.c GHashTable *meta = pcmk__unpack_action_meta(history->rsc, history->node, node 3789 lib/pengine/unpack.c pcmk__node_name(history->node), last_change_s, node 3798 lib/pengine/unpack.c pcmk__node_name(history->node), last_change_s, node 3811 lib/pengine/unpack.c history->rsc->id, pcmk__node_name(history->node)); node 3827 lib/pengine/unpack.c resource_location(history->rsc, history->node, -PCMK_SCORE_INFINITY, node 3871 lib/pengine/unpack.c pcmk__btoa(history->node->details->unclean), node 3902 lib/pengine/unpack.c if (pe_can_fence(history->node->details->data_set, history->node)) { node 3911 lib/pengine/unpack.c pcmk__node_name(history->node), node 3978 lib/pengine/unpack.c if (!expired && (!history->node->details->shutdown node 3979 lib/pengine/unpack.c || history->node->details->online)) { node 4032 lib/pengine/unpack.c history->key, pcmk__node_name(history->node)); node 4041 lib/pengine/unpack.c history->key, pcmk__node_name(history->node), node 4059 lib/pengine/unpack.c history->rsc->id, pcmk__node_name(history->node), node 4091 lib/pengine/unpack.c pcmk__node_name(history->node), last_change_s); node 4146 lib/pengine/unpack.c pcmk__node_name(history->node), last_change_s); node 4169 lib/pengine/unpack.c pcmk_resource_t *rsc, pcmk_node_t *node) node 4177 lib/pengine/unpack.c pe__add_param_check(xml_op, rsc, node, pcmk__check_last_failure, node 4183 lib/pengine/unpack.c digest_data = rsc_action_digest_cmp(rsc, xml_op, node, node 4190 lib/pengine/unpack.c node->details->id); node 4290 lib/pengine/unpack.c history->id, pcmk__node_name(history->node)); node 4314 lib/pengine/unpack.c unexpired_fail_count = pe_get_failcount(history->node, history->rsc, node 4333 lib/pengine/unpack.c if (pe_get_failcount(history->node, history->rsc, NULL, node 4351 lib/pengine/unpack.c history->id, pcmk__node_name(history->node)); node 4366 lib/pengine/unpack.c history->rsc, history->node)) { node 4374 lib/pengine/unpack.c clear_op = pe__clear_failcount(history->rsc, history->node, node 4408 lib/pengine/unpack.c history->id, pcmk__node_name(history->node)); node 4499 lib/pengine/unpack.c history->rsc->id, pcmk__node_name(history->node)); node 4592 lib/pengine/unpack.c pcmk__node_name(history->node), node 4609 lib/pengine/unpack.c pcmk__node_name(history->node), node 4645 lib/pengine/unpack.c pcmk__node_name(history->node)); node 4657 lib/pengine/unpack.c pcmk__node_name(history->node)); node 4661 lib/pengine/unpack.c if (history->node->details->online && !history->node->details->unclean) { node 4675 lib/pengine/unpack.c history->rsc->id, pcmk__node_name(history->node)); node 4706 lib/pengine/unpack.c pcmk__node_name(history->node)); node 4709 lib/pengine/unpack.c crm_xml_add(history->xml, PCMK_XA_UNAME, history->node->details->uname); node 4712 lib/pengine/unpack.c resource_location(ban_rsc, history->node, -PCMK_SCORE_INFINITY, node 4796 lib/pengine/unpack.c && history->node->details->unclean) { node 4826 lib/pengine/unpack.c history->rsc->pending_node = history->node; node 4830 lib/pengine/unpack.c history->rsc->pending_node = history->node; node 4835 lib/pengine/unpack.c unpack_rsc_op(pcmk_resource_t *rsc, pcmk_node_t *node, xmlNode *xml_op, node 4846 lib/pengine/unpack.c .node = node, node 4851 lib/pengine/unpack.c CRM_CHECK(rsc && node && xml_op, return); node 4856 lib/pengine/unpack.c "without ID", rsc->id, pcmk__node_name(node)); node 4865 lib/pengine/unpack.c history.id, rsc->id, pcmk__node_name(node)); node 4873 lib/pengine/unpack.c history.id, rsc->id, pcmk__node_name(node), node 4888 lib/pengine/unpack.c pcmk__node_name(node), node 4892 lib/pengine/unpack.c if (node->details->unclean) { node 4896 lib/pengine/unpack.c rsc->id, pcmk__node_name(node)); node 4933 lib/pengine/unpack.c history.task, rsc->id, pcmk__node_name(node), node 4941 lib/pengine/unpack.c resource_location(parent, node, -PCMK_SCORE_INFINITY, node 4948 lib/pengine/unpack.c if (pcmk__is_pacemaker_remote_node(node) node 4949 lib/pengine/unpack.c && pcmk_is_set(node->details->remote_rsc->flags, node 4957 lib/pengine/unpack.c pcmk__set_rsc_flags(node->details->remote_rsc, node 4986 lib/pengine/unpack.c pcmk__node_name(node), last_change_s, history.id); node 4991 lib/pengine/unpack.c crm_xml_add(xml_op, PCMK_XA_UNAME, node->details->uname); node 5014 lib/pengine/unpack.c parent->id, pcmk__node_name(node), node 5018 lib/pengine/unpack.c resource_location(parent, node, -PCMK_SCORE_INFINITY, node 5035 lib/pengine/unpack.c rsc->id, pcmk__node_name(node), history.id, node 5041 lib/pengine/unpack.c add_node_attrs(const xmlNode *xml_obj, pcmk_node_t *node, bool overwrite, node 5054 lib/pengine/unpack.c pcmk__insert_dup(node->details->attrs, node 5055 lib/pengine/unpack.c CRM_ATTR_UNAME, node->details->uname); node 5057 lib/pengine/unpack.c pcmk__insert_dup(node->details->attrs, CRM_ATTR_ID, node->details->id); node 5058 lib/pengine/unpack.c if (pcmk__str_eq(node->details->id, scheduler->dc_uuid, pcmk__str_casei)) { node 5059 lib/pengine/unpack.c scheduler->dc_node = node; node 5060 lib/pengine/unpack.c node->details->is_dc = TRUE; node 5061 lib/pengine/unpack.c pcmk__insert_dup(node->details->attrs, node 5064 lib/pengine/unpack.c pcmk__insert_dup(node->details->attrs, node 5071 lib/pengine/unpack.c pcmk__insert_dup(node->details->attrs, CRM_ATTR_CLUSTER_NAME, node 5076 lib/pengine/unpack.c node->details->attrs, NULL, overwrite, node 5080 lib/pengine/unpack.c node->details->utilization, NULL, node 5083 lib/pengine/unpack.c if (pcmk__node_attr(node, CRM_ATTR_SITE_NAME, NULL, node 5085 lib/pengine/unpack.c const char *site_name = pcmk__node_attr(node, "site-name", NULL, node 5089 lib/pengine/unpack.c pcmk__insert_dup(node->details->attrs, node 5094 lib/pengine/unpack.c pcmk__insert_dup(node->details->attrs, node 5101 lib/pengine/unpack.c extract_operations(const char *node, const char *rsc, xmlNode * rsc_entry, gboolean active_filter) node 5122 lib/pengine/unpack.c crm_xml_add(rsc_op, PCMK_XA_UNAME, node); node 5164 lib/pengine/unpack.c find_operations(const char *rsc, const char *node, gboolean active_filter, node 5186 lib/pengine/unpack.c if (node != NULL && !pcmk__str_eq(uname, node, pcmk__str_casei)) { node 36 lib/pengine/utils.c pe_can_fence(const pcmk_scheduler_t *scheduler, const pcmk_node_t *node) node 38 lib/pengine/utils.c if (pcmk__is_guest_or_bundle_node(node)) { node 42 lib/pengine/utils.c pcmk_resource_t *rsc = node->details->remote_rsc->container; node 66 lib/pengine/utils.c } else if(node == NULL) { node 69 lib/pengine/utils.c } else if(node->details->online) { node 71 lib/pengine/utils.c pcmk__node_name(node)); node 75 lib/pengine/utils.c crm_trace("Cannot fence %s", pcmk__node_name(node)); node 186 lib/pengine/utils.c const pcmk_node_t *node = (const pcmk_node_t *) gIter->data; node 188 lib/pengine/utils.c out->message(out, "node-weight", rsc, comment, node->details->uname, node 189 lib/pengine/utils.c pcmk_readable_score(node->weight)); node 211 lib/pengine/utils.c pcmk_node_t *node = NULL; node 217 lib/pengine/utils.c while (g_hash_table_iter_next(&iter, NULL, (void **) &node)) { node 223 lib/pengine/utils.c pcmk__node_name(node), node 224 lib/pengine/utils.c pcmk_readable_score(node->weight)); node 228 lib/pengine/utils.c comment, pcmk__node_name(node), node 229 lib/pengine/utils.c pcmk_readable_score(node->weight)); node 322 lib/pengine/utils.c resource_node_score(pcmk_resource_t *rsc, const pcmk_node_t *node, int score, node 328 lib/pengine/utils.c || (node->rsc_discover_mode == pcmk_probe_never)) node 342 lib/pengine/utils.c resource_node_score(child_rsc, node, score, tag); node 346 lib/pengine/utils.c match = g_hash_table_lookup(rsc->allowed_nodes, node->details->id); node 348 lib/pengine/utils.c match = pe__copy_node(node); node 355 lib/pengine/utils.c pcmk__node_name(node), pcmk_readable_score(match->weight)); node 359 lib/pengine/utils.c resource_location(pcmk_resource_t *rsc, const pcmk_node_t *node, int score, node 362 lib/pengine/utils.c if (node != NULL) { node 363 lib/pengine/utils.c resource_node_score(rsc, node, score, tag); node 384 lib/pengine/utils.c if ((node == NULL) && (score == -PCMK_SCORE_INFINITY)) { node 591 lib/pengine/utils.c trigger_unfencing(pcmk_resource_t *rsc, pcmk_node_t *node, const char *reason, node 603 lib/pengine/utils.c } else if(node node 604 lib/pengine/utils.c && node->details->online node 605 lib/pengine/utils.c && node->details->unclean == FALSE node 606 lib/pengine/utils.c && node->details->shutdown == FALSE) { node 607 lib/pengine/utils.c pcmk_action_t *unfence = pe_fence_op(node, PCMK_ACTION_ON, FALSE, node 618 lib/pengine/utils.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 619 lib/pengine/utils.c if(node->details->online && node->details->unclean == FALSE && node->details->shutdown == FALSE) { node 620 lib/pengine/utils.c trigger_unfencing(rsc, node, reason, dependency, scheduler); node 677 lib/pengine/utils.c pe__shutdown_requested(const pcmk_node_t *node) node 679 lib/pengine/utils.c const char *shutdown = pcmk__node_attr(node, PCMK__NODE_ATTR_SHUTDOWN, NULL, node 767 lib/pengine/utils.c pe__rsc_running_on_only(const pcmk_resource_t *rsc, const pcmk_node_t *node) node 771 lib/pengine/utils.c node); node 778 lib/pengine/utils.c pcmk_node_t *node = (pcmk_node_t *) ele->data; node 779 lib/pengine/utils.c if (pcmk__str_in_list(node->details->uname, node_list, node 826 lib/pengine/utils.c pcmk_node_t *node = pcmk_find_node(scheduler, s); node 828 lib/pengine/utils.c if (node) { node 376 maint/gnulib/lib/clean-temp-simple.c gl_list_node_t node = gl_list_search (list, absolute_file_name); node 377 maint/gnulib/lib/clean-temp-simple.c if (node != NULL) node 379 maint/gnulib/lib/clean-temp-simple.c char *old_string = (char *) gl_list_node_value (list, node); node 381 maint/gnulib/lib/clean-temp-simple.c gl_list_remove_node (list, node); node 301 maint/gnulib/lib/clean-temp.c gl_list_node_t node; node 303 maint/gnulib/lib/clean-temp.c node = gl_list_search (list, absolute_file_name); node 304 maint/gnulib/lib/clean-temp.c if (node != NULL) node 306 maint/gnulib/lib/clean-temp.c char *old_string = (char *) gl_list_node_value (list, node); node 308 maint/gnulib/lib/clean-temp.c gl_list_remove_node (list, node); node 348 maint/gnulib/lib/clean-temp.c gl_list_node_t node; node 350 maint/gnulib/lib/clean-temp.c node = gl_list_search (list, absolute_dir_name); node 351 maint/gnulib/lib/clean-temp.c if (node != NULL) node 353 maint/gnulib/lib/clean-temp.c char *old_string = (char *) gl_list_node_value (list, node); node 355 maint/gnulib/lib/clean-temp.c gl_list_remove_node (list, node); node 416 maint/gnulib/lib/clean-temp.c gl_list_node_t node; node 421 maint/gnulib/lib/clean-temp.c while (gl_list_iterator_next (&iter, &element, &node)) node 426 maint/gnulib/lib/clean-temp.c gl_list_remove_node (list, node); node 435 maint/gnulib/lib/clean-temp.c while (gl_list_iterator_next (&iter, &element, &node)) node 440 maint/gnulib/lib/clean-temp.c gl_list_remove_node (list, node); node 708 maint/gnulib/lib/clean-temp.c gl_list_node_t node; node 709 maint/gnulib/lib/clean-temp.c if (gl_list_iterator_next (&iter, &elt, &node)) node 725 maint/gnulib/lib/clean-temp.c gl_list_node_t node_to_free = node; node 727 maint/gnulib/lib/clean-temp.c bool have_next = gl_list_iterator_next (&iter, &elt, &node); node 770 maint/gnulib/lib/clean-temp.c gl_list_node_t node; node 771 maint/gnulib/lib/clean-temp.c if (gl_list_iterator_next (&iter, &elt, &node)) node 787 maint/gnulib/lib/clean-temp.c gl_list_node_t node_to_free = node; node 789 maint/gnulib/lib/clean-temp.c bool have_next = gl_list_iterator_next (&iter, &elt, &node); node 419 maint/gnulib/lib/getaddrinfo.c char *restrict node, socklen_t nodelen, node 426 maint/gnulib/lib/getaddrinfo.c return getnameinfo_ptr (sa, salen, node, nodelen, node 431 maint/gnulib/lib/getaddrinfo.c if ((node && nodelen > 0 && !(flags & NI_NUMERICHOST)) || node 457 maint/gnulib/lib/getaddrinfo.c if (node && nodelen > 0 && flags & NI_NUMERICHOST) node 465 maint/gnulib/lib/getaddrinfo.c node, nodelen)) node 474 maint/gnulib/lib/getaddrinfo.c node, nodelen)) node 361 maint/gnulib/lib/git-merge-changelog.c gl_list_node_t node; node 362 maint/gnulib/lib/git-merge-changelog.c while (gl_list_iterator_next (&iter, &elt, &node)) node 801 maint/gnulib/lib/git-merge-changelog.c gl_list_node_t node; node 802 maint/gnulib/lib/git-merge-changelog.c while (gl_list_iterator_next (&iter, &elt, &node)) node 1666 maint/gnulib/lib/git-merge-changelog.c gl_list_node_t node; node 1667 maint/gnulib/lib/git-merge-changelog.c while (gl_list_iterator_next (&iter, &elt, &node)) node 31 maint/gnulib/lib/gl_anyavltree_list2.h gl_list_node_t node = node 33 maint/gnulib/lib/gl_anyavltree_list2.h if (node == NULL) node 38 maint/gnulib/lib/gl_anyavltree_list2.h node->left = create_subtree_with_contents (half1, contents); node 39 maint/gnulib/lib/gl_anyavltree_list2.h if (node->left == NULL) node 41 maint/gnulib/lib/gl_anyavltree_list2.h node->left->parent = node; node 44 maint/gnulib/lib/gl_anyavltree_list2.h node->left = NULL; node 46 maint/gnulib/lib/gl_anyavltree_list2.h node->value = contents[half1]; node 50 maint/gnulib/lib/gl_anyavltree_list2.h node->right = create_subtree_with_contents (half2, contents + half1 + 1); node 51 maint/gnulib/lib/gl_anyavltree_list2.h if (node->right == NULL) node 53 maint/gnulib/lib/gl_anyavltree_list2.h node->right->parent = node; node 56 maint/gnulib/lib/gl_anyavltree_list2.h node->right = NULL; node 62 maint/gnulib/lib/gl_anyavltree_list2.h node->balance = (count > 1 && (count & (count - 1)) == 0 ? 1 : 0); node 64 maint/gnulib/lib/gl_anyavltree_list2.h node->branch_size = count; node 66 maint/gnulib/lib/gl_anyavltree_list2.h return node; node 69 maint/gnulib/lib/gl_anyavltree_list2.h if (node->left != NULL) node 70 maint/gnulib/lib/gl_anyavltree_list2.h free_subtree (node->left); node 72 maint/gnulib/lib/gl_anyavltree_list2.h free (node); node 147 maint/gnulib/lib/gl_anyavltree_list2.h gl_list_node_t node, int height_diff, gl_list_node_t parent) node 157 maint/gnulib/lib/gl_anyavltree_list2.h child = node; node 158 maint/gnulib/lib/gl_anyavltree_list2.h node = parent; node 160 maint/gnulib/lib/gl_anyavltree_list2.h previous_balance = node->balance; node 166 maint/gnulib/lib/gl_anyavltree_list2.h if (node->left != NULL || node->right != NULL) node 167 maint/gnulib/lib/gl_anyavltree_list2.h balance_diff = (child == node->right ? height_diff : -height_diff); node 174 maint/gnulib/lib/gl_anyavltree_list2.h node->balance += balance_diff; node 180 maint/gnulib/lib/gl_anyavltree_list2.h if (node->parent == NULL) node 183 maint/gnulib/lib/gl_anyavltree_list2.h else if (node->parent->left == node) node 184 maint/gnulib/lib/gl_anyavltree_list2.h nodep = &node->parent->left; node 185 maint/gnulib/lib/gl_anyavltree_list2.h else if (node->parent->right == node) node 186 maint/gnulib/lib/gl_anyavltree_list2.h nodep = &node->parent->right; node 190 maint/gnulib/lib/gl_anyavltree_list2.h nodeleft = node->left; node 191 maint/gnulib/lib/gl_anyavltree_list2.h noderight = node->right; node 213 maint/gnulib/lib/gl_anyavltree_list2.h node->left = nodeleftright; node 214 maint/gnulib/lib/gl_anyavltree_list2.h nodeleft->right = node; node 216 maint/gnulib/lib/gl_anyavltree_list2.h nodeleft->parent = node->parent; node 217 maint/gnulib/lib/gl_anyavltree_list2.h node->parent = nodeleft; node 219 maint/gnulib/lib/gl_anyavltree_list2.h nodeleftright->parent = node; node 222 maint/gnulib/lib/gl_anyavltree_list2.h node->balance = - nodeleft->balance; node 224 maint/gnulib/lib/gl_anyavltree_list2.h node->branch_size = node 228 maint/gnulib/lib/gl_anyavltree_list2.h nodeleftleft->branch_size + 1 + node->branch_size; node 254 maint/gnulib/lib/gl_anyavltree_list2.h gl_list_node_t R = node->left = nodeleftright->right; node 256 maint/gnulib/lib/gl_anyavltree_list2.h nodeleftright->right = node; node 258 maint/gnulib/lib/gl_anyavltree_list2.h nodeleftright->parent = node->parent; node 262 maint/gnulib/lib/gl_anyavltree_list2.h R->parent = node; node 264 maint/gnulib/lib/gl_anyavltree_list2.h node->parent = nodeleftright; node 267 maint/gnulib/lib/gl_anyavltree_list2.h node->balance = (nodeleftright->balance < 0 ? 1 : 0); node 273 maint/gnulib/lib/gl_anyavltree_list2.h node->branch_size = node 274 maint/gnulib/lib/gl_anyavltree_list2.h (node->left != NULL ? node->left->branch_size : 0) node 275 maint/gnulib/lib/gl_anyavltree_list2.h + 1 + (node->right != NULL ? node->right->branch_size : 0); node 277 maint/gnulib/lib/gl_anyavltree_list2.h nodeleft->branch_size + 1 + node->branch_size; node 311 maint/gnulib/lib/gl_anyavltree_list2.h node->right = noderightleft; node 312 maint/gnulib/lib/gl_anyavltree_list2.h noderight->left = node; node 314 maint/gnulib/lib/gl_anyavltree_list2.h noderight->parent = node->parent; node 315 maint/gnulib/lib/gl_anyavltree_list2.h node->parent = noderight; node 317 maint/gnulib/lib/gl_anyavltree_list2.h noderightleft->parent = node; node 320 maint/gnulib/lib/gl_anyavltree_list2.h node->balance = - noderight->balance; node 322 maint/gnulib/lib/gl_anyavltree_list2.h node->branch_size = node 326 maint/gnulib/lib/gl_anyavltree_list2.h node->branch_size + 1 + noderightright->branch_size; node 351 maint/gnulib/lib/gl_anyavltree_list2.h gl_list_node_t L = node->right = noderightleft->left; node 353 maint/gnulib/lib/gl_anyavltree_list2.h noderightleft->left = node; node 356 maint/gnulib/lib/gl_anyavltree_list2.h noderightleft->parent = node->parent; node 358 maint/gnulib/lib/gl_anyavltree_list2.h L->parent = node; node 361 maint/gnulib/lib/gl_anyavltree_list2.h node->parent = noderightleft; node 364 maint/gnulib/lib/gl_anyavltree_list2.h node->balance = (noderightleft->balance > 0 ? -1 : 0); node 368 maint/gnulib/lib/gl_anyavltree_list2.h node->branch_size = node 369 maint/gnulib/lib/gl_anyavltree_list2.h (node->left != NULL ? node->left->branch_size : 0) node 370 maint/gnulib/lib/gl_anyavltree_list2.h + 1 + (node->right != NULL ? node->right->branch_size : 0); node 375 maint/gnulib/lib/gl_anyavltree_list2.h node->branch_size + 1 + noderight->branch_size; node 389 maint/gnulib/lib/gl_anyavltree_list2.h node = *nodep; node 398 maint/gnulib/lib/gl_anyavltree_list2.h height_diff = (node->balance == 0 ? 0 : 1); node 404 maint/gnulib/lib/gl_anyavltree_list2.h parent = node->parent; node 411 maint/gnulib/lib/gl_anyavltree_list2.h gl_tree_remove_node_from_tree (gl_list_t list, gl_list_node_t node) node 413 maint/gnulib/lib/gl_anyavltree_list2.h gl_list_node_t parent = node->parent; node 415 maint/gnulib/lib/gl_anyavltree_list2.h if (node->left == NULL) node 418 maint/gnulib/lib/gl_anyavltree_list2.h gl_list_node_t child = node->right; node 426 maint/gnulib/lib/gl_anyavltree_list2.h if (parent->left == node) node 442 maint/gnulib/lib/gl_anyavltree_list2.h else if (node->right == NULL) node 447 maint/gnulib/lib/gl_anyavltree_list2.h gl_list_node_t child = node->left; node 454 maint/gnulib/lib/gl_anyavltree_list2.h if (parent->left == node) node 477 maint/gnulib/lib/gl_anyavltree_list2.h for (subst = node->left; subst->right != NULL; ) node 495 maint/gnulib/lib/gl_anyavltree_list2.h if (subst_parent != node) node 513 maint/gnulib/lib/gl_anyavltree_list2.h if (subst_parent != node) node 515 maint/gnulib/lib/gl_anyavltree_list2.h subst->left = node->left; node 518 maint/gnulib/lib/gl_anyavltree_list2.h subst->right = node->right; node 520 maint/gnulib/lib/gl_anyavltree_list2.h subst->balance = node->balance; node 521 maint/gnulib/lib/gl_anyavltree_list2.h subst->branch_size = node->branch_size; node 525 maint/gnulib/lib/gl_anyavltree_list2.h else if (parent->left == node) node 533 maint/gnulib/lib/gl_anyavltree_list2.h rebalance (list, child, -1, subst_parent != node ? subst_parent : subst); node 567 maint/gnulib/lib/gl_anyavltree_list2.h gl_list_node_t node; node 569 maint/gnulib/lib/gl_anyavltree_list2.h for (node = list->root; node->left != NULL; ) node 570 maint/gnulib/lib/gl_anyavltree_list2.h node = node->left; node 572 maint/gnulib/lib/gl_anyavltree_list2.h node->left = new_node; node 573 maint/gnulib/lib/gl_anyavltree_list2.h new_node->parent = node; node 574 maint/gnulib/lib/gl_anyavltree_list2.h node->balance--; node 580 maint/gnulib/lib/gl_anyavltree_list2.h for (p = node; p != NULL; p = p->parent) node 585 maint/gnulib/lib/gl_anyavltree_list2.h if (node->right == NULL && node->parent != NULL) node 586 maint/gnulib/lib/gl_anyavltree_list2.h rebalance (list, node, 1, node->parent); node 635 maint/gnulib/lib/gl_anyavltree_list2.h gl_list_node_t node; node 637 maint/gnulib/lib/gl_anyavltree_list2.h for (node = list->root; node->right != NULL; ) node 638 maint/gnulib/lib/gl_anyavltree_list2.h node = node->right; node 640 maint/gnulib/lib/gl_anyavltree_list2.h node->right = new_node; node 641 maint/gnulib/lib/gl_anyavltree_list2.h new_node->parent = node; node 642 maint/gnulib/lib/gl_anyavltree_list2.h node->balance++; node 648 maint/gnulib/lib/gl_anyavltree_list2.h for (p = node; p != NULL; p = p->parent) node 653 maint/gnulib/lib/gl_anyavltree_list2.h if (node->left == NULL && node->parent != NULL) node 654 maint/gnulib/lib/gl_anyavltree_list2.h rebalance (list, node, 1, node->parent); node 674 maint/gnulib/lib/gl_anyavltree_list2.h gl_tree_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) node 698 maint/gnulib/lib/gl_anyavltree_list2.h if (node->left == NULL) node 700 maint/gnulib/lib/gl_anyavltree_list2.h node->left = new_node; node 701 maint/gnulib/lib/gl_anyavltree_list2.h node->balance--; node 702 maint/gnulib/lib/gl_anyavltree_list2.h height_inc = (node->right == NULL); node 706 maint/gnulib/lib/gl_anyavltree_list2.h for (node = node->left; node->right != NULL; ) node 707 maint/gnulib/lib/gl_anyavltree_list2.h node = node->right; node 708 maint/gnulib/lib/gl_anyavltree_list2.h node->right = new_node; node 709 maint/gnulib/lib/gl_anyavltree_list2.h node->balance++; node 710 maint/gnulib/lib/gl_anyavltree_list2.h height_inc = (node->left == NULL); node 712 maint/gnulib/lib/gl_anyavltree_list2.h new_node->parent = node; node 718 maint/gnulib/lib/gl_anyavltree_list2.h for (p = node; p != NULL; p = p->parent) node 723 maint/gnulib/lib/gl_anyavltree_list2.h if (height_inc && node->parent != NULL) node 724 maint/gnulib/lib/gl_anyavltree_list2.h rebalance (list, node, 1, node->parent); node 743 maint/gnulib/lib/gl_anyavltree_list2.h gl_tree_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) node 767 maint/gnulib/lib/gl_anyavltree_list2.h if (node->right == NULL) node 769 maint/gnulib/lib/gl_anyavltree_list2.h node->right = new_node; node 770 maint/gnulib/lib/gl_anyavltree_list2.h node->balance++; node 771 maint/gnulib/lib/gl_anyavltree_list2.h height_inc = (node->left == NULL); node 775 maint/gnulib/lib/gl_anyavltree_list2.h for (node = node->right; node->left != NULL; ) node 776 maint/gnulib/lib/gl_anyavltree_list2.h node = node->left; node 777 maint/gnulib/lib/gl_anyavltree_list2.h node->left = new_node; node 778 maint/gnulib/lib/gl_anyavltree_list2.h node->balance--; node 779 maint/gnulib/lib/gl_anyavltree_list2.h height_inc = (node->right == NULL); node 781 maint/gnulib/lib/gl_anyavltree_list2.h new_node->parent = node; node 787 maint/gnulib/lib/gl_anyavltree_list2.h for (p = node; p != NULL; p = p->parent) node 792 maint/gnulib/lib/gl_anyavltree_list2.h if (height_inc && node->parent != NULL) node 793 maint/gnulib/lib/gl_anyavltree_list2.h rebalance (list, node, 1, node->parent); node 48 maint/gnulib/lib/gl_anyhash2.h gl_hash_entry_t node = old_table[--i]; node 50 maint/gnulib/lib/gl_anyhash2.h while (node != NULL) node 52 maint/gnulib/lib/gl_anyhash2.h gl_hash_entry_t next = node->hash_next; node 54 maint/gnulib/lib/gl_anyhash2.h size_t bucket = node->hashcode % new_size; node 55 maint/gnulib/lib/gl_anyhash2.h node->hash_next = new_table[bucket]; node 56 maint/gnulib/lib/gl_anyhash2.h new_table[bucket] = node; node 58 maint/gnulib/lib/gl_anyhash2.h node = next; node 115 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node = node 118 maint/gnulib/lib/gl_anylinked_list2.h if (node == NULL) node 121 maint/gnulib/lib/gl_anylinked_list2.h node->value = *contents; node 123 maint/gnulib/lib/gl_anylinked_list2.h node->h.hashcode = node 125 maint/gnulib/lib/gl_anylinked_list2.h ? list->base.hashcode_fn (node->value) node 126 maint/gnulib/lib/gl_anylinked_list2.h : (size_t)(uintptr_t) node->value); node 129 maint/gnulib/lib/gl_anylinked_list2.h if (add_to_bucket (list, node) < 0) node 131 maint/gnulib/lib/gl_anylinked_list2.h free (node); node 137 maint/gnulib/lib/gl_anylinked_list2.h node->prev = tail; node 138 maint/gnulib/lib/gl_anylinked_list2.h tail->next = node; node 139 maint/gnulib/lib/gl_anylinked_list2.h tail = node; node 148 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 150 maint/gnulib/lib/gl_anylinked_list2.h for (node = tail; node != &list->root; ) node 152 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t prev = node->prev; node 154 maint/gnulib/lib/gl_anylinked_list2.h free (node); node 155 maint/gnulib/lib/gl_anylinked_list2.h node = prev; node 174 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node) node 176 maint/gnulib/lib/gl_anylinked_list2.h return node->value; node 181 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node, node 185 maint/gnulib/lib/gl_anylinked_list2.h if (elt != node->value) node 192 maint/gnulib/lib/gl_anylinked_list2.h if (new_hashcode != node->h.hashcode) node 194 maint/gnulib/lib/gl_anylinked_list2.h remove_from_bucket (list, node); node 195 maint/gnulib/lib/gl_anylinked_list2.h node->value = elt; node 196 maint/gnulib/lib/gl_anylinked_list2.h node->h.hashcode = new_hashcode; node 197 maint/gnulib/lib/gl_anylinked_list2.h if (add_to_bucket (list, node) < 0) node 202 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t before_removed = node->prev; node 203 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t after_removed = node->next; node 207 maint/gnulib/lib/gl_anylinked_list2.h free (node); node 212 maint/gnulib/lib/gl_anylinked_list2.h node->value = elt; node 215 maint/gnulib/lib/gl_anylinked_list2.h node->value = elt; node 221 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_next_node (gl_list_t list, gl_list_node_t node) node 223 maint/gnulib/lib/gl_anylinked_list2.h return (node->next != &list->root ? node->next : NULL); node 227 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_previous_node (gl_list_t list, gl_list_node_t node) node 229 maint/gnulib/lib/gl_anylinked_list2.h return (node->prev != &list->root ? node->prev : NULL); node 254 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 262 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; node 264 maint/gnulib/lib/gl_anylinked_list2.h node = node->next; node 269 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.prev; node 271 maint/gnulib/lib/gl_anylinked_list2.h node = node->prev; node 273 maint/gnulib/lib/gl_anylinked_list2.h return node->value; node 280 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 288 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; node 290 maint/gnulib/lib/gl_anylinked_list2.h node = node->next; node 295 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.prev; node 297 maint/gnulib/lib/gl_anylinked_list2.h node = node->prev; node 300 maint/gnulib/lib/gl_anylinked_list2.h if (elt != node->value) node 307 maint/gnulib/lib/gl_anylinked_list2.h if (new_hashcode != node->h.hashcode) node 309 maint/gnulib/lib/gl_anylinked_list2.h remove_from_bucket (list, node); node 310 maint/gnulib/lib/gl_anylinked_list2.h node->value = elt; node 311 maint/gnulib/lib/gl_anylinked_list2.h node->h.hashcode = new_hashcode; node 312 maint/gnulib/lib/gl_anylinked_list2.h if (add_to_bucket (list, node) < 0) node 317 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t before_removed = node->prev; node 318 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t after_removed = node->next; node 322 maint/gnulib/lib/gl_anylinked_list2.h free (node); node 327 maint/gnulib/lib/gl_anylinked_list2.h node->value = elt; node 330 maint/gnulib/lib/gl_anylinked_list2.h node->value = elt; node 332 maint/gnulib/lib/gl_anylinked_list2.h return node; node 357 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 359 maint/gnulib/lib/gl_anylinked_list2.h for (node = (gl_list_node_t) list->table[bucket]; node 360 maint/gnulib/lib/gl_anylinked_list2.h node != NULL; node 361 maint/gnulib/lib/gl_anylinked_list2.h node = (gl_list_node_t) node->h.hash_next) node 362 maint/gnulib/lib/gl_anylinked_list2.h if (node->h.hashcode == hashcode node 364 maint/gnulib/lib/gl_anylinked_list2.h ? equals (elt, node->value) node 365 maint/gnulib/lib/gl_anylinked_list2.h : elt == node->value)) node 367 maint/gnulib/lib/gl_anylinked_list2.h found = node; node 372 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.next; ; node = node->next) node 374 maint/gnulib/lib/gl_anylinked_list2.h if (node == found) node 383 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.prev; ; node = node->prev) node 385 maint/gnulib/lib/gl_anylinked_list2.h if (node == found) node 398 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 400 maint/gnulib/lib/gl_anylinked_list2.h for (node = (gl_list_node_t) list->table[bucket]; node 401 maint/gnulib/lib/gl_anylinked_list2.h node != NULL; node 402 maint/gnulib/lib/gl_anylinked_list2.h node = (gl_list_node_t) node->h.hash_next) node 403 maint/gnulib/lib/gl_anylinked_list2.h if (node->h.hashcode == hashcode node 405 maint/gnulib/lib/gl_anylinked_list2.h ? equals (elt, node->value) node 406 maint/gnulib/lib/gl_anylinked_list2.h : elt == node->value)) node 409 maint/gnulib/lib/gl_anylinked_list2.h first_match = node; node 421 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; node 423 maint/gnulib/lib/gl_anylinked_list2.h node = node->next; node 427 maint/gnulib/lib/gl_anylinked_list2.h node = node->next, end_index--) node 428 maint/gnulib/lib/gl_anylinked_list2.h if (node->h.hashcode == hashcode node 430 maint/gnulib/lib/gl_anylinked_list2.h ? equals (elt, node->value) node 431 maint/gnulib/lib/gl_anylinked_list2.h : elt == node->value)) node 432 maint/gnulib/lib/gl_anylinked_list2.h return node; node 441 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.next; node != &list->root; node = node->next) node 443 maint/gnulib/lib/gl_anylinked_list2.h if (node == first_match) node 452 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.prev; ; node = node->prev) node 454 maint/gnulib/lib/gl_anylinked_list2.h if (node == first_match) node 465 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node = list->root.next; node 469 maint/gnulib/lib/gl_anylinked_list2.h node = node->next; node 473 maint/gnulib/lib/gl_anylinked_list2.h for (; end_index > 0; node = node->next, end_index--) node 474 maint/gnulib/lib/gl_anylinked_list2.h if (equals (elt, node->value)) node 475 maint/gnulib/lib/gl_anylinked_list2.h return node; node 479 maint/gnulib/lib/gl_anylinked_list2.h for (; end_index > 0; node = node->next, end_index--) node 480 maint/gnulib/lib/gl_anylinked_list2.h if (elt == node->value) node 481 maint/gnulib/lib/gl_anylinked_list2.h return node; node 508 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 514 maint/gnulib/lib/gl_anylinked_list2.h for (node = (gl_list_node_t) list->table[bucket]; node 515 maint/gnulib/lib/gl_anylinked_list2.h node != NULL; node 516 maint/gnulib/lib/gl_anylinked_list2.h node = (gl_list_node_t) node->h.hash_next) node 517 maint/gnulib/lib/gl_anylinked_list2.h if (node->h.hashcode == hashcode node 519 maint/gnulib/lib/gl_anylinked_list2.h ? equals (elt, node->value) node 520 maint/gnulib/lib/gl_anylinked_list2.h : elt == node->value)) node 529 maint/gnulib/lib/gl_anylinked_list2.h for (node = (gl_list_node_t) list->table[bucket]; node 530 maint/gnulib/lib/gl_anylinked_list2.h node != NULL; node 531 maint/gnulib/lib/gl_anylinked_list2.h node = (gl_list_node_t) node->h.hash_next) node 532 maint/gnulib/lib/gl_anylinked_list2.h if (node->h.hashcode == hashcode node 534 maint/gnulib/lib/gl_anylinked_list2.h ? equals (elt, node->value) node 535 maint/gnulib/lib/gl_anylinked_list2.h : elt == node->value)) node 538 maint/gnulib/lib/gl_anylinked_list2.h first_match = node; node 552 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; node 554 maint/gnulib/lib/gl_anylinked_list2.h node = node->next; node 558 maint/gnulib/lib/gl_anylinked_list2.h node = node->next, index++) node 559 maint/gnulib/lib/gl_anylinked_list2.h if (node->h.hashcode == hashcode node 561 maint/gnulib/lib/gl_anylinked_list2.h ? equals (elt, node->value) node 562 maint/gnulib/lib/gl_anylinked_list2.h : elt == node->value)) node 568 maint/gnulib/lib/gl_anylinked_list2.h node = first_match; node 572 maint/gnulib/lib/gl_anylinked_list2.h if (node == NULL) node 578 maint/gnulib/lib/gl_anylinked_list2.h for (; node->prev != &list->root; node = node->prev) node 589 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node = list->root.next; node 592 maint/gnulib/lib/gl_anylinked_list2.h node = node->next; node 598 maint/gnulib/lib/gl_anylinked_list2.h node = node->next, index++) node 599 maint/gnulib/lib/gl_anylinked_list2.h if (equals (elt, node->value)) node 606 maint/gnulib/lib/gl_anylinked_list2.h node = node->next, index++) node 607 maint/gnulib/lib/gl_anylinked_list2.h if (elt == node->value) node 618 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node = node 621 maint/gnulib/lib/gl_anylinked_list2.h if (node == NULL) node 624 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(const void *) node->value = elt; node 626 maint/gnulib/lib/gl_anylinked_list2.h node->h.hashcode = node 628 maint/gnulib/lib/gl_anylinked_list2.h ? list->base.hashcode_fn (node->value) node 629 maint/gnulib/lib/gl_anylinked_list2.h : (size_t)(uintptr_t) node->value); node 632 maint/gnulib/lib/gl_anylinked_list2.h if (add_to_bucket (list, node) < 0) node 634 maint/gnulib/lib/gl_anylinked_list2.h free (node); node 640 maint/gnulib/lib/gl_anylinked_list2.h node->prev = &list->root; node 641 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(gl_list_node_t) node->next = list->root.next; node 642 maint/gnulib/lib/gl_anylinked_list2.h node->next->prev = node; node 643 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(gl_list_node_t) list->root.next = node; node 650 maint/gnulib/lib/gl_anylinked_list2.h return node; node 656 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node = node 659 maint/gnulib/lib/gl_anylinked_list2.h if (node == NULL) node 662 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(const void *) node->value = elt; node 664 maint/gnulib/lib/gl_anylinked_list2.h node->h.hashcode = node 666 maint/gnulib/lib/gl_anylinked_list2.h ? list->base.hashcode_fn (node->value) node 667 maint/gnulib/lib/gl_anylinked_list2.h : (size_t)(uintptr_t) node->value); node 670 maint/gnulib/lib/gl_anylinked_list2.h if (add_to_bucket (list, node) < 0) node 672 maint/gnulib/lib/gl_anylinked_list2.h free (node); node 678 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(gl_list_node_t) node->next = &list->root; node 679 maint/gnulib/lib/gl_anylinked_list2.h node->prev = list->root.prev; node 680 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(gl_list_node_t) node->prev->next = node; node 681 maint/gnulib/lib/gl_anylinked_list2.h list->root.prev = node; node 688 maint/gnulib/lib/gl_anylinked_list2.h return node; node 692 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) node 716 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(gl_list_node_t) new_node->next = node; node 717 maint/gnulib/lib/gl_anylinked_list2.h new_node->prev = node->prev; node 719 maint/gnulib/lib/gl_anylinked_list2.h node->prev = new_node; node 730 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) node 754 maint/gnulib/lib/gl_anylinked_list2.h new_node->prev = node; node 755 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(gl_list_node_t) new_node->next = node->next; node 757 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(gl_list_node_t) node->next = new_node; node 799 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 801 maint/gnulib/lib/gl_anylinked_list2.h node = &list->root; node 803 maint/gnulib/lib/gl_anylinked_list2.h node = node->next; node 804 maint/gnulib/lib/gl_anylinked_list2.h new_node->prev = node; node 805 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(gl_list_node_t) new_node->next = node->next; node 807 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(gl_list_node_t) node->next = new_node; node 811 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 814 maint/gnulib/lib/gl_anylinked_list2.h node = &list->root; node 816 maint/gnulib/lib/gl_anylinked_list2.h node = node->prev; node 817 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(gl_list_node_t) new_node->next = node; node 818 maint/gnulib/lib/gl_anylinked_list2.h new_node->prev = node->prev; node 820 maint/gnulib/lib/gl_anylinked_list2.h node->prev = new_node; node 832 maint/gnulib/lib/gl_anylinked_list2.h gl_linked_remove_node (gl_list_t list, gl_list_node_t node) node 839 maint/gnulib/lib/gl_anylinked_list2.h remove_from_bucket (list, node); node 843 maint/gnulib/lib/gl_anylinked_list2.h prev = node->prev; node 844 maint/gnulib/lib/gl_anylinked_list2.h next = node->next; node 851 maint/gnulib/lib/gl_anylinked_list2.h list->base.dispose_fn (node->value); node 852 maint/gnulib/lib/gl_anylinked_list2.h free (node); node 868 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 871 maint/gnulib/lib/gl_anylinked_list2.h node = &list->root; node 873 maint/gnulib/lib/gl_anylinked_list2.h node = node->next; node 874 maint/gnulib/lib/gl_anylinked_list2.h removed_node = node->next; node 875 maint/gnulib/lib/gl_anylinked_list2.h after_removed = node->next->next; node 876 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(gl_list_node_t) node->next = after_removed; node 877 maint/gnulib/lib/gl_anylinked_list2.h after_removed->prev = node; node 881 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 885 maint/gnulib/lib/gl_anylinked_list2.h node = &list->root; node 887 maint/gnulib/lib/gl_anylinked_list2.h node = node->prev; node 888 maint/gnulib/lib/gl_anylinked_list2.h removed_node = node->prev; node 889 maint/gnulib/lib/gl_anylinked_list2.h before_removed = node->prev->prev; node 890 maint/gnulib/lib/gl_anylinked_list2.h node->prev = before_removed; node 891 maint/gnulib/lib/gl_anylinked_list2.h ASYNCSAFE(gl_list_node_t) before_removed->next = node; node 907 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node = gl_linked_search_from_to (list, 0, list->count, elt); node 909 maint/gnulib/lib/gl_anylinked_list2.h if (node != NULL) node 910 maint/gnulib/lib/gl_anylinked_list2.h return gl_linked_remove_node (list, node); node 919 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 921 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.next; node != &list->root; ) node 923 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t next = node->next; node 925 maint/gnulib/lib/gl_anylinked_list2.h dispose (node->value); node 926 maint/gnulib/lib/gl_anylinked_list2.h free (node); node 927 maint/gnulib/lib/gl_anylinked_list2.h node = next; node 975 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 978 maint/gnulib/lib/gl_anylinked_list2.h node = &list->root; node 980 maint/gnulib/lib/gl_anylinked_list2.h node = node->prev; node 981 maint/gnulib/lib/gl_anylinked_list2.h result.q = node; node 983 maint/gnulib/lib/gl_anylinked_list2.h node = node->prev; node 984 maint/gnulib/lib/gl_anylinked_list2.h result.p = node; node 989 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 992 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; node 994 maint/gnulib/lib/gl_anylinked_list2.h node = node->next; node 995 maint/gnulib/lib/gl_anylinked_list2.h result.p = node; node 997 maint/gnulib/lib/gl_anylinked_list2.h node = &list->root; node 999 maint/gnulib/lib/gl_anylinked_list2.h node = node->prev; node 1000 maint/gnulib/lib/gl_anylinked_list2.h result.q = node; node 1005 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 1008 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; node 1010 maint/gnulib/lib/gl_anylinked_list2.h node = node->next; node 1011 maint/gnulib/lib/gl_anylinked_list2.h result.p = node; node 1013 maint/gnulib/lib/gl_anylinked_list2.h node = node->next; node 1014 maint/gnulib/lib/gl_anylinked_list2.h result.q = node; node 1032 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node = (gl_list_node_t) iterator->p; node 1033 maint/gnulib/lib/gl_anylinked_list2.h *eltp = node->value; node 1035 maint/gnulib/lib/gl_anylinked_list2.h *nodep = node; node 1036 maint/gnulib/lib/gl_anylinked_list2.h iterator->p = node->next; node 1054 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 1056 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.next; node != &list->root; node = node->next) node 1058 maint/gnulib/lib/gl_anylinked_list2.h int cmp = compar (node->value, elt); node 1063 maint/gnulib/lib/gl_anylinked_list2.h return node; node 1085 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 1089 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; node 1091 maint/gnulib/lib/gl_anylinked_list2.h node = node->next; node 1096 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.prev; node 1098 maint/gnulib/lib/gl_anylinked_list2.h node = node->prev; node 1103 maint/gnulib/lib/gl_anylinked_list2.h int cmp = compar (node->value, elt); node 1108 maint/gnulib/lib/gl_anylinked_list2.h return node; node 1109 maint/gnulib/lib/gl_anylinked_list2.h node = node->next; node 1120 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 1123 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.next, index = 0; node 1124 maint/gnulib/lib/gl_anylinked_list2.h node != &list->root; node 1125 maint/gnulib/lib/gl_anylinked_list2.h node = node->next, index++) node 1127 maint/gnulib/lib/gl_anylinked_list2.h int cmp = compar (node->value, elt); node 1155 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 1159 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.next; node 1161 maint/gnulib/lib/gl_anylinked_list2.h node = node->next; node 1166 maint/gnulib/lib/gl_anylinked_list2.h node = list->root.prev; node 1168 maint/gnulib/lib/gl_anylinked_list2.h node = node->prev; node 1173 maint/gnulib/lib/gl_anylinked_list2.h int cmp = compar (node->value, elt); node 1179 maint/gnulib/lib/gl_anylinked_list2.h node = node->next; node 1191 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 1193 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.next; node != &list->root; node = node->next) node 1194 maint/gnulib/lib/gl_anylinked_list2.h if (compar (node->value, elt) >= 0) node 1195 maint/gnulib/lib/gl_anylinked_list2.h return gl_linked_nx_add_before (list, node, elt); node 1203 maint/gnulib/lib/gl_anylinked_list2.h gl_list_node_t node; node 1205 maint/gnulib/lib/gl_anylinked_list2.h for (node = list->root.next; node != &list->root; node = node->next) node 1207 maint/gnulib/lib/gl_anylinked_list2.h int cmp = compar (node->value, elt); node 1212 maint/gnulib/lib/gl_anylinked_list2.h return gl_linked_remove_node (list, node); node 34 maint/gnulib/lib/gl_anyrbtree_list2.h gl_list_node_t node = node 36 maint/gnulib/lib/gl_anyrbtree_list2.h if (node == NULL) node 43 maint/gnulib/lib/gl_anyrbtree_list2.h node->left = node 45 maint/gnulib/lib/gl_anyrbtree_list2.h if (node->left == NULL) node 47 maint/gnulib/lib/gl_anyrbtree_list2.h node->left->parent = node; node 50 maint/gnulib/lib/gl_anyrbtree_list2.h node->left = NULL; node 52 maint/gnulib/lib/gl_anyrbtree_list2.h node->value = contents[half1]; node 58 maint/gnulib/lib/gl_anyrbtree_list2.h node->right = node 60 maint/gnulib/lib/gl_anyrbtree_list2.h if (node->right == NULL) node 62 maint/gnulib/lib/gl_anyrbtree_list2.h node->right->parent = node; node 65 maint/gnulib/lib/gl_anyrbtree_list2.h node->right = NULL; node 67 maint/gnulib/lib/gl_anyrbtree_list2.h node->color = (bh == 0 ? RED : BLACK); node 69 maint/gnulib/lib/gl_anyrbtree_list2.h node->branch_size = count; node 71 maint/gnulib/lib/gl_anyrbtree_list2.h return node; node 74 maint/gnulib/lib/gl_anyrbtree_list2.h if (node->left != NULL) node 75 maint/gnulib/lib/gl_anyrbtree_list2.h free_subtree (node->left); node 77 maint/gnulib/lib/gl_anyrbtree_list2.h free (node); node 228 maint/gnulib/lib/gl_anyrbtree_list2.h rebalance_after_add (gl_list_t list, gl_list_node_t node, gl_list_node_t parent) node 241 maint/gnulib/lib/gl_anyrbtree_list2.h node->color = RED; node 261 maint/gnulib/lib/gl_anyrbtree_list2.h node->color = RED; node 263 maint/gnulib/lib/gl_anyrbtree_list2.h node = grandparent; node 284 maint/gnulib/lib/gl_anyrbtree_list2.h if (parent->right == node) node 287 maint/gnulib/lib/gl_anyrbtree_list2.h grandparent->left = rotate_left (parent, node); node 288 maint/gnulib/lib/gl_anyrbtree_list2.h node = parent; node 305 maint/gnulib/lib/gl_anyrbtree_list2.h node->color = grandparent->color = RED; node 309 maint/gnulib/lib/gl_anyrbtree_list2.h if (parent->left == node) node 312 maint/gnulib/lib/gl_anyrbtree_list2.h grandparent->right = rotate_right (node, parent); node 313 maint/gnulib/lib/gl_anyrbtree_list2.h node = parent; node 330 maint/gnulib/lib/gl_anyrbtree_list2.h node->color = grandparent->color = RED; node 336 maint/gnulib/lib/gl_anyrbtree_list2.h parent = node->parent; node 342 maint/gnulib/lib/gl_anyrbtree_list2.h node->color = BLACK; node 636 maint/gnulib/lib/gl_anyrbtree_list2.h gl_tree_remove_node_from_tree (gl_list_t list, gl_list_node_t node) node 638 maint/gnulib/lib/gl_anyrbtree_list2.h gl_list_node_t parent = node->parent; node 640 maint/gnulib/lib/gl_anyrbtree_list2.h if (node->left == NULL) node 643 maint/gnulib/lib/gl_anyrbtree_list2.h gl_list_node_t child = node->right; node 656 maint/gnulib/lib/gl_anyrbtree_list2.h if (parent->left == node) node 669 maint/gnulib/lib/gl_anyrbtree_list2.h if (child == NULL && node->color == BLACK) node 673 maint/gnulib/lib/gl_anyrbtree_list2.h else if (node->right == NULL) node 678 maint/gnulib/lib/gl_anyrbtree_list2.h gl_list_node_t child = node->left; node 688 maint/gnulib/lib/gl_anyrbtree_list2.h if (parent->left == node) node 710 maint/gnulib/lib/gl_anyrbtree_list2.h for (subst = node->left; subst->right != NULL; ) node 730 maint/gnulib/lib/gl_anyrbtree_list2.h if (subst_parent != node) node 748 maint/gnulib/lib/gl_anyrbtree_list2.h if (subst_parent != node) node 750 maint/gnulib/lib/gl_anyrbtree_list2.h subst->left = node->left; node 753 maint/gnulib/lib/gl_anyrbtree_list2.h subst->right = node->right; node 755 maint/gnulib/lib/gl_anyrbtree_list2.h subst->color = node->color; node 756 maint/gnulib/lib/gl_anyrbtree_list2.h subst->branch_size = node->branch_size; node 760 maint/gnulib/lib/gl_anyrbtree_list2.h else if (parent->left == node) node 775 maint/gnulib/lib/gl_anyrbtree_list2.h subst_parent != node ? subst_parent : subst); node 810 maint/gnulib/lib/gl_anyrbtree_list2.h gl_list_node_t node; node 812 maint/gnulib/lib/gl_anyrbtree_list2.h for (node = list->root; node->left != NULL; ) node 813 maint/gnulib/lib/gl_anyrbtree_list2.h node = node->left; node 815 maint/gnulib/lib/gl_anyrbtree_list2.h node->left = new_node; node 816 maint/gnulib/lib/gl_anyrbtree_list2.h new_node->parent = node; node 822 maint/gnulib/lib/gl_anyrbtree_list2.h for (p = node; p != NULL; p = p->parent) node 827 maint/gnulib/lib/gl_anyrbtree_list2.h rebalance_after_add (list, new_node, node); node 876 maint/gnulib/lib/gl_anyrbtree_list2.h gl_list_node_t node; node 878 maint/gnulib/lib/gl_anyrbtree_list2.h for (node = list->root; node->right != NULL; ) node 879 maint/gnulib/lib/gl_anyrbtree_list2.h node = node->right; node 881 maint/gnulib/lib/gl_anyrbtree_list2.h node->right = new_node; node 882 maint/gnulib/lib/gl_anyrbtree_list2.h new_node->parent = node; node 888 maint/gnulib/lib/gl_anyrbtree_list2.h for (p = node; p != NULL; p = p->parent) node 893 maint/gnulib/lib/gl_anyrbtree_list2.h rebalance_after_add (list, new_node, node); node 913 maint/gnulib/lib/gl_anyrbtree_list2.h gl_tree_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) node 934 maint/gnulib/lib/gl_anyrbtree_list2.h if (node->left == NULL) node 935 maint/gnulib/lib/gl_anyrbtree_list2.h node->left = new_node; node 938 maint/gnulib/lib/gl_anyrbtree_list2.h for (node = node->left; node->right != NULL; ) node 939 maint/gnulib/lib/gl_anyrbtree_list2.h node = node->right; node 940 maint/gnulib/lib/gl_anyrbtree_list2.h node->right = new_node; node 942 maint/gnulib/lib/gl_anyrbtree_list2.h new_node->parent = node; node 948 maint/gnulib/lib/gl_anyrbtree_list2.h for (p = node; p != NULL; p = p->parent) node 953 maint/gnulib/lib/gl_anyrbtree_list2.h rebalance_after_add (list, new_node, node); node 972 maint/gnulib/lib/gl_anyrbtree_list2.h gl_tree_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) node 993 maint/gnulib/lib/gl_anyrbtree_list2.h if (node->right == NULL) node 994 maint/gnulib/lib/gl_anyrbtree_list2.h node->right = new_node; node 997 maint/gnulib/lib/gl_anyrbtree_list2.h for (node = node->right; node->left != NULL; ) node 998 maint/gnulib/lib/gl_anyrbtree_list2.h node = node->left; node 999 maint/gnulib/lib/gl_anyrbtree_list2.h node->left = new_node; node 1001 maint/gnulib/lib/gl_anyrbtree_list2.h new_node->parent = node; node 1007 maint/gnulib/lib/gl_anyrbtree_list2.h for (p = node; p != NULL; p = p->parent) node 1012 maint/gnulib/lib/gl_anyrbtree_list2.h rebalance_after_add (list, new_node, node); node 24 maint/gnulib/lib/gl_anytree_list1.h gl_list_node_t node; node 34 maint/gnulib/lib/gl_anytree_list1.h free_subtree (gl_list_node_t node) node 36 maint/gnulib/lib/gl_anytree_list1.h if (node->left != NULL) node 37 maint/gnulib/lib/gl_anytree_list1.h free_subtree (node->left); node 38 maint/gnulib/lib/gl_anytree_list1.h if (node->right != NULL) node 39 maint/gnulib/lib/gl_anytree_list1.h free_subtree (node->right); node 40 maint/gnulib/lib/gl_anytree_list1.h free (node); node 64 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node) node 66 maint/gnulib/lib/gl_anytree_list2.h return node->value; node 71 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node, const void *elt) node 74 maint/gnulib/lib/gl_anytree_list2.h if (elt != node->value) node 81 maint/gnulib/lib/gl_anytree_list2.h if (new_hashcode != node->h.hashcode) node 83 maint/gnulib/lib/gl_anytree_list2.h remove_from_bucket (list, node); node 84 maint/gnulib/lib/gl_anytree_list2.h node->value = elt; node 85 maint/gnulib/lib/gl_anytree_list2.h node->h.hashcode = new_hashcode; node 86 maint/gnulib/lib/gl_anytree_list2.h if (add_to_bucket (list, node) < 0) node 91 maint/gnulib/lib/gl_anytree_list2.h gl_tree_remove_node_from_tree (list, node); node 92 maint/gnulib/lib/gl_anytree_list2.h free (node); node 97 maint/gnulib/lib/gl_anytree_list2.h node->value = elt; node 100 maint/gnulib/lib/gl_anytree_list2.h node->value = elt; node 107 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node) node 109 maint/gnulib/lib/gl_anytree_list2.h if (node->right != NULL) node 111 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 112 maint/gnulib/lib/gl_anytree_list2.h while (node->left != NULL) node 113 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 117 maint/gnulib/lib/gl_anytree_list2.h while (node->parent != NULL && node->parent->right == node) node 118 maint/gnulib/lib/gl_anytree_list2.h node = node->parent; node 119 maint/gnulib/lib/gl_anytree_list2.h node = node->parent; node 121 maint/gnulib/lib/gl_anytree_list2.h return node; node 126 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node) node 128 maint/gnulib/lib/gl_anytree_list2.h if (node->left != NULL) node 130 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 131 maint/gnulib/lib/gl_anytree_list2.h while (node->right != NULL) node 132 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 136 maint/gnulib/lib/gl_anytree_list2.h while (node->parent != NULL && node->parent->left == node) node 137 maint/gnulib/lib/gl_anytree_list2.h node = node->parent; node 138 maint/gnulib/lib/gl_anytree_list2.h node = node->parent; node 140 maint/gnulib/lib/gl_anytree_list2.h return node; node 146 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; node 148 maint/gnulib/lib/gl_anytree_list2.h if (node != NULL) node 150 maint/gnulib/lib/gl_anytree_list2.h while (node->left != NULL) node 151 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 153 maint/gnulib/lib/gl_anytree_list2.h return node; node 159 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; node 161 maint/gnulib/lib/gl_anytree_list2.h if (node != NULL) node 163 maint/gnulib/lib/gl_anytree_list2.h while (node->right != NULL) node 164 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 166 maint/gnulib/lib/gl_anytree_list2.h return node; node 174 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = root; node 178 maint/gnulib/lib/gl_anytree_list2.h if (node->left != NULL) node 180 maint/gnulib/lib/gl_anytree_list2.h if (position < node->left->branch_size) node 182 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 185 maint/gnulib/lib/gl_anytree_list2.h position -= node->left->branch_size; node 190 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 192 maint/gnulib/lib/gl_anytree_list2.h return node; node 198 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; node 200 maint/gnulib/lib/gl_anytree_list2.h if (!(node != NULL && position < node->branch_size)) node 203 maint/gnulib/lib/gl_anytree_list2.h node = node_at (node, position); node 204 maint/gnulib/lib/gl_anytree_list2.h return node->value; node 210 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; node 212 maint/gnulib/lib/gl_anytree_list2.h if (!(node != NULL && position < node->branch_size)) node 215 maint/gnulib/lib/gl_anytree_list2.h node = node_at (node, position); node 217 maint/gnulib/lib/gl_anytree_list2.h if (elt != node->value) node 224 maint/gnulib/lib/gl_anytree_list2.h if (new_hashcode != node->h.hashcode) node 226 maint/gnulib/lib/gl_anytree_list2.h remove_from_bucket (list, node); node 227 maint/gnulib/lib/gl_anytree_list2.h node->value = elt; node 228 maint/gnulib/lib/gl_anytree_list2.h node->h.hashcode = new_hashcode; node 229 maint/gnulib/lib/gl_anytree_list2.h if (add_to_bucket (list, node) < 0) node 234 maint/gnulib/lib/gl_anytree_list2.h gl_tree_remove_node_from_tree (list, node); node 235 maint/gnulib/lib/gl_anytree_list2.h free (node); node 240 maint/gnulib/lib/gl_anytree_list2.h node->value = elt; node 243 maint/gnulib/lib/gl_anytree_list2.h node->value = elt; node 245 maint/gnulib/lib/gl_anytree_list2.h return node; node 261 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; node 274 maint/gnulib/lib/gl_anytree_list2.h if (node == NULL) node 276 maint/gnulib/lib/gl_anytree_list2.h stack_ptr->node = node; node 278 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 290 maint/gnulib/lib/gl_anytree_list2.h node = stack_ptr->node; node 292 maint/gnulib/lib/gl_anytree_list2.h if (equals != NULL ? equals (elt, node->value) : elt == node->value) node 293 maint/gnulib/lib/gl_anytree_list2.h return node; node 299 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 315 maint/gnulib/lib/gl_anytree_list2.h if (node == NULL) node 317 maint/gnulib/lib/gl_anytree_list2.h if (node->branch_size <= start_index) node 319 maint/gnulib/lib/gl_anytree_list2.h stack_ptr->node = node; node 321 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 334 maint/gnulib/lib/gl_anytree_list2.h node = stack_ptr->node; node 337 maint/gnulib/lib/gl_anytree_list2.h (node->left != NULL ? node->left->branch_size : 0) + 1; node 341 maint/gnulib/lib/gl_anytree_list2.h if (equals != NULL ? equals (elt, node->value) : elt == node->value) node 342 maint/gnulib/lib/gl_anytree_list2.h return node; node 354 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 372 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; node 385 maint/gnulib/lib/gl_anytree_list2.h if (node == NULL) node 387 maint/gnulib/lib/gl_anytree_list2.h stack_ptr->node = node; node 389 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 401 maint/gnulib/lib/gl_anytree_list2.h node = stack_ptr->node; node 403 maint/gnulib/lib/gl_anytree_list2.h if (equals != NULL ? equals (elt, node->value) : elt == node->value) node 410 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 426 maint/gnulib/lib/gl_anytree_list2.h if (node == NULL) node 428 maint/gnulib/lib/gl_anytree_list2.h if (node->branch_size <= start_index) node 430 maint/gnulib/lib/gl_anytree_list2.h stack_ptr->node = node; node 432 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 445 maint/gnulib/lib/gl_anytree_list2.h node = stack_ptr->node; node 448 maint/gnulib/lib/gl_anytree_list2.h (node->left != NULL ? node->left->branch_size : 0) + 1; node 452 maint/gnulib/lib/gl_anytree_list2.h if (equals != NULL ? equals (elt, node->value) : elt == node->value) node 465 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 489 maint/gnulib/lib/gl_anytree_list2.h gl_tree_remove_node (gl_list_t list, gl_list_node_t node) node 495 maint/gnulib/lib/gl_anytree_list2.h remove_from_bucket (list, node); node 498 maint/gnulib/lib/gl_anytree_list2.h gl_tree_remove_node_from_tree (list, node); node 501 maint/gnulib/lib/gl_anytree_list2.h list->base.dispose_fn (node->value); node 502 maint/gnulib/lib/gl_anytree_list2.h free (node); node 509 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; node 511 maint/gnulib/lib/gl_anytree_list2.h if (!(node != NULL && position < node->branch_size)) node 514 maint/gnulib/lib/gl_anytree_list2.h node = node_at (node, position); node 515 maint/gnulib/lib/gl_anytree_list2.h return gl_tree_remove_node (list, node); node 523 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = node 526 maint/gnulib/lib/gl_anytree_list2.h if (node != NULL) node 527 maint/gnulib/lib/gl_anytree_list2.h return gl_tree_remove_node (list, node); node 538 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; node 547 maint/gnulib/lib/gl_anytree_list2.h if (node == NULL) node 549 maint/gnulib/lib/gl_anytree_list2.h stack_ptr->node = node; node 551 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 560 maint/gnulib/lib/gl_anytree_list2.h node = stack_ptr->node; node 565 maint/gnulib/lib/gl_anytree_list2.h list->base.dispose_fn (node->value); node 566 maint/gnulib/lib/gl_anytree_list2.h free (node); node 570 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 585 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node; node 590 maint/gnulib/lib/gl_anytree_list2.h node = list->root; node 591 maint/gnulib/lib/gl_anytree_list2.h if (node != NULL) node 592 maint/gnulib/lib/gl_anytree_list2.h while (node->left != NULL) node 593 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 594 maint/gnulib/lib/gl_anytree_list2.h result.p = node; node 636 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = (gl_list_node_t) iterator->p; node 637 maint/gnulib/lib/gl_anytree_list2.h *eltp = node->value; node 639 maint/gnulib/lib/gl_anytree_list2.h *nodep = node; node 641 maint/gnulib/lib/gl_anytree_list2.h if (node->right != NULL) node 643 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 644 maint/gnulib/lib/gl_anytree_list2.h while (node->left != NULL) node 645 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 649 maint/gnulib/lib/gl_anytree_list2.h while (node->parent != NULL && node->parent->right == node) node 650 maint/gnulib/lib/gl_anytree_list2.h node = node->parent; node 651 maint/gnulib/lib/gl_anytree_list2.h node = node->parent; node 653 maint/gnulib/lib/gl_anytree_list2.h iterator->p = node; node 671 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node; node 673 maint/gnulib/lib/gl_anytree_list2.h for (node = list->root; node != NULL; ) node 675 maint/gnulib/lib/gl_anytree_list2.h int cmp = compar (node->value, elt); node 678 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 680 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 685 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t found = node; node 686 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 687 maint/gnulib/lib/gl_anytree_list2.h for (; node != NULL; ) node 689 maint/gnulib/lib/gl_anytree_list2.h int cmp2 = compar (node->value, elt); node 692 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 698 maint/gnulib/lib/gl_anytree_list2.h found = node; node 699 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 714 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node; node 721 maint/gnulib/lib/gl_anytree_list2.h for (node = list->root; node != NULL; ) node 724 maint/gnulib/lib/gl_anytree_list2.h (node->left != NULL ? node->left->branch_size : 0); node 730 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 733 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 737 maint/gnulib/lib/gl_anytree_list2.h int cmp = compar (node->value, elt); node 743 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 746 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 751 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t found = node; node 752 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 753 maint/gnulib/lib/gl_anytree_list2.h for (; node != NULL; ) node 756 maint/gnulib/lib/gl_anytree_list2.h (node->left != NULL ? node->left->branch_size : 0); node 761 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 766 maint/gnulib/lib/gl_anytree_list2.h int cmp2 = compar (node->value, elt); node 771 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 778 maint/gnulib/lib/gl_anytree_list2.h found = node; node 779 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 794 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node; node 797 maint/gnulib/lib/gl_anytree_list2.h for (node = list->root, position = 0; node != NULL; ) node 799 maint/gnulib/lib/gl_anytree_list2.h int cmp = compar (node->value, elt); node 803 maint/gnulib/lib/gl_anytree_list2.h if (node->left != NULL) node 804 maint/gnulib/lib/gl_anytree_list2.h position += node->left->branch_size; node 806 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 809 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 815 maint/gnulib/lib/gl_anytree_list2.h position + (node->left != NULL ? node->left->branch_size : 0); node 816 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 817 maint/gnulib/lib/gl_anytree_list2.h for (; node != NULL; ) node 819 maint/gnulib/lib/gl_anytree_list2.h int cmp2 = compar (node->value, elt); node 823 maint/gnulib/lib/gl_anytree_list2.h if (node->left != NULL) node 824 maint/gnulib/lib/gl_anytree_list2.h position += node->left->branch_size; node 826 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 835 maint/gnulib/lib/gl_anytree_list2.h + (node->left != NULL ? node->left->branch_size : 0); node 836 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 851 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node; node 859 maint/gnulib/lib/gl_anytree_list2.h for (node = list->root, position = 0; node != NULL; ) node 862 maint/gnulib/lib/gl_anytree_list2.h (node->left != NULL ? node->left->branch_size : 0); node 869 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 872 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 876 maint/gnulib/lib/gl_anytree_list2.h int cmp = compar (node->value, elt); node 883 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 886 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 892 maint/gnulib/lib/gl_anytree_list2.h position + (node->left != NULL ? node->left->branch_size : 0); node 893 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 894 maint/gnulib/lib/gl_anytree_list2.h for (; node != NULL; ) node 897 maint/gnulib/lib/gl_anytree_list2.h (node->left != NULL ? node->left->branch_size : 0); node 902 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 907 maint/gnulib/lib/gl_anytree_list2.h int cmp2 = compar (node->value, elt); node 912 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 920 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 935 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = list->root; node 937 maint/gnulib/lib/gl_anytree_list2.h if (node == NULL) node 942 maint/gnulib/lib/gl_anytree_list2.h int cmp = compar (node->value, elt); node 946 maint/gnulib/lib/gl_anytree_list2.h if (node->right == NULL) node 947 maint/gnulib/lib/gl_anytree_list2.h return gl_tree_nx_add_after (list, node, elt); node 948 maint/gnulib/lib/gl_anytree_list2.h node = node->right; node 952 maint/gnulib/lib/gl_anytree_list2.h if (node->left == NULL) node 953 maint/gnulib/lib/gl_anytree_list2.h return gl_tree_nx_add_before (list, node, elt); node 954 maint/gnulib/lib/gl_anytree_list2.h node = node->left; node 957 maint/gnulib/lib/gl_anytree_list2.h return gl_tree_nx_add_before (list, node, elt); node 965 maint/gnulib/lib/gl_anytree_list2.h gl_list_node_t node = gl_tree_sortedlist_search (list, compar, elt); node 966 maint/gnulib/lib/gl_anytree_list2.h if (node != NULL) node 967 maint/gnulib/lib/gl_anytree_list2.h return gl_tree_remove_node (list, node); node 23 maint/gnulib/lib/gl_anytree_omap.h gl_omap_node_t node; node 62 maint/gnulib/lib/gl_anytree_omap.h gl_omap_node_t node; node 64 maint/gnulib/lib/gl_anytree_omap.h for (node = map->root; node != NULL; ) node 67 maint/gnulib/lib/gl_anytree_omap.h ? compar (node->key, key) node 68 maint/gnulib/lib/gl_anytree_omap.h : (node->key > key ? 1 : node 69 maint/gnulib/lib/gl_anytree_omap.h node->key < key ? -1 : 0)); node 72 maint/gnulib/lib/gl_anytree_omap.h node = node->right; node 74 maint/gnulib/lib/gl_anytree_omap.h node = node->left; node 78 maint/gnulib/lib/gl_anytree_omap.h *valuep = node->value; node 91 maint/gnulib/lib/gl_anytree_omap.h gl_omap_node_t node; node 93 maint/gnulib/lib/gl_anytree_omap.h for (node = map->root; node != NULL; ) node 95 maint/gnulib/lib/gl_anytree_omap.h if (! threshold_fn (node->key, threshold)) node 96 maint/gnulib/lib/gl_anytree_omap.h node = node->right; node 101 maint/gnulib/lib/gl_anytree_omap.h gl_omap_node_t found = node; node 102 maint/gnulib/lib/gl_anytree_omap.h node = node->left; node 103 maint/gnulib/lib/gl_anytree_omap.h for (; node != NULL; ) node 105 maint/gnulib/lib/gl_anytree_omap.h if (! threshold_fn (node->key, threshold)) node 106 maint/gnulib/lib/gl_anytree_omap.h node = node->right; node 109 maint/gnulib/lib/gl_anytree_omap.h found = node; node 110 maint/gnulib/lib/gl_anytree_omap.h node = node->left; node 126 maint/gnulib/lib/gl_anytree_omap.h gl_omap_node_t node = map->root; node 128 maint/gnulib/lib/gl_anytree_omap.h if (node == NULL) node 140 maint/gnulib/lib/gl_anytree_omap.h ? compar (node->key, key) node 141 maint/gnulib/lib/gl_anytree_omap.h : (node->key > key ? 1 : node 142 maint/gnulib/lib/gl_anytree_omap.h node->key < key ? -1 : 0)); node 146 maint/gnulib/lib/gl_anytree_omap.h if (node->right == NULL) node 148 maint/gnulib/lib/gl_anytree_omap.h if (gl_tree_nx_add_after (map, node, key, value) == NULL) node 152 maint/gnulib/lib/gl_anytree_omap.h node = node->right; node 156 maint/gnulib/lib/gl_anytree_omap.h if (node->left == NULL) node 158 maint/gnulib/lib/gl_anytree_omap.h if (gl_tree_nx_add_before (map, node, key, value) == NULL) node 162 maint/gnulib/lib/gl_anytree_omap.h node = node->left; node 166 maint/gnulib/lib/gl_anytree_omap.h *oldvaluep = node->value; node 167 maint/gnulib/lib/gl_anytree_omap.h node->value = value; node 177 maint/gnulib/lib/gl_anytree_omap.h gl_omap_node_t node; node 179 maint/gnulib/lib/gl_anytree_omap.h for (node = map->root; node != NULL; ) node 182 maint/gnulib/lib/gl_anytree_omap.h ? compar (node->key, key) node 183 maint/gnulib/lib/gl_anytree_omap.h : (node->key > key ? 1 : node 184 maint/gnulib/lib/gl_anytree_omap.h node->key < key ? -1 : 0)); node 187 maint/gnulib/lib/gl_anytree_omap.h node = node->right; node 189 maint/gnulib/lib/gl_anytree_omap.h node = node->left; node 193 maint/gnulib/lib/gl_anytree_omap.h *oldvaluep = node->value; node 194 maint/gnulib/lib/gl_anytree_omap.h gl_tree_remove_node (map, node); node 205 maint/gnulib/lib/gl_anytree_omap.h gl_omap_node_t node = map->root; node 214 maint/gnulib/lib/gl_anytree_omap.h if (node == NULL) node 216 maint/gnulib/lib/gl_anytree_omap.h stack_ptr->node = node; node 218 maint/gnulib/lib/gl_anytree_omap.h node = node->left; node 227 maint/gnulib/lib/gl_anytree_omap.h node = stack_ptr->node; node 232 maint/gnulib/lib/gl_anytree_omap.h map->base.vdispose_fn (node->value); node 234 maint/gnulib/lib/gl_anytree_omap.h map->base.kdispose_fn (node->key); node 235 maint/gnulib/lib/gl_anytree_omap.h free (node); node 239 maint/gnulib/lib/gl_anytree_omap.h node = node->right; node 252 maint/gnulib/lib/gl_anytree_omap.h gl_omap_node_t node; node 257 maint/gnulib/lib/gl_anytree_omap.h node = map->root; node 258 maint/gnulib/lib/gl_anytree_omap.h if (node != NULL) node 259 maint/gnulib/lib/gl_anytree_omap.h while (node->left != NULL) node 260 maint/gnulib/lib/gl_anytree_omap.h node = node->left; node 261 maint/gnulib/lib/gl_anytree_omap.h result.p = node; node 279 maint/gnulib/lib/gl_anytree_omap.h gl_omap_node_t node = (gl_omap_node_t) iterator->p; node 280 maint/gnulib/lib/gl_anytree_omap.h *keyp = node->key; node 281 maint/gnulib/lib/gl_anytree_omap.h *valuep = node->value; node 283 maint/gnulib/lib/gl_anytree_omap.h if (node->right != NULL) node 285 maint/gnulib/lib/gl_anytree_omap.h node = node->right; node 286 maint/gnulib/lib/gl_anytree_omap.h while (node->left != NULL) node 287 maint/gnulib/lib/gl_anytree_omap.h node = node->left; node 291 maint/gnulib/lib/gl_anytree_omap.h while (node->parent != NULL && node->parent->right == node) node 292 maint/gnulib/lib/gl_anytree_omap.h node = node->parent; node 293 maint/gnulib/lib/gl_anytree_omap.h node = node->parent; node 295 maint/gnulib/lib/gl_anytree_omap.h iterator->p = node; node 23 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t node; node 58 maint/gnulib/lib/gl_anytree_oset.h gl_tree_next_node (gl_oset_node_t node) node 60 maint/gnulib/lib/gl_anytree_oset.h if (node->right != NULL) node 62 maint/gnulib/lib/gl_anytree_oset.h node = node->right; node 63 maint/gnulib/lib/gl_anytree_oset.h while (node->left != NULL) node 64 maint/gnulib/lib/gl_anytree_oset.h node = node->left; node 68 maint/gnulib/lib/gl_anytree_oset.h while (node->parent != NULL && node->parent->right == node) node 69 maint/gnulib/lib/gl_anytree_oset.h node = node->parent; node 70 maint/gnulib/lib/gl_anytree_oset.h node = node->parent; node 72 maint/gnulib/lib/gl_anytree_oset.h return node; node 77 maint/gnulib/lib/gl_anytree_oset.h gl_tree_prev_node (gl_oset_node_t node) node 79 maint/gnulib/lib/gl_anytree_oset.h if (node->left != NULL) node 81 maint/gnulib/lib/gl_anytree_oset.h node = node->left; node 82 maint/gnulib/lib/gl_anytree_oset.h while (node->right != NULL) node 83 maint/gnulib/lib/gl_anytree_oset.h node = node->right; node 87 maint/gnulib/lib/gl_anytree_oset.h while (node->parent != NULL && node->parent->left == node) node 88 maint/gnulib/lib/gl_anytree_oset.h node = node->parent; node 89 maint/gnulib/lib/gl_anytree_oset.h node = node->parent; node 91 maint/gnulib/lib/gl_anytree_oset.h return node; node 98 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t node; node 100 maint/gnulib/lib/gl_anytree_oset.h for (node = set->root; node != NULL; ) node 103 maint/gnulib/lib/gl_anytree_oset.h ? compar (node->value, elt) node 104 maint/gnulib/lib/gl_anytree_oset.h : (node->value > elt ? 1 : node 105 maint/gnulib/lib/gl_anytree_oset.h node->value < elt ? -1 : 0)); node 108 maint/gnulib/lib/gl_anytree_oset.h node = node->right; node 110 maint/gnulib/lib/gl_anytree_oset.h node = node->left; node 124 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t node; node 126 maint/gnulib/lib/gl_anytree_oset.h for (node = set->root; node != NULL; ) node 128 maint/gnulib/lib/gl_anytree_oset.h if (! threshold_fn (node->value, threshold)) node 129 maint/gnulib/lib/gl_anytree_oset.h node = node->right; node 134 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t found = node; node 135 maint/gnulib/lib/gl_anytree_oset.h node = node->left; node 136 maint/gnulib/lib/gl_anytree_oset.h for (; node != NULL; ) node 138 maint/gnulib/lib/gl_anytree_oset.h if (! threshold_fn (node->value, threshold)) node 139 maint/gnulib/lib/gl_anytree_oset.h node = node->right; node 142 maint/gnulib/lib/gl_anytree_oset.h found = node; node 143 maint/gnulib/lib/gl_anytree_oset.h node = node->left; node 157 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t node; node 159 maint/gnulib/lib/gl_anytree_oset.h for (node = set->root; node != NULL; ) node 162 maint/gnulib/lib/gl_anytree_oset.h ? compar (node->value, elt) node 163 maint/gnulib/lib/gl_anytree_oset.h : (node->value > elt ? 1 : node 164 maint/gnulib/lib/gl_anytree_oset.h node->value < elt ? -1 : 0)); node 167 maint/gnulib/lib/gl_anytree_oset.h node = node->right; node 169 maint/gnulib/lib/gl_anytree_oset.h node = node->left; node 172 maint/gnulib/lib/gl_anytree_oset.h return node; node 181 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t node = set->root; node 183 maint/gnulib/lib/gl_anytree_oset.h if (node == NULL) node 195 maint/gnulib/lib/gl_anytree_oset.h ? compar (node->value, elt) node 196 maint/gnulib/lib/gl_anytree_oset.h : (node->value > elt ? 1 : node 197 maint/gnulib/lib/gl_anytree_oset.h node->value < elt ? -1 : 0)); node 201 maint/gnulib/lib/gl_anytree_oset.h if (node->right == NULL) node 203 maint/gnulib/lib/gl_anytree_oset.h if (gl_tree_nx_add_after (set, node, elt) == NULL) node 207 maint/gnulib/lib/gl_anytree_oset.h node = node->right; node 211 maint/gnulib/lib/gl_anytree_oset.h if (node->left == NULL) node 213 maint/gnulib/lib/gl_anytree_oset.h if (gl_tree_nx_add_before (set, node, elt) == NULL) node 217 maint/gnulib/lib/gl_anytree_oset.h node = node->left; node 227 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t node = gl_tree_search_node (set, elt); node 229 maint/gnulib/lib/gl_anytree_oset.h if (node != NULL) node 230 maint/gnulib/lib/gl_anytree_oset.h return gl_tree_remove_node (set, node); node 262 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t node; node 267 maint/gnulib/lib/gl_anytree_oset.h node = set->root; node 272 maint/gnulib/lib/gl_anytree_oset.h ? compar (node->value, elt) node 273 maint/gnulib/lib/gl_anytree_oset.h : (node->value > elt ? 1 : node 274 maint/gnulib/lib/gl_anytree_oset.h node->value < elt ? -1 : 0)); node 278 maint/gnulib/lib/gl_anytree_oset.h if (node->right == NULL) node 280 maint/gnulib/lib/gl_anytree_oset.h gl_tree_add_node_after (set, node, old_node); node 283 maint/gnulib/lib/gl_anytree_oset.h node = node->right; node 287 maint/gnulib/lib/gl_anytree_oset.h if (node->left == NULL) node 289 maint/gnulib/lib/gl_anytree_oset.h gl_tree_add_node_before (set, node, old_node); node 292 maint/gnulib/lib/gl_anytree_oset.h node = node->left; node 312 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t node = set->root; node 321 maint/gnulib/lib/gl_anytree_oset.h if (node == NULL) node 323 maint/gnulib/lib/gl_anytree_oset.h stack_ptr->node = node; node 325 maint/gnulib/lib/gl_anytree_oset.h node = node->left; node 334 maint/gnulib/lib/gl_anytree_oset.h node = stack_ptr->node; node 339 maint/gnulib/lib/gl_anytree_oset.h set->base.dispose_fn (node->value); node 340 maint/gnulib/lib/gl_anytree_oset.h free (node); node 344 maint/gnulib/lib/gl_anytree_oset.h node = node->right; node 357 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t node; node 362 maint/gnulib/lib/gl_anytree_oset.h node = set->root; node 363 maint/gnulib/lib/gl_anytree_oset.h if (node != NULL) node 364 maint/gnulib/lib/gl_anytree_oset.h while (node->left != NULL) node 365 maint/gnulib/lib/gl_anytree_oset.h node = node->left; node 366 maint/gnulib/lib/gl_anytree_oset.h result.p = node; node 384 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t node; node 396 maint/gnulib/lib/gl_anytree_oset.h for (node = set->root; node != NULL; ) node 398 maint/gnulib/lib/gl_anytree_oset.h if (! threshold_fn (node->value, threshold)) node 399 maint/gnulib/lib/gl_anytree_oset.h node = node->right; node 404 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t found = node; node 405 maint/gnulib/lib/gl_anytree_oset.h node = node->left; node 406 maint/gnulib/lib/gl_anytree_oset.h for (; node != NULL; ) node 408 maint/gnulib/lib/gl_anytree_oset.h if (! threshold_fn (node->value, threshold)) node 409 maint/gnulib/lib/gl_anytree_oset.h node = node->right; node 412 maint/gnulib/lib/gl_anytree_oset.h found = node; node 413 maint/gnulib/lib/gl_anytree_oset.h node = node->left; node 429 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t node = (gl_oset_node_t) iterator->p; node 430 maint/gnulib/lib/gl_anytree_oset.h *eltp = node->value; node 432 maint/gnulib/lib/gl_anytree_oset.h node = gl_tree_next_node (node); node 433 maint/gnulib/lib/gl_anytree_oset.h iterator->p = node; node 33 maint/gnulib/lib/gl_anytreehash_list1.h node_position (gl_list_node_t node) node 37 maint/gnulib/lib/gl_anytreehash_list1.h if (node->left != NULL) node 38 maint/gnulib/lib/gl_anytreehash_list1.h position += node->left->branch_size; node 41 maint/gnulib/lib/gl_anytreehash_list1.h gl_list_node_t parent = node->parent; node 46 maint/gnulib/lib/gl_anytreehash_list1.h if (parent->right == node) node 53 maint/gnulib/lib/gl_anytreehash_list1.h node = parent; node 74 maint/gnulib/lib/gl_anytreehash_list1.h gl_list_node_t node = (gl_list_node_t) x; node 75 maint/gnulib/lib/gl_anytreehash_list1.h size_t position = node_position (node); node 123 maint/gnulib/lib/gl_anytreehash_list1.h gl_list_node_t node = gl_oset_first (nodes); node 124 maint/gnulib/lib/gl_anytreehash_list1.h if (equals != NULL ? equals (value, node->value) : value == node->value) node 134 maint/gnulib/lib/gl_anytreehash_list1.h gl_list_node_t node = (struct gl_list_node_impl *) entry; node 135 maint/gnulib/lib/gl_anytreehash_list1.h if (equals != NULL ? equals (value, node->value) : value == node->value) node 148 maint/gnulib/lib/gl_anytreehash_list1.h if (gl_oset_nx_add (nodes, node) < 0) node 178 maint/gnulib/lib/gl_anytreehash_list1.h #define add_to_bucket(list,node) \ node 179 maint/gnulib/lib/gl_anytreehash_list1.h __builtin_expect ((add_to_bucket) (list, node), 0) node 219 maint/gnulib/lib/gl_anytreehash_list1.h gl_list_node_t node = gl_oset_first (nodes); node 220 maint/gnulib/lib/gl_anytreehash_list1.h if (equals != NULL ? equals (value, node->value) : value == node->value) node 229 maint/gnulib/lib/gl_anytreehash_list1.h node = gl_oset_first (nodes); node 230 maint/gnulib/lib/gl_anytreehash_list1.h node->h.hash_next = entry->hash_next; node 231 maint/gnulib/lib/gl_anytreehash_list1.h *entryp = &node->h; node 267 maint/gnulib/lib/gl_anytreehash_list1.h gl_list_node_t node = list->root; node 276 maint/gnulib/lib/gl_anytreehash_list1.h if (node == NULL) node 278 maint/gnulib/lib/gl_anytreehash_list1.h stack_ptr->node = node; node 280 maint/gnulib/lib/gl_anytreehash_list1.h node = node->left; node 292 maint/gnulib/lib/gl_anytreehash_list1.h node = stack_ptr->node; node 294 maint/gnulib/lib/gl_anytreehash_list1.h node->h.hashcode = node 296 maint/gnulib/lib/gl_anytreehash_list1.h ? list->base.hashcode_fn (node->value) node 297 maint/gnulib/lib/gl_anytreehash_list1.h : (size_t)(uintptr_t) node->value); node 298 maint/gnulib/lib/gl_anytreehash_list1.h if (add_to_bucket (list, node) < 0) node 302 maint/gnulib/lib/gl_anytreehash_list1.h node = node->right; node 314 maint/gnulib/lib/gl_anytreehash_list1.h node = node->left; node 319 maint/gnulib/lib/gl_anytreehash_list1.h if (node == NULL) node 321 maint/gnulib/lib/gl_anytreehash_list1.h stack_ptr->node = node; node 323 maint/gnulib/lib/gl_anytreehash_list1.h node = node->right; node 335 maint/gnulib/lib/gl_anytreehash_list1.h node = stack_ptr->node; node 337 maint/gnulib/lib/gl_anytreehash_list1.h remove_from_bucket (list, node); node 47 maint/gnulib/lib/gl_anytreehash_list2.h gl_list_node_t node = gl_oset_first (nodes); node 48 maint/gnulib/lib/gl_anytreehash_list2.h if (equals != NULL ? equals (elt, node->value) : elt == node->value) node 57 maint/gnulib/lib/gl_anytreehash_list2.h || node_position (node) < end_index) node 58 maint/gnulib/lib/gl_anytreehash_list2.h return node; node 70 maint/gnulib/lib/gl_anytreehash_list2.h node = (gl_list_node_t) nodes_elt; node 72 maint/gnulib/lib/gl_anytreehash_list2.h || node_position (node) < end_index) node 73 maint/gnulib/lib/gl_anytreehash_list2.h return node; node 82 maint/gnulib/lib/gl_anytreehash_list2.h gl_list_node_t node = (struct gl_list_node_impl *) entry; node 83 maint/gnulib/lib/gl_anytreehash_list2.h if (equals != NULL ? equals (elt, node->value) : elt == node->value) node 90 maint/gnulib/lib/gl_anytreehash_list2.h size_t position = node_position (node); node 95 maint/gnulib/lib/gl_anytreehash_list2.h return node; node 107 maint/gnulib/lib/gl_anytreehash_list2.h gl_list_node_t node = (struct gl_list_node_impl *) entry; node 108 maint/gnulib/lib/gl_anytreehash_list2.h if (equals != NULL ? equals (elt, node->value) : elt == node->value) node 115 maint/gnulib/lib/gl_anytreehash_list2.h size_t position = node_position (node); node 120 maint/gnulib/lib/gl_anytreehash_list2.h return node; node 134 maint/gnulib/lib/gl_anytreehash_list2.h gl_list_node_t node = node 137 maint/gnulib/lib/gl_anytreehash_list2.h if (node != NULL) node 138 maint/gnulib/lib/gl_anytreehash_list2.h return node_position (node); node 174 maint/gnulib/lib/gl_anytreehash_list2.h gl_list_node_t node = list->root; node 183 maint/gnulib/lib/gl_anytreehash_list2.h if (node == NULL) node 185 maint/gnulib/lib/gl_anytreehash_list2.h stack_ptr->node = node; node 187 maint/gnulib/lib/gl_anytreehash_list2.h node = node->left; node 196 maint/gnulib/lib/gl_anytreehash_list2.h node = stack_ptr->node; node 201 maint/gnulib/lib/gl_anytreehash_list2.h list->base.dispose_fn (node->value); node 202 maint/gnulib/lib/gl_anytreehash_list2.h free (node); node 206 maint/gnulib/lib/gl_anytreehash_list2.h node = node->right; node 47 maint/gnulib/lib/gl_array_list.c #define NODE_TO_INDEX(node) ((uintptr_t)(node) - 1) node 121 maint/gnulib/lib/gl_array_list.c gl_array_node_value (gl_list_t list, gl_list_node_t node) node 123 maint/gnulib/lib/gl_array_list.c uintptr_t index = NODE_TO_INDEX (node); node 131 maint/gnulib/lib/gl_array_list.c gl_array_node_nx_set_value (gl_list_t list, gl_list_node_t node, node 134 maint/gnulib/lib/gl_array_list.c uintptr_t index = NODE_TO_INDEX (node); node 143 maint/gnulib/lib/gl_array_list.c gl_array_next_node (gl_list_t list, gl_list_node_t node) node 145 maint/gnulib/lib/gl_array_list.c uintptr_t index = NODE_TO_INDEX (node); node 157 maint/gnulib/lib/gl_array_list.c gl_array_previous_node (gl_list_t list, gl_list_node_t node) node 159 maint/gnulib/lib/gl_array_list.c uintptr_t index = NODE_TO_INDEX (node); node 317 maint/gnulib/lib/gl_array_list.c gl_array_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) node 320 maint/gnulib/lib/gl_array_list.c uintptr_t index = NODE_TO_INDEX (node); node 341 maint/gnulib/lib/gl_array_list.c gl_array_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) node 344 maint/gnulib/lib/gl_array_list.c uintptr_t index = NODE_TO_INDEX (node); node 386 maint/gnulib/lib/gl_array_list.c gl_array_remove_node (gl_list_t list, gl_list_node_t node) node 389 maint/gnulib/lib/gl_array_list.c uintptr_t index = NODE_TO_INDEX (node); node 43 maint/gnulib/lib/gl_avltree_list.c check_invariants (gl_list_node_t node, gl_list_node_t parent) node 46 maint/gnulib/lib/gl_avltree_list.c (node->left != NULL ? check_invariants (node->left, node) : 0); node 48 maint/gnulib/lib/gl_avltree_list.c (node->right != NULL ? check_invariants (node->right, node) : 0); node 51 maint/gnulib/lib/gl_avltree_list.c if (!(node->parent == parent)) node 53 maint/gnulib/lib/gl_avltree_list.c if (!(node->branch_size node 54 maint/gnulib/lib/gl_avltree_list.c == (node->left != NULL ? node->left->branch_size : 0) node 55 maint/gnulib/lib/gl_avltree_list.c + 1 + (node->right != NULL ? node->right->branch_size : 0))) node 59 maint/gnulib/lib/gl_avltree_list.c if (!(node->balance == balance)) node 38 maint/gnulib/lib/gl_avltree_omap.c #define NODE_PAYLOAD_ASSIGN(node) \ node 39 maint/gnulib/lib/gl_avltree_omap.c node->key = key; \ node 40 maint/gnulib/lib/gl_avltree_omap.c node->value = value; node 41 maint/gnulib/lib/gl_avltree_omap.c #define NODE_PAYLOAD_DISPOSE(container, node) \ node 43 maint/gnulib/lib/gl_avltree_omap.c container->base.kdispose_fn (node->key); node 66 maint/gnulib/lib/gl_avltree_ordered.h NODE_T node, int height_diff, NODE_T parent) node 76 maint/gnulib/lib/gl_avltree_ordered.h child = node; node 77 maint/gnulib/lib/gl_avltree_ordered.h node = parent; node 79 maint/gnulib/lib/gl_avltree_ordered.h previous_balance = node->balance; node 85 maint/gnulib/lib/gl_avltree_ordered.h if (node->left != NULL || node->right != NULL) node 86 maint/gnulib/lib/gl_avltree_ordered.h balance_diff = (child == node->right ? height_diff : -height_diff); node 93 maint/gnulib/lib/gl_avltree_ordered.h node->balance += balance_diff; node 99 maint/gnulib/lib/gl_avltree_ordered.h if (node->parent == NULL) node 102 maint/gnulib/lib/gl_avltree_ordered.h else if (node->parent->left == node) node 103 maint/gnulib/lib/gl_avltree_ordered.h nodep = &node->parent->left; node 104 maint/gnulib/lib/gl_avltree_ordered.h else if (node->parent->right == node) node 105 maint/gnulib/lib/gl_avltree_ordered.h nodep = &node->parent->right; node 109 maint/gnulib/lib/gl_avltree_ordered.h nodeleft = node->left; node 110 maint/gnulib/lib/gl_avltree_ordered.h noderight = node->right; node 131 maint/gnulib/lib/gl_avltree_ordered.h node->left = nodeleftright; node 132 maint/gnulib/lib/gl_avltree_ordered.h nodeleft->right = node; node 134 maint/gnulib/lib/gl_avltree_ordered.h nodeleft->parent = node->parent; node 135 maint/gnulib/lib/gl_avltree_ordered.h node->parent = nodeleft; node 137 maint/gnulib/lib/gl_avltree_ordered.h nodeleftright->parent = node; node 140 maint/gnulib/lib/gl_avltree_ordered.h node->balance = - nodeleft->balance; node 166 maint/gnulib/lib/gl_avltree_ordered.h NODE_T R = node->left = nodeleftright->right; node 168 maint/gnulib/lib/gl_avltree_ordered.h nodeleftright->right = node; node 170 maint/gnulib/lib/gl_avltree_ordered.h nodeleftright->parent = node->parent; node 174 maint/gnulib/lib/gl_avltree_ordered.h R->parent = node; node 176 maint/gnulib/lib/gl_avltree_ordered.h node->parent = nodeleftright; node 179 maint/gnulib/lib/gl_avltree_ordered.h node->balance = (nodeleftright->balance < 0 ? 1 : 0); node 213 maint/gnulib/lib/gl_avltree_ordered.h node->right = noderightleft; node 214 maint/gnulib/lib/gl_avltree_ordered.h noderight->left = node; node 216 maint/gnulib/lib/gl_avltree_ordered.h noderight->parent = node->parent; node 217 maint/gnulib/lib/gl_avltree_ordered.h node->parent = noderight; node 219 maint/gnulib/lib/gl_avltree_ordered.h noderightleft->parent = node; node 222 maint/gnulib/lib/gl_avltree_ordered.h node->balance = - noderight->balance; node 247 maint/gnulib/lib/gl_avltree_ordered.h NODE_T L = node->right = noderightleft->left; node 249 maint/gnulib/lib/gl_avltree_ordered.h noderightleft->left = node; node 252 maint/gnulib/lib/gl_avltree_ordered.h noderightleft->parent = node->parent; node 254 maint/gnulib/lib/gl_avltree_ordered.h L->parent = node; node 257 maint/gnulib/lib/gl_avltree_ordered.h node->parent = noderightleft; node 260 maint/gnulib/lib/gl_avltree_ordered.h node->balance = (noderightleft->balance > 0 ? -1 : 0); node 276 maint/gnulib/lib/gl_avltree_ordered.h node = *nodep; node 285 maint/gnulib/lib/gl_avltree_ordered.h height_diff = (node->balance == 0 ? 0 : 1); node 291 maint/gnulib/lib/gl_avltree_ordered.h parent = node->parent; node 320 maint/gnulib/lib/gl_avltree_ordered.h NODE_T node; node 322 maint/gnulib/lib/gl_avltree_ordered.h for (node = container->root; node->left != NULL; ) node 323 maint/gnulib/lib/gl_avltree_ordered.h node = node->left; node 325 maint/gnulib/lib/gl_avltree_ordered.h node->left = new_node; node 326 maint/gnulib/lib/gl_avltree_ordered.h new_node->parent = node; node 327 maint/gnulib/lib/gl_avltree_ordered.h node->balance--; node 330 maint/gnulib/lib/gl_avltree_ordered.h if (node->right == NULL && node->parent != NULL) node 331 maint/gnulib/lib/gl_avltree_ordered.h rebalance (container, node, 1, node->parent); node 340 maint/gnulib/lib/gl_avltree_ordered.h gl_tree_add_node_before (CONTAINER_T container, NODE_T node, NODE_T new_node) node 349 maint/gnulib/lib/gl_avltree_ordered.h if (node->left == NULL) node 351 maint/gnulib/lib/gl_avltree_ordered.h node->left = new_node; node 352 maint/gnulib/lib/gl_avltree_ordered.h node->balance--; node 353 maint/gnulib/lib/gl_avltree_ordered.h height_inc = (node->right == NULL); node 357 maint/gnulib/lib/gl_avltree_ordered.h for (node = node->left; node->right != NULL; ) node 358 maint/gnulib/lib/gl_avltree_ordered.h node = node->right; node 359 maint/gnulib/lib/gl_avltree_ordered.h node->right = new_node; node 360 maint/gnulib/lib/gl_avltree_ordered.h node->balance++; node 361 maint/gnulib/lib/gl_avltree_ordered.h height_inc = (node->left == NULL); node 363 maint/gnulib/lib/gl_avltree_ordered.h new_node->parent = node; node 366 maint/gnulib/lib/gl_avltree_ordered.h if (height_inc && node->parent != NULL) node 367 maint/gnulib/lib/gl_avltree_ordered.h rebalance (container, node, 1, node->parent); node 373 maint/gnulib/lib/gl_avltree_ordered.h gl_tree_nx_add_before (CONTAINER_T container, NODE_T node, NODE_PAYLOAD_PARAMS) node 384 maint/gnulib/lib/gl_avltree_ordered.h gl_tree_add_node_before (container, node, new_node); node 390 maint/gnulib/lib/gl_avltree_ordered.h gl_tree_add_node_after (CONTAINER_T container, NODE_T node, NODE_T new_node) node 399 maint/gnulib/lib/gl_avltree_ordered.h if (node->right == NULL) node 401 maint/gnulib/lib/gl_avltree_ordered.h node->right = new_node; node 402 maint/gnulib/lib/gl_avltree_ordered.h node->balance++; node 403 maint/gnulib/lib/gl_avltree_ordered.h height_inc = (node->left == NULL); node 407 maint/gnulib/lib/gl_avltree_ordered.h for (node = node->right; node->left != NULL; ) node 408 maint/gnulib/lib/gl_avltree_ordered.h node = node->left; node 409 maint/gnulib/lib/gl_avltree_ordered.h node->left = new_node; node 410 maint/gnulib/lib/gl_avltree_ordered.h node->balance--; node 411 maint/gnulib/lib/gl_avltree_ordered.h height_inc = (node->right == NULL); node 413 maint/gnulib/lib/gl_avltree_ordered.h new_node->parent = node; node 416 maint/gnulib/lib/gl_avltree_ordered.h if (height_inc && node->parent != NULL) node 417 maint/gnulib/lib/gl_avltree_ordered.h rebalance (container, node, 1, node->parent); node 423 maint/gnulib/lib/gl_avltree_ordered.h gl_tree_nx_add_after (CONTAINER_T container, NODE_T node, NODE_PAYLOAD_PARAMS) node 434 maint/gnulib/lib/gl_avltree_ordered.h gl_tree_add_node_after (container, node, new_node); node 439 maint/gnulib/lib/gl_avltree_ordered.h gl_tree_remove_node_no_free (CONTAINER_T container, NODE_T node) node 441 maint/gnulib/lib/gl_avltree_ordered.h NODE_T parent = node->parent; node 443 maint/gnulib/lib/gl_avltree_ordered.h if (node->left == NULL) node 446 maint/gnulib/lib/gl_avltree_ordered.h NODE_T child = node->right; node 454 maint/gnulib/lib/gl_avltree_ordered.h if (parent->left == node) node 462 maint/gnulib/lib/gl_avltree_ordered.h else if (node->right == NULL) node 467 maint/gnulib/lib/gl_avltree_ordered.h NODE_T child = node->left; node 474 maint/gnulib/lib/gl_avltree_ordered.h if (parent->left == node) node 489 maint/gnulib/lib/gl_avltree_ordered.h for (subst = node->left; subst->right != NULL; ) node 507 maint/gnulib/lib/gl_avltree_ordered.h if (subst_parent != node) node 517 maint/gnulib/lib/gl_avltree_ordered.h if (subst_parent != node) node 519 maint/gnulib/lib/gl_avltree_ordered.h subst->left = node->left; node 522 maint/gnulib/lib/gl_avltree_ordered.h subst->right = node->right; node 524 maint/gnulib/lib/gl_avltree_ordered.h subst->balance = node->balance; node 528 maint/gnulib/lib/gl_avltree_ordered.h else if (parent->left == node) node 536 maint/gnulib/lib/gl_avltree_ordered.h rebalance (container, child, -1, subst_parent != node ? subst_parent : subst); node 543 maint/gnulib/lib/gl_avltree_ordered.h gl_tree_remove_node (CONTAINER_T container, NODE_T node) node 545 maint/gnulib/lib/gl_avltree_ordered.h gl_tree_remove_node_no_free (container, node); node 546 maint/gnulib/lib/gl_avltree_ordered.h NODE_PAYLOAD_DISPOSE (container, node) node 547 maint/gnulib/lib/gl_avltree_ordered.h free (node); node 553 maint/gnulib/lib/gl_avltree_ordered.h check_invariants (NODE_T node, NODE_T parent, size_t *counterp) node 556 maint/gnulib/lib/gl_avltree_ordered.h (node->left != NULL ? check_invariants (node->left, node, counterp) : 0); node 558 maint/gnulib/lib/gl_avltree_ordered.h (node->right != NULL ? check_invariants (node->right, node, counterp) : 0); node 561 maint/gnulib/lib/gl_avltree_ordered.h if (!(node->parent == parent)) node 565 maint/gnulib/lib/gl_avltree_ordered.h if (!(node->balance == balance)) node 37 maint/gnulib/lib/gl_avltree_oset.c #define NODE_PAYLOAD_ASSIGN(node) \ node 38 maint/gnulib/lib/gl_avltree_oset.c node->value = elt; node 39 maint/gnulib/lib/gl_avltree_oset.c #define NODE_PAYLOAD_DISPOSE(container, node) \ node 41 maint/gnulib/lib/gl_avltree_oset.c container->base.dispose_fn (node->value); node 65 maint/gnulib/lib/gl_avltreehash_list.c check_invariants (gl_list_node_t node, gl_list_node_t parent) node 68 maint/gnulib/lib/gl_avltreehash_list.c (node->left != NULL ? check_invariants (node->left, node) : 0); node 70 maint/gnulib/lib/gl_avltreehash_list.c (node->right != NULL ? check_invariants (node->right, node) : 0); node 73 maint/gnulib/lib/gl_avltreehash_list.c if (!(node->parent == parent)) node 75 maint/gnulib/lib/gl_avltreehash_list.c if (!(node->branch_size node 76 maint/gnulib/lib/gl_avltreehash_list.c == (node->left != NULL ? node->left->branch_size : 0) node 77 maint/gnulib/lib/gl_avltreehash_list.c + 1 + (node->right != NULL ? node->right->branch_size : 0))) node 81 maint/gnulib/lib/gl_avltreehash_list.c if (!(node->balance == balance)) node 50 maint/gnulib/lib/gl_carray_list.c #define NODE_TO_INDEX(node) ((uintptr_t)(node) - 1) node 126 maint/gnulib/lib/gl_carray_list.c gl_carray_node_value (gl_list_t list, gl_list_node_t node) node 128 maint/gnulib/lib/gl_carray_list.c uintptr_t index = NODE_TO_INDEX (node); node 141 maint/gnulib/lib/gl_carray_list.c gl_carray_node_nx_set_value (gl_list_t list, gl_list_node_t node, node 144 maint/gnulib/lib/gl_carray_list.c uintptr_t index = NODE_TO_INDEX (node); node 158 maint/gnulib/lib/gl_carray_list.c gl_carray_next_node (gl_list_t list, gl_list_node_t node) node 160 maint/gnulib/lib/gl_carray_list.c uintptr_t index = NODE_TO_INDEX (node); node 172 maint/gnulib/lib/gl_carray_list.c gl_carray_previous_node (gl_list_t list, gl_list_node_t node) node 174 maint/gnulib/lib/gl_carray_list.c uintptr_t index = NODE_TO_INDEX (node); node 459 maint/gnulib/lib/gl_carray_list.c gl_carray_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) node 462 maint/gnulib/lib/gl_carray_list.c uintptr_t index = NODE_TO_INDEX (node); node 471 maint/gnulib/lib/gl_carray_list.c gl_carray_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) node 474 maint/gnulib/lib/gl_carray_list.c uintptr_t index = NODE_TO_INDEX (node); node 566 maint/gnulib/lib/gl_carray_list.c gl_carray_remove_node (gl_list_t list, gl_list_node_t node) node 569 maint/gnulib/lib/gl_carray_list.c uintptr_t index = NODE_TO_INDEX (node); node 108 maint/gnulib/lib/gl_hash_map.c gl_list_node_t node; node 110 maint/gnulib/lib/gl_hash_map.c for (node = (gl_list_node_t) map->table[bucket]; node 111 maint/gnulib/lib/gl_hash_map.c node != NULL; node 112 maint/gnulib/lib/gl_hash_map.c node = (gl_list_node_t) node->h.hash_next) node 113 maint/gnulib/lib/gl_hash_map.c if (node->h.hashcode == hashcode node 115 maint/gnulib/lib/gl_hash_map.c ? equals (key, node->key) node 116 maint/gnulib/lib/gl_hash_map.c : key == node->key)) node 118 maint/gnulib/lib/gl_hash_map.c *valuep = node->value; node 137 maint/gnulib/lib/gl_hash_map.c gl_list_node_t node; node 139 maint/gnulib/lib/gl_hash_map.c for (node = (gl_list_node_t) map->table[bucket]; node 140 maint/gnulib/lib/gl_hash_map.c node != NULL; node 141 maint/gnulib/lib/gl_hash_map.c node = (gl_list_node_t) node->h.hash_next) node 142 maint/gnulib/lib/gl_hash_map.c if (node->h.hashcode == hashcode node 144 maint/gnulib/lib/gl_hash_map.c ? equals (key, node->key) node 145 maint/gnulib/lib/gl_hash_map.c : key == node->key)) node 147 maint/gnulib/lib/gl_hash_map.c *oldvaluep = node->value; node 148 maint/gnulib/lib/gl_hash_map.c node->value = value; node 154 maint/gnulib/lib/gl_hash_map.c gl_list_node_t node = node 157 maint/gnulib/lib/gl_hash_map.c if (node == NULL) node 160 maint/gnulib/lib/gl_hash_map.c node->key = key; node 161 maint/gnulib/lib/gl_hash_map.c node->value = value; node 162 maint/gnulib/lib/gl_hash_map.c node->h.hashcode = hashcode; node 165 maint/gnulib/lib/gl_hash_map.c node->h.hash_next = map->table[bucket]; node 166 maint/gnulib/lib/gl_hash_map.c map->table[bucket] = &node->h; node 193 maint/gnulib/lib/gl_hash_map.c gl_list_node_t node = *nodep; node 194 maint/gnulib/lib/gl_hash_map.c if (node->h.hashcode == hashcode node 196 maint/gnulib/lib/gl_hash_map.c ? equals (key, node->key) node 197 maint/gnulib/lib/gl_hash_map.c : key == node->key)) node 199 maint/gnulib/lib/gl_hash_map.c *oldvaluep = node->value; node 202 maint/gnulib/lib/gl_hash_map.c *nodep = (gl_list_node_t) node->h.hash_next; node 208 maint/gnulib/lib/gl_hash_map.c map->base.kdispose_fn (node->key); node 209 maint/gnulib/lib/gl_hash_map.c free (node); node 229 maint/gnulib/lib/gl_hash_map.c gl_hash_entry_t node = table[--i]; node 231 maint/gnulib/lib/gl_hash_map.c while (node != NULL) node 233 maint/gnulib/lib/gl_hash_map.c gl_hash_entry_t next = node->hash_next; node 237 maint/gnulib/lib/gl_hash_map.c vdispose (((gl_list_node_t) node)->value); node 239 maint/gnulib/lib/gl_hash_map.c kdispose (((gl_list_node_t) node)->key); node 240 maint/gnulib/lib/gl_hash_map.c free (node); node 242 maint/gnulib/lib/gl_hash_map.c node = next; node 281 maint/gnulib/lib/gl_hash_map.c gl_list_node_t node = (gl_list_node_t) iterator->p; node 282 maint/gnulib/lib/gl_hash_map.c *keyp = node->key; node 283 maint/gnulib/lib/gl_hash_map.c *valuep = node->value; node 284 maint/gnulib/lib/gl_hash_map.c iterator->p = (gl_list_node_t) node->h.hash_next; node 298 maint/gnulib/lib/gl_hash_map.c gl_list_node_t node = (gl_list_node_t) table[i++]; node 299 maint/gnulib/lib/gl_hash_map.c if (node != NULL) node 301 maint/gnulib/lib/gl_hash_map.c *keyp = node->key; node 302 maint/gnulib/lib/gl_hash_map.c *valuep = node->value; node 303 maint/gnulib/lib/gl_hash_map.c iterator->p = (gl_list_node_t) node->h.hash_next; node 105 maint/gnulib/lib/gl_hash_set.c gl_list_node_t node; node 107 maint/gnulib/lib/gl_hash_set.c for (node = (gl_list_node_t) set->table[bucket]; node 108 maint/gnulib/lib/gl_hash_set.c node != NULL; node 109 maint/gnulib/lib/gl_hash_set.c node = (gl_list_node_t) node->h.hash_next) node 110 maint/gnulib/lib/gl_hash_set.c if (node->h.hashcode == hashcode node 112 maint/gnulib/lib/gl_hash_set.c ? equals (elt, node->value) node 113 maint/gnulib/lib/gl_hash_set.c : elt == node->value)) node 130 maint/gnulib/lib/gl_hash_set.c gl_list_node_t node; node 132 maint/gnulib/lib/gl_hash_set.c for (node = (gl_list_node_t) set->table[bucket]; node 133 maint/gnulib/lib/gl_hash_set.c node != NULL; node 134 maint/gnulib/lib/gl_hash_set.c node = (gl_list_node_t) node->h.hash_next) node 135 maint/gnulib/lib/gl_hash_set.c if (node->h.hashcode == hashcode node 137 maint/gnulib/lib/gl_hash_set.c ? equals (elt, node->value) node 138 maint/gnulib/lib/gl_hash_set.c : elt == node->value)) node 143 maint/gnulib/lib/gl_hash_set.c gl_list_node_t node = node 146 maint/gnulib/lib/gl_hash_set.c if (node == NULL) node 149 maint/gnulib/lib/gl_hash_set.c node->value = elt; node 150 maint/gnulib/lib/gl_hash_set.c node->h.hashcode = hashcode; node 153 maint/gnulib/lib/gl_hash_set.c node->h.hash_next = set->table[bucket]; node 154 maint/gnulib/lib/gl_hash_set.c set->table[bucket] = &node->h; node 181 maint/gnulib/lib/gl_hash_set.c gl_list_node_t node = *nodep; node 182 maint/gnulib/lib/gl_hash_set.c if (node->h.hashcode == hashcode node 184 maint/gnulib/lib/gl_hash_set.c ? equals (elt, node->value) node 185 maint/gnulib/lib/gl_hash_set.c : elt == node->value)) node 188 maint/gnulib/lib/gl_hash_set.c *nodep = (gl_list_node_t) node->h.hash_next; node 194 maint/gnulib/lib/gl_hash_set.c set->base.dispose_fn (node->value); node 195 maint/gnulib/lib/gl_hash_set.c free (node); node 214 maint/gnulib/lib/gl_hash_set.c gl_hash_entry_t node = table[--i]; node 216 maint/gnulib/lib/gl_hash_set.c while (node != NULL) node 218 maint/gnulib/lib/gl_hash_set.c gl_hash_entry_t next = node->hash_next; node 222 maint/gnulib/lib/gl_hash_set.c dispose (((gl_list_node_t) node)->value); node 223 maint/gnulib/lib/gl_hash_set.c free (node); node 225 maint/gnulib/lib/gl_hash_set.c node = next; node 263 maint/gnulib/lib/gl_hash_set.c gl_list_node_t node = (gl_list_node_t) iterator->p; node 264 maint/gnulib/lib/gl_hash_set.c *eltp = node->value; node 265 maint/gnulib/lib/gl_hash_set.c iterator->p = (gl_list_node_t) node->h.hash_next; node 279 maint/gnulib/lib/gl_hash_set.c gl_list_node_t node = (gl_list_node_t) table[i++]; node 280 maint/gnulib/lib/gl_hash_set.c if (node != NULL) node 282 maint/gnulib/lib/gl_hash_set.c *eltp = node->value; node 283 maint/gnulib/lib/gl_hash_set.c iterator->p = (gl_list_node_t) node->h.hash_next; node 45 maint/gnulib/lib/gl_linkedhash_list.c add_to_bucket (gl_list_t list, gl_list_node_t node) node 47 maint/gnulib/lib/gl_linkedhash_list.c size_t bucket = node->h.hashcode % list->table_size; node 49 maint/gnulib/lib/gl_linkedhash_list.c node->h.hash_next = list->table[bucket]; node 50 maint/gnulib/lib/gl_linkedhash_list.c list->table[bucket] = &node->h; node 53 maint/gnulib/lib/gl_linkedhash_list.c #define add_to_bucket(list,node) ((add_to_bucket) (list, node), 0) node 57 maint/gnulib/lib/gl_linkedhash_list.c remove_from_bucket (gl_list_t list, gl_list_node_t node) node 59 maint/gnulib/lib/gl_linkedhash_list.c size_t bucket = node->h.hashcode % list->table_size; node 64 maint/gnulib/lib/gl_linkedhash_list.c if (*p == &node->h) node 66 maint/gnulib/lib/gl_linkedhash_list.c *p = node->h.hash_next; node 133 maint/gnulib/lib/gl_linkedhash_map.c gl_list_node_t node; node 135 maint/gnulib/lib/gl_linkedhash_map.c for (node = (gl_list_node_t) map->table[bucket]; node 136 maint/gnulib/lib/gl_linkedhash_map.c node != NULL; node 137 maint/gnulib/lib/gl_linkedhash_map.c node = (gl_list_node_t) node->h.hash_next) node 138 maint/gnulib/lib/gl_linkedhash_map.c if (node->h.hashcode == hashcode node 140 maint/gnulib/lib/gl_linkedhash_map.c ? equals (key, node->key) node 141 maint/gnulib/lib/gl_linkedhash_map.c : key == node->key)) node 143 maint/gnulib/lib/gl_linkedhash_map.c *valuep = node->value; node 162 maint/gnulib/lib/gl_linkedhash_map.c gl_list_node_t node; node 164 maint/gnulib/lib/gl_linkedhash_map.c for (node = (gl_list_node_t) map->table[bucket]; node 165 maint/gnulib/lib/gl_linkedhash_map.c node != NULL; node 166 maint/gnulib/lib/gl_linkedhash_map.c node = (gl_list_node_t) node->h.hash_next) node 167 maint/gnulib/lib/gl_linkedhash_map.c if (node->h.hashcode == hashcode node 169 maint/gnulib/lib/gl_linkedhash_map.c ? equals (key, node->key) node 170 maint/gnulib/lib/gl_linkedhash_map.c : key == node->key)) node 172 maint/gnulib/lib/gl_linkedhash_map.c *oldvaluep = node->value; node 173 maint/gnulib/lib/gl_linkedhash_map.c node->value = value; node 179 maint/gnulib/lib/gl_linkedhash_map.c gl_list_node_t node = node 182 maint/gnulib/lib/gl_linkedhash_map.c if (node == NULL) node 185 maint/gnulib/lib/gl_linkedhash_map.c ASYNCSAFE(const void *) node->key = key; node 186 maint/gnulib/lib/gl_linkedhash_map.c ASYNCSAFE(const void *) node->value = value; node 187 maint/gnulib/lib/gl_linkedhash_map.c node->h.hashcode = hashcode; node 190 maint/gnulib/lib/gl_linkedhash_map.c node->h.hash_next = map->table[bucket]; node 191 maint/gnulib/lib/gl_linkedhash_map.c map->table[bucket] = &node->h; node 194 maint/gnulib/lib/gl_linkedhash_map.c ASYNCSAFE(gl_list_node_t) node->next = &map->root; node 195 maint/gnulib/lib/gl_linkedhash_map.c node->prev = map->root.prev; node 196 maint/gnulib/lib/gl_linkedhash_map.c ASYNCSAFE(gl_list_node_t) node->prev->next = node; node 197 maint/gnulib/lib/gl_linkedhash_map.c map->root.prev = node; node 222 maint/gnulib/lib/gl_linkedhash_map.c gl_list_node_t node = *nodep; node 223 maint/gnulib/lib/gl_linkedhash_map.c if (node->h.hashcode == hashcode node 225 maint/gnulib/lib/gl_linkedhash_map.c ? equals (key, node->key) node 226 maint/gnulib/lib/gl_linkedhash_map.c : key == node->key)) node 228 maint/gnulib/lib/gl_linkedhash_map.c *oldvaluep = node->value; node 231 maint/gnulib/lib/gl_linkedhash_map.c *nodep = (gl_list_node_t) node->h.hash_next; node 235 maint/gnulib/lib/gl_linkedhash_map.c gl_list_node_t prev = node->prev; node 236 maint/gnulib/lib/gl_linkedhash_map.c gl_list_node_t next = node->next; node 244 maint/gnulib/lib/gl_linkedhash_map.c map->base.kdispose_fn (node->key); node 245 maint/gnulib/lib/gl_linkedhash_map.c free (node); node 258 maint/gnulib/lib/gl_linkedhash_map.c gl_list_node_t node; node 260 maint/gnulib/lib/gl_linkedhash_map.c for (node = map->root.next; node != &map->root; ) node 262 maint/gnulib/lib/gl_linkedhash_map.c gl_list_node_t next = node->next; node 264 maint/gnulib/lib/gl_linkedhash_map.c vdispose (node->value); node 266 maint/gnulib/lib/gl_linkedhash_map.c kdispose (node->key); node 267 maint/gnulib/lib/gl_linkedhash_map.c free (node); node 268 maint/gnulib/lib/gl_linkedhash_map.c node = next; node 303 maint/gnulib/lib/gl_linkedhash_map.c gl_list_node_t node = (gl_list_node_t) iterator->p; node 304 maint/gnulib/lib/gl_linkedhash_map.c *keyp = node->key; node 305 maint/gnulib/lib/gl_linkedhash_map.c *valuep = node->value; node 306 maint/gnulib/lib/gl_linkedhash_map.c iterator->p = node->next; node 130 maint/gnulib/lib/gl_linkedhash_set.c gl_list_node_t node; node 132 maint/gnulib/lib/gl_linkedhash_set.c for (node = (gl_list_node_t) set->table[bucket]; node 133 maint/gnulib/lib/gl_linkedhash_set.c node != NULL; node 134 maint/gnulib/lib/gl_linkedhash_set.c node = (gl_list_node_t) node->h.hash_next) node 135 maint/gnulib/lib/gl_linkedhash_set.c if (node->h.hashcode == hashcode node 137 maint/gnulib/lib/gl_linkedhash_set.c ? equals (elt, node->value) node 138 maint/gnulib/lib/gl_linkedhash_set.c : elt == node->value)) node 155 maint/gnulib/lib/gl_linkedhash_set.c gl_list_node_t node; node 157 maint/gnulib/lib/gl_linkedhash_set.c for (node = (gl_list_node_t) set->table[bucket]; node 158 maint/gnulib/lib/gl_linkedhash_set.c node != NULL; node 159 maint/gnulib/lib/gl_linkedhash_set.c node = (gl_list_node_t) node->h.hash_next) node 160 maint/gnulib/lib/gl_linkedhash_set.c if (node->h.hashcode == hashcode node 162 maint/gnulib/lib/gl_linkedhash_set.c ? equals (elt, node->value) node 163 maint/gnulib/lib/gl_linkedhash_set.c : elt == node->value)) node 168 maint/gnulib/lib/gl_linkedhash_set.c gl_list_node_t node = node 171 maint/gnulib/lib/gl_linkedhash_set.c if (node == NULL) node 174 maint/gnulib/lib/gl_linkedhash_set.c ASYNCSAFE(const void *) node->value = elt; node 175 maint/gnulib/lib/gl_linkedhash_set.c node->h.hashcode = hashcode; node 178 maint/gnulib/lib/gl_linkedhash_set.c node->h.hash_next = set->table[bucket]; node 179 maint/gnulib/lib/gl_linkedhash_set.c set->table[bucket] = &node->h; node 182 maint/gnulib/lib/gl_linkedhash_set.c ASYNCSAFE(gl_list_node_t) node->next = &set->root; node 183 maint/gnulib/lib/gl_linkedhash_set.c node->prev = set->root.prev; node 184 maint/gnulib/lib/gl_linkedhash_set.c ASYNCSAFE(gl_list_node_t) node->prev->next = node; node 185 maint/gnulib/lib/gl_linkedhash_set.c set->root.prev = node; node 210 maint/gnulib/lib/gl_linkedhash_set.c gl_list_node_t node = *nodep; node 211 maint/gnulib/lib/gl_linkedhash_set.c if (node->h.hashcode == hashcode node 213 maint/gnulib/lib/gl_linkedhash_set.c ? equals (elt, node->value) node 214 maint/gnulib/lib/gl_linkedhash_set.c : elt == node->value)) node 217 maint/gnulib/lib/gl_linkedhash_set.c *nodep = (gl_list_node_t) node->h.hash_next; node 221 maint/gnulib/lib/gl_linkedhash_set.c gl_list_node_t prev = node->prev; node 222 maint/gnulib/lib/gl_linkedhash_set.c gl_list_node_t next = node->next; node 230 maint/gnulib/lib/gl_linkedhash_set.c set->base.dispose_fn (node->value); node 231 maint/gnulib/lib/gl_linkedhash_set.c free (node); node 243 maint/gnulib/lib/gl_linkedhash_set.c gl_list_node_t node; node 245 maint/gnulib/lib/gl_linkedhash_set.c for (node = set->root.next; node != &set->root; ) node 247 maint/gnulib/lib/gl_linkedhash_set.c gl_list_node_t next = node->next; node 249 maint/gnulib/lib/gl_linkedhash_set.c dispose (node->value); node 250 maint/gnulib/lib/gl_linkedhash_set.c free (node); node 251 maint/gnulib/lib/gl_linkedhash_set.c node = next; node 285 maint/gnulib/lib/gl_linkedhash_set.c gl_list_node_t node = (gl_list_node_t) iterator->p; node 286 maint/gnulib/lib/gl_linkedhash_set.c *eltp = node->value; node 287 maint/gnulib/lib/gl_linkedhash_set.c iterator->p = node->next; node 199 maint/gnulib/lib/gl_list.h extern const void * gl_list_node_value (gl_list_t list, gl_list_node_t node); node 203 maint/gnulib/lib/gl_list.h extern void gl_list_node_set_value (gl_list_t list, gl_list_node_t node, node 207 maint/gnulib/lib/gl_list.h extern int gl_list_node_nx_set_value (gl_list_t list, gl_list_node_t node, node 212 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_next_node (gl_list_t list, gl_list_node_t node); node 216 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_previous_node (gl_list_t list, gl_list_node_t node); node 330 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_add_before (gl_list_t list, gl_list_node_t node, node 335 maint/gnulib/lib/gl_list.h gl_list_node_t node, node 341 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_add_after (gl_list_t list, gl_list_node_t node, node 345 maint/gnulib/lib/gl_list.h extern gl_list_node_t gl_list_nx_add_after (gl_list_t list, gl_list_node_t node, node 360 maint/gnulib/lib/gl_list.h extern bool gl_list_remove_node (gl_list_t list, gl_list_node_t node); node 530 maint/gnulib/lib/gl_list.h const void * (*node_value) (gl_list_t list, gl_list_node_t node); node 531 maint/gnulib/lib/gl_list.h int (*node_nx_set_value) (gl_list_t list, gl_list_node_t node, node 533 maint/gnulib/lib/gl_list.h gl_list_node_t (*next_node) (gl_list_t list, gl_list_node_t node); node 534 maint/gnulib/lib/gl_list.h gl_list_node_t (*previous_node) (gl_list_t list, gl_list_node_t node); node 546 maint/gnulib/lib/gl_list.h gl_list_node_t (*nx_add_before) (gl_list_t list, gl_list_node_t node, node 548 maint/gnulib/lib/gl_list.h gl_list_node_t (*nx_add_after) (gl_list_t list, gl_list_node_t node, node 552 maint/gnulib/lib/gl_list.h bool (*remove_node) (gl_list_t list, gl_list_node_t node); node 637 maint/gnulib/lib/gl_list.h gl_list_node_value (gl_list_t list, gl_list_node_t node) node 640 maint/gnulib/lib/gl_list.h ->node_value (list, node); node 644 maint/gnulib/lib/gl_list.h gl_list_node_nx_set_value (gl_list_t list, gl_list_node_t node, node 648 maint/gnulib/lib/gl_list.h ->node_nx_set_value (list, node, elt); node 652 maint/gnulib/lib/gl_list.h gl_list_next_node (gl_list_t list, gl_list_node_t node) node 655 maint/gnulib/lib/gl_list.h ->next_node (list, node); node 659 maint/gnulib/lib/gl_list.h gl_list_previous_node (gl_list_t list, gl_list_node_t node) node 662 maint/gnulib/lib/gl_list.h ->previous_node (list, node); node 780 maint/gnulib/lib/gl_list.h gl_list_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) node 783 maint/gnulib/lib/gl_list.h ->nx_add_before (list, node, elt); node 787 maint/gnulib/lib/gl_list.h gl_list_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) node 790 maint/gnulib/lib/gl_list.h ->nx_add_after (list, node, elt); node 801 maint/gnulib/lib/gl_list.h gl_list_remove_node (gl_list_t list, gl_list_node_t node) node 804 maint/gnulib/lib/gl_list.h ->remove_node (list, node); node 124 maint/gnulib/lib/gl_list.hh ELTYPE * node_value (gl_list_node_t node) const node 125 maint/gnulib/lib/gl_list.hh { return static_cast<ELTYPE *>(gl_list_node_value (_ptr, node)); } node 129 maint/gnulib/lib/gl_list.hh gl_list_node_t next_node (gl_list_node_t node) const node 130 maint/gnulib/lib/gl_list.hh { return gl_list_next_node (_ptr, node); } node 134 maint/gnulib/lib/gl_list.hh gl_list_node_t previous_node (gl_list_node_t node) const node 135 maint/gnulib/lib/gl_list.hh { return gl_list_previous_node (_ptr, node); } node 197 maint/gnulib/lib/gl_list.hh void node_set_value (gl_list_node_t node, ELTYPE * elt) node 198 maint/gnulib/lib/gl_list.hh { gl_list_node_set_value (_ptr, node, elt); } node 230 maint/gnulib/lib/gl_list.hh gl_list_node_t add_before (gl_list_node_t node, ELTYPE * elt) node 231 maint/gnulib/lib/gl_list.hh { return gl_list_add_before (_ptr, node, elt); } node 235 maint/gnulib/lib/gl_list.hh gl_list_node_t add_after (gl_list_node_t node, ELTYPE * elt) node 236 maint/gnulib/lib/gl_list.hh { return gl_list_add_after (_ptr, node, elt); } node 245 maint/gnulib/lib/gl_list.hh bool remove_node (gl_list_node_t node) node 246 maint/gnulib/lib/gl_list.hh { return gl_list_remove_node (_ptr, node); } node 43 maint/gnulib/lib/gl_rbtree_list.c check_invariants (gl_list_node_t node, gl_list_node_t parent) node 46 maint/gnulib/lib/gl_rbtree_list.c (node->left != NULL ? check_invariants (node->left, node) : 0); node 48 maint/gnulib/lib/gl_rbtree_list.c (node->right != NULL ? check_invariants (node->right, node) : 0); node 50 maint/gnulib/lib/gl_rbtree_list.c if (!(node->parent == parent)) node 52 maint/gnulib/lib/gl_rbtree_list.c if (!(node->branch_size node 53 maint/gnulib/lib/gl_rbtree_list.c == (node->left != NULL ? node->left->branch_size : 0) node 54 maint/gnulib/lib/gl_rbtree_list.c + 1 + (node->right != NULL ? node->right->branch_size : 0))) node 56 maint/gnulib/lib/gl_rbtree_list.c if (!(node->color == BLACK || node->color == RED)) node 58 maint/gnulib/lib/gl_rbtree_list.c if (parent == NULL && !(node->color == BLACK)) node 63 maint/gnulib/lib/gl_rbtree_list.c return left_blackheight + (node->color == BLACK ? 1 : 0); node 38 maint/gnulib/lib/gl_rbtree_omap.c #define NODE_PAYLOAD_ASSIGN(node) \ node 39 maint/gnulib/lib/gl_rbtree_omap.c node->key = key; \ node 40 maint/gnulib/lib/gl_rbtree_omap.c node->value = value; node 41 maint/gnulib/lib/gl_rbtree_omap.c #define NODE_PAYLOAD_DISPOSE(container, node) \ node 43 maint/gnulib/lib/gl_rbtree_omap.c container->base.kdispose_fn (node->key); node 122 maint/gnulib/lib/gl_rbtree_ordered.h rebalance_after_add (CONTAINER_T container, NODE_T node, NODE_T parent) node 135 maint/gnulib/lib/gl_rbtree_ordered.h node->color = RED; node 155 maint/gnulib/lib/gl_rbtree_ordered.h node->color = RED; node 157 maint/gnulib/lib/gl_rbtree_ordered.h node = grandparent; node 178 maint/gnulib/lib/gl_rbtree_ordered.h if (parent->right == node) node 181 maint/gnulib/lib/gl_rbtree_ordered.h grandparent->left = rotate_left (parent, node); node 182 maint/gnulib/lib/gl_rbtree_ordered.h node = parent; node 199 maint/gnulib/lib/gl_rbtree_ordered.h node->color = grandparent->color = RED; node 203 maint/gnulib/lib/gl_rbtree_ordered.h if (parent->left == node) node 206 maint/gnulib/lib/gl_rbtree_ordered.h grandparent->right = rotate_right (node, parent); node 207 maint/gnulib/lib/gl_rbtree_ordered.h node = parent; node 224 maint/gnulib/lib/gl_rbtree_ordered.h node->color = grandparent->color = RED; node 230 maint/gnulib/lib/gl_rbtree_ordered.h parent = node->parent; node 236 maint/gnulib/lib/gl_rbtree_ordered.h node->color = BLACK; node 552 maint/gnulib/lib/gl_rbtree_ordered.h NODE_T node; node 554 maint/gnulib/lib/gl_rbtree_ordered.h for (node = container->root; node->left != NULL; ) node 555 maint/gnulib/lib/gl_rbtree_ordered.h node = node->left; node 557 maint/gnulib/lib/gl_rbtree_ordered.h node->left = new_node; node 558 maint/gnulib/lib/gl_rbtree_ordered.h new_node->parent = node; node 561 maint/gnulib/lib/gl_rbtree_ordered.h rebalance_after_add (container, new_node, node); node 570 maint/gnulib/lib/gl_rbtree_ordered.h gl_tree_add_node_before (CONTAINER_T container, NODE_T node, NODE_T new_node) node 576 maint/gnulib/lib/gl_rbtree_ordered.h if (node->left == NULL) node 577 maint/gnulib/lib/gl_rbtree_ordered.h node->left = new_node; node 580 maint/gnulib/lib/gl_rbtree_ordered.h for (node = node->left; node->right != NULL; ) node 581 maint/gnulib/lib/gl_rbtree_ordered.h node = node->right; node 582 maint/gnulib/lib/gl_rbtree_ordered.h node->right = new_node; node 584 maint/gnulib/lib/gl_rbtree_ordered.h new_node->parent = node; node 587 maint/gnulib/lib/gl_rbtree_ordered.h rebalance_after_add (container, new_node, node); node 593 maint/gnulib/lib/gl_rbtree_ordered.h gl_tree_nx_add_before (CONTAINER_T container, NODE_T node, NODE_PAYLOAD_PARAMS) node 604 maint/gnulib/lib/gl_rbtree_ordered.h gl_tree_add_node_before (container, node, new_node); node 610 maint/gnulib/lib/gl_rbtree_ordered.h gl_tree_add_node_after (CONTAINER_T container, NODE_T node, NODE_T new_node) node 616 maint/gnulib/lib/gl_rbtree_ordered.h if (node->right == NULL) node 617 maint/gnulib/lib/gl_rbtree_ordered.h node->right = new_node; node 620 maint/gnulib/lib/gl_rbtree_ordered.h for (node = node->right; node->left != NULL; ) node 621 maint/gnulib/lib/gl_rbtree_ordered.h node = node->left; node 622 maint/gnulib/lib/gl_rbtree_ordered.h node->left = new_node; node 624 maint/gnulib/lib/gl_rbtree_ordered.h new_node->parent = node; node 627 maint/gnulib/lib/gl_rbtree_ordered.h rebalance_after_add (container, new_node, node); node 633 maint/gnulib/lib/gl_rbtree_ordered.h gl_tree_nx_add_after (CONTAINER_T container, NODE_T node, NODE_PAYLOAD_PARAMS) node 644 maint/gnulib/lib/gl_rbtree_ordered.h gl_tree_add_node_after (container, node, new_node); node 649 maint/gnulib/lib/gl_rbtree_ordered.h gl_tree_remove_node_no_free (CONTAINER_T container, NODE_T node) node 651 maint/gnulib/lib/gl_rbtree_ordered.h NODE_T parent = node->parent; node 653 maint/gnulib/lib/gl_rbtree_ordered.h if (node->left == NULL) node 656 maint/gnulib/lib/gl_rbtree_ordered.h NODE_T child = node->right; node 669 maint/gnulib/lib/gl_rbtree_ordered.h if (parent->left == node) node 674 maint/gnulib/lib/gl_rbtree_ordered.h if (child == NULL && node->color == BLACK) node 678 maint/gnulib/lib/gl_rbtree_ordered.h else if (node->right == NULL) node 683 maint/gnulib/lib/gl_rbtree_ordered.h NODE_T child = node->left; node 693 maint/gnulib/lib/gl_rbtree_ordered.h if (parent->left == node) node 707 maint/gnulib/lib/gl_rbtree_ordered.h for (subst = node->left; subst->right != NULL; ) node 727 maint/gnulib/lib/gl_rbtree_ordered.h if (subst_parent != node) node 737 maint/gnulib/lib/gl_rbtree_ordered.h if (subst_parent != node) node 739 maint/gnulib/lib/gl_rbtree_ordered.h subst->left = node->left; node 742 maint/gnulib/lib/gl_rbtree_ordered.h subst->right = node->right; node 744 maint/gnulib/lib/gl_rbtree_ordered.h subst->color = node->color; node 748 maint/gnulib/lib/gl_rbtree_ordered.h else if (parent->left == node) node 763 maint/gnulib/lib/gl_rbtree_ordered.h subst_parent != node ? subst_parent : subst); node 771 maint/gnulib/lib/gl_rbtree_ordered.h gl_tree_remove_node (CONTAINER_T container, NODE_T node) node 773 maint/gnulib/lib/gl_rbtree_ordered.h gl_tree_remove_node_no_free (container, node); node 774 maint/gnulib/lib/gl_rbtree_ordered.h NODE_PAYLOAD_DISPOSE (container, node) node 775 maint/gnulib/lib/gl_rbtree_ordered.h free (node); node 781 maint/gnulib/lib/gl_rbtree_ordered.h check_invariants (NODE_T node, NODE_T parent, size_t *counterp) node 784 maint/gnulib/lib/gl_rbtree_ordered.h (node->left != NULL ? check_invariants (node->left, node, counterp) : 0); node 786 maint/gnulib/lib/gl_rbtree_ordered.h (node->right != NULL ? check_invariants (node->right, node, counterp) : 0); node 788 maint/gnulib/lib/gl_rbtree_ordered.h if (!(node->parent == parent)) node 790 maint/gnulib/lib/gl_rbtree_ordered.h if (!(node->color == BLACK || node->color == RED)) node 792 maint/gnulib/lib/gl_rbtree_ordered.h if (parent == NULL && !(node->color == BLACK)) node 799 maint/gnulib/lib/gl_rbtree_ordered.h return left_blackheight + (node->color == BLACK ? 1 : 0); node 37 maint/gnulib/lib/gl_rbtree_oset.c #define NODE_PAYLOAD_ASSIGN(node) \ node 38 maint/gnulib/lib/gl_rbtree_oset.c node->value = elt; node 39 maint/gnulib/lib/gl_rbtree_oset.c #define NODE_PAYLOAD_DISPOSE(container, node) \ node 41 maint/gnulib/lib/gl_rbtree_oset.c container->base.dispose_fn (node->value); node 65 maint/gnulib/lib/gl_rbtreehash_list.c check_invariants (gl_list_node_t node, gl_list_node_t parent) node 68 maint/gnulib/lib/gl_rbtreehash_list.c (node->left != NULL ? check_invariants (node->left, node) : 0); node 70 maint/gnulib/lib/gl_rbtreehash_list.c (node->right != NULL ? check_invariants (node->right, node) : 0); node 72 maint/gnulib/lib/gl_rbtreehash_list.c if (!(node->parent == parent)) node 74 maint/gnulib/lib/gl_rbtreehash_list.c if (!(node->branch_size node 75 maint/gnulib/lib/gl_rbtreehash_list.c == (node->left != NULL ? node->left->branch_size : 0) node 76 maint/gnulib/lib/gl_rbtreehash_list.c + 1 + (node->right != NULL ? node->right->branch_size : 0))) node 78 maint/gnulib/lib/gl_rbtreehash_list.c if (!(node->color == BLACK || node->color == RED)) node 80 maint/gnulib/lib/gl_rbtreehash_list.c if (parent == NULL && !(node->color == BLACK)) node 85 maint/gnulib/lib/gl_rbtreehash_list.c return left_blackheight + (node->color == BLACK ? 1 : 0); node 44 maint/gnulib/lib/gl_sublist.c #define NODE_TO_INDEX(node) ((uintptr_t)(node) - 1) node 76 maint/gnulib/lib/gl_sublist.c gl_sublist_node_value (gl_list_t list, gl_list_node_t node) node 78 maint/gnulib/lib/gl_sublist.c uintptr_t index = NODE_TO_INDEX (node); node 86 maint/gnulib/lib/gl_sublist.c gl_sublist_node_nx_set_value (gl_list_t list, gl_list_node_t node, const void *elt) node 88 maint/gnulib/lib/gl_sublist.c uintptr_t index = NODE_TO_INDEX (node); node 98 maint/gnulib/lib/gl_sublist.c gl_sublist_next_node (gl_list_t list, gl_list_node_t node) node 100 maint/gnulib/lib/gl_sublist.c uintptr_t index = NODE_TO_INDEX (node); node 113 maint/gnulib/lib/gl_sublist.c gl_sublist_previous_node (gl_list_t list, gl_list_node_t node) node 115 maint/gnulib/lib/gl_sublist.c uintptr_t index = NODE_TO_INDEX (node); node 223 maint/gnulib/lib/gl_sublist.c gl_sublist_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) node 225 maint/gnulib/lib/gl_sublist.c size_t position = NODE_TO_INDEX (node); node 236 maint/gnulib/lib/gl_sublist.c gl_sublist_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) node 238 maint/gnulib/lib/gl_sublist.c size_t position = NODE_TO_INDEX (node); node 262 maint/gnulib/lib/gl_sublist.c gl_sublist_remove_node (gl_list_t list, gl_list_node_t node) node 264 maint/gnulib/lib/gl_sublist.c uintptr_t index = NODE_TO_INDEX (node); node 55 maint/gnulib/lib/gl_xlist.h extern void gl_list_node_set_value (gl_list_t list, gl_list_node_t node, node 63 maint/gnulib/lib/gl_xlist.h extern gl_list_node_t gl_list_add_before (gl_list_t list, gl_list_node_t node, node 65 maint/gnulib/lib/gl_xlist.h extern gl_list_node_t gl_list_add_after (gl_list_t list, gl_list_node_t node, node 112 maint/gnulib/lib/gl_xlist.h gl_list_node_set_value (gl_list_t list, gl_list_node_t node, const void *elt) node 114 maint/gnulib/lib/gl_xlist.h int result = gl_list_node_nx_set_value (list, node, elt); node 165 maint/gnulib/lib/gl_xlist.h gl_list_add_before (gl_list_t list, gl_list_node_t node, const void *elt) node 167 maint/gnulib/lib/gl_xlist.h gl_list_node_t result = gl_list_nx_add_before (list, node, elt); node 174 maint/gnulib/lib/gl_xlist.h gl_list_add_after (gl_list_t list, gl_list_node_t node, const void *elt) node 176 maint/gnulib/lib/gl_xlist.h gl_list_node_t result = gl_list_nx_add_after (list, node, elt); node 2768 maint/gnulib/lib/localename.c struct locale_hash_node *node; node 2916 maint/gnulib/lib/localename.c node = (struct locale_hash_node *) malloc (sizeof (struct locale_hash_node)); node 2917 maint/gnulib/lib/localename.c if (node == NULL) node 2924 maint/gnulib/lib/localename.c free (node); node 2929 maint/gnulib/lib/localename.c node->locale = result; node 2930 maint/gnulib/lib/localename.c node->names = names; node 2945 maint/gnulib/lib/localename.c p->names = node->names; node 2950 maint/gnulib/lib/localename.c node->next = locale_hash_table[slot]; node 2951 maint/gnulib/lib/localename.c locale_hash_table[slot] = node; node 2957 maint/gnulib/lib/localename.c free (node); node 2968 maint/gnulib/lib/localename.c struct locale_hash_node *node; node 2975 maint/gnulib/lib/localename.c node = (struct locale_hash_node *) malloc (sizeof (struct locale_hash_node)); node 2976 maint/gnulib/lib/localename.c if (node == NULL) node 2983 maint/gnulib/lib/localename.c free (node); node 2988 maint/gnulib/lib/localename.c node->locale = result; node 2994 maint/gnulib/lib/localename.c node->names.category_name[category] = node 3013 maint/gnulib/lib/localename.c node->names = p->names; node 3022 maint/gnulib/lib/localename.c node->names.category_name[category] = ""; node 3037 maint/gnulib/lib/localename.c p->names = node->names; node 3042 maint/gnulib/lib/localename.c node->next = locale_hash_table[slot]; node 3043 maint/gnulib/lib/localename.c locale_hash_table[slot] = node; node 3049 maint/gnulib/lib/localename.c free (node); node 1048 maint/gnulib/lib/mountlist.c char node[9 + NAME_MAX]; node 1064 maint/gnulib/lib/mountlist.c strcpy (node, "/dev/fs/"); node 1065 maint/gnulib/lib/mountlist.c strcat (node, entry.d_name); node 1067 maint/gnulib/lib/mountlist.c if (statvfs (node, &dev) == 0) node 244 maint/gnulib/lib/netdb.in.h char *restrict node, socklen_t nodelen, node 253 maint/gnulib/lib/netdb.in.h char *restrict node, socklen_t nodelen, node 41 maint/gnulib/lib/regcomp.c static reg_errcode_t optimize_subexps (void *extra, bin_tree_t *node); node 42 maint/gnulib/lib/regcomp.c static reg_errcode_t lower_subexps (void *extra, bin_tree_t *node); node 44 maint/gnulib/lib/regcomp.c bin_tree_t *node); node 45 maint/gnulib/lib/regcomp.c static reg_errcode_t calc_first (void *extra, bin_tree_t *node); node 46 maint/gnulib/lib/regcomp.c static reg_errcode_t calc_next (void *extra, bin_tree_t *node); node 47 maint/gnulib/lib/regcomp.c static reg_errcode_t link_nfa_nodes (void *extra, bin_tree_t *node); node 53 maint/gnulib/lib/regcomp.c Idx node, bool root); node 110 maint/gnulib/lib/regcomp.c static void free_token (re_token_t *node); node 111 maint/gnulib/lib/regcomp.c static reg_errcode_t free_tree (void *extra, bin_tree_t *node); node 112 maint/gnulib/lib/regcomp.c static reg_errcode_t mark_opt_subexp (void *extra, bin_tree_t *node); node 289 maint/gnulib/lib/regcomp.c Idx node = init_state->nodes.elems[node_cnt]; node 290 maint/gnulib/lib/regcomp.c re_token_type_t type = dfa->nodes[node].type; node 294 maint/gnulib/lib/regcomp.c re_set_fastmap (fastmap, icase, dfa->nodes[node].opr.c); node 303 maint/gnulib/lib/regcomp.c *p++ = dfa->nodes[node].opr.c; node 304 maint/gnulib/lib/regcomp.c while (++node < dfa->nodes_len node 305 maint/gnulib/lib/regcomp.c && dfa->nodes[node].type == CHARACTER node 306 maint/gnulib/lib/regcomp.c && dfa->nodes[node].mb_partial) node 307 maint/gnulib/lib/regcomp.c *p++ = dfa->nodes[node].opr.c; node 322 maint/gnulib/lib/regcomp.c bitset_word_t w = dfa->nodes[node].opr.sbcset[i]; node 330 maint/gnulib/lib/regcomp.c re_charset_t *cset = dfa->nodes[node].opr.mbcset; node 1048 maint/gnulib/lib/regcomp.c Idx node; node 1053 maint/gnulib/lib/regcomp.c for (node = 0; node < dfa->nodes_len; ++node) node 1054 maint/gnulib/lib/regcomp.c switch (dfa->nodes[node].type) node 1057 maint/gnulib/lib/regcomp.c if (dfa->nodes[node].opr.c >= ASCII_CHARS) node 1061 maint/gnulib/lib/regcomp.c switch (dfa->nodes[node].opr.ctx_type) node 1095 maint/gnulib/lib/regcomp.c if (dfa->nodes[node].opr.sbcset[i] >> rshift != 0) node 1106 maint/gnulib/lib/regcomp.c for (node = 0; node < dfa->nodes_len; ++node) node 1108 maint/gnulib/lib/regcomp.c if (dfa->nodes[node].type == CHARACTER node 1109 maint/gnulib/lib/regcomp.c && dfa->nodes[node].opr.c >= ASCII_CHARS) node 1110 maint/gnulib/lib/regcomp.c dfa->nodes[node].mb_partial = 0; node 1111 maint/gnulib/lib/regcomp.c else if (dfa->nodes[node].type == OP_PERIOD) node 1112 maint/gnulib/lib/regcomp.c dfa->nodes[node].type = OP_UTF8_PERIOD; node 1191 maint/gnulib/lib/regcomp.c bin_tree_t *node, *prev; node 1193 maint/gnulib/lib/regcomp.c for (node = root; ; ) node 1197 maint/gnulib/lib/regcomp.c while (node->left || node->right) node 1198 maint/gnulib/lib/regcomp.c if (node->left) node 1199 maint/gnulib/lib/regcomp.c node = node->left; node 1201 maint/gnulib/lib/regcomp.c node = node->right; node 1205 maint/gnulib/lib/regcomp.c reg_errcode_t err = fn (extra, node); node 1208 maint/gnulib/lib/regcomp.c if (node->parent == NULL) node 1210 maint/gnulib/lib/regcomp.c prev = node; node 1211 maint/gnulib/lib/regcomp.c node = node->parent; node 1214 maint/gnulib/lib/regcomp.c while (node->right == prev || node->right == NULL); node 1215 maint/gnulib/lib/regcomp.c node = node->right; node 1223 maint/gnulib/lib/regcomp.c bin_tree_t *node; node 1225 maint/gnulib/lib/regcomp.c for (node = root; ; ) node 1227 maint/gnulib/lib/regcomp.c reg_errcode_t err = fn (extra, node); node 1232 maint/gnulib/lib/regcomp.c if (node->left) node 1233 maint/gnulib/lib/regcomp.c node = node->left; node 1237 maint/gnulib/lib/regcomp.c while (node->right == prev || node->right == NULL) node 1239 maint/gnulib/lib/regcomp.c prev = node; node 1240 maint/gnulib/lib/regcomp.c node = node->parent; node 1241 maint/gnulib/lib/regcomp.c if (!node) node 1244 maint/gnulib/lib/regcomp.c node = node->right; node 1253 maint/gnulib/lib/regcomp.c optimize_subexps (void *extra, bin_tree_t *node) node 1257 maint/gnulib/lib/regcomp.c if (node->token.type == OP_BACK_REF && dfa->subexp_map) node 1259 maint/gnulib/lib/regcomp.c int idx = node->token.opr.idx; node 1260 maint/gnulib/lib/regcomp.c node->token.opr.idx = dfa->subexp_map[idx]; node 1261 maint/gnulib/lib/regcomp.c dfa->used_bkref_map |= 1 << node->token.opr.idx; node 1264 maint/gnulib/lib/regcomp.c else if (node->token.type == SUBEXP node 1265 maint/gnulib/lib/regcomp.c && node->left && node->left->token.type == SUBEXP) node 1267 maint/gnulib/lib/regcomp.c Idx other_idx = node->left->token.opr.idx; node 1269 maint/gnulib/lib/regcomp.c node->left = node->left->left; node 1270 maint/gnulib/lib/regcomp.c if (node->left) node 1271 maint/gnulib/lib/regcomp.c node->left->parent = node; node 1273 maint/gnulib/lib/regcomp.c dfa->subexp_map[other_idx] = dfa->subexp_map[node->token.opr.idx]; node 1284 maint/gnulib/lib/regcomp.c lower_subexps (void *extra, bin_tree_t *node) node 1289 maint/gnulib/lib/regcomp.c if (node->left && node->left->token.type == SUBEXP) node 1291 maint/gnulib/lib/regcomp.c node->left = lower_subexp (&err, preg, node->left); node 1292 maint/gnulib/lib/regcomp.c if (node->left) node 1293 maint/gnulib/lib/regcomp.c node->left->parent = node; node 1295 maint/gnulib/lib/regcomp.c if (node->right && node->right->token.type == SUBEXP) node 1297 maint/gnulib/lib/regcomp.c node->right = lower_subexp (&err, preg, node->right); node 1298 maint/gnulib/lib/regcomp.c if (node->right) node 1299 maint/gnulib/lib/regcomp.c node->right->parent = node; node 1306 maint/gnulib/lib/regcomp.c lower_subexp (reg_errcode_t *err, regex_t *preg, bin_tree_t *node) node 1309 maint/gnulib/lib/regcomp.c bin_tree_t *body = node->left; node 1317 maint/gnulib/lib/regcomp.c && node->left != NULL node 1318 maint/gnulib/lib/regcomp.c && (node->token.opr.idx >= BITSET_WORD_BITS node 1320 maint/gnulib/lib/regcomp.c & ((bitset_word_t) 1 << node->token.opr.idx)))) node 1321 maint/gnulib/lib/regcomp.c return node->left; node 1336 maint/gnulib/lib/regcomp.c op->token.opr.idx = cls->token.opr.idx = node->token.opr.idx; node 1337 maint/gnulib/lib/regcomp.c op->token.opt_subexp = cls->token.opt_subexp = node->token.opt_subexp; node 1344 maint/gnulib/lib/regcomp.c calc_first (void *extra, bin_tree_t *node) node 1347 maint/gnulib/lib/regcomp.c if (node->token.type == CONCAT) node 1349 maint/gnulib/lib/regcomp.c node->first = node->left->first; node 1350 maint/gnulib/lib/regcomp.c node->node_idx = node->left->node_idx; node 1354 maint/gnulib/lib/regcomp.c node->first = node; node 1355 maint/gnulib/lib/regcomp.c node->node_idx = re_dfa_add_node (dfa, node->token); node 1356 maint/gnulib/lib/regcomp.c if (__glibc_unlikely (node->node_idx == -1)) node 1358 maint/gnulib/lib/regcomp.c if (node->token.type == ANCHOR) node 1359 maint/gnulib/lib/regcomp.c dfa->nodes[node->node_idx].constraint = node->token.opr.ctx_type; node 1366 maint/gnulib/lib/regcomp.c calc_next (void *extra, bin_tree_t *node) node 1368 maint/gnulib/lib/regcomp.c switch (node->token.type) node 1371 maint/gnulib/lib/regcomp.c node->left->next = node; node 1374 maint/gnulib/lib/regcomp.c node->left->next = node->right->first; node 1375 maint/gnulib/lib/regcomp.c node->right->next = node->next; node 1378 maint/gnulib/lib/regcomp.c if (node->left) node 1379 maint/gnulib/lib/regcomp.c node->left->next = node->next; node 1380 maint/gnulib/lib/regcomp.c if (node->right) node 1381 maint/gnulib/lib/regcomp.c node->right->next = node->next; node 1389 maint/gnulib/lib/regcomp.c link_nfa_nodes (void *extra, bin_tree_t *node) node 1392 maint/gnulib/lib/regcomp.c Idx idx = node->node_idx; node 1395 maint/gnulib/lib/regcomp.c switch (node->token.type) node 1401 maint/gnulib/lib/regcomp.c DEBUG_ASSERT (node->next == NULL); node 1409 maint/gnulib/lib/regcomp.c if (node->left != NULL) node 1410 maint/gnulib/lib/regcomp.c left = node->left->first->node_idx; node 1412 maint/gnulib/lib/regcomp.c left = node->next->node_idx; node 1413 maint/gnulib/lib/regcomp.c if (node->right != NULL) node 1414 maint/gnulib/lib/regcomp.c right = node->right->first->node_idx; node 1416 maint/gnulib/lib/regcomp.c right = node->next->node_idx; node 1426 maint/gnulib/lib/regcomp.c err = re_node_set_init_1 (dfa->edests + idx, node->next->node_idx); node 1430 maint/gnulib/lib/regcomp.c dfa->nexts[idx] = node->next->node_idx; node 1431 maint/gnulib/lib/regcomp.c if (node->token.type == OP_BACK_REF) node 1436 maint/gnulib/lib/regcomp.c DEBUG_ASSERT (!IS_EPSILON_NODE (node->token.type)); node 1437 maint/gnulib/lib/regcomp.c dfa->nexts[idx] = node->next->node_idx; node 1655 maint/gnulib/lib/regcomp.c calc_eclosure_iter (re_node_set *new_set, re_dfa_t *dfa, Idx node, bool root) node 1661 maint/gnulib/lib/regcomp.c err = re_node_set_alloc (&eclosure, dfa->edests[node].nelem + 1); node 1666 maint/gnulib/lib/regcomp.c eclosure.elems[eclosure.nelem++] = node; node 1670 maint/gnulib/lib/regcomp.c dfa->eclosures[node].nelem = -1; node 1674 maint/gnulib/lib/regcomp.c if (dfa->nodes[node].constraint node 1675 maint/gnulib/lib/regcomp.c && dfa->edests[node].nelem node 1676 maint/gnulib/lib/regcomp.c && !dfa->nodes[dfa->edests[node].elems[0]].duplicated) node 1678 maint/gnulib/lib/regcomp.c err = duplicate_node_closure (dfa, node, node, node, node 1679 maint/gnulib/lib/regcomp.c dfa->nodes[node].constraint); node 1685 maint/gnulib/lib/regcomp.c if (IS_EPSILON_NODE(dfa->nodes[node].type)) node 1686 maint/gnulib/lib/regcomp.c for (i = 0; i < dfa->edests[node].nelem; ++i) node 1689 maint/gnulib/lib/regcomp.c Idx edest = dfa->edests[node].elems[i]; node 1721 maint/gnulib/lib/regcomp.c dfa->eclosures[node].nelem = 0; node 1723 maint/gnulib/lib/regcomp.c dfa->eclosures[node] = eclosure; node 3704 maint/gnulib/lib/regcomp.c mark_opt_subexp (void *extra, bin_tree_t *node) node 3707 maint/gnulib/lib/regcomp.c if (node->token.type == SUBEXP && node->token.opr.idx == idx) node 3708 maint/gnulib/lib/regcomp.c node->token.opt_subexp = 1; node 3716 maint/gnulib/lib/regcomp.c free_token (re_token_t *node) node 3718 maint/gnulib/lib/regcomp.c if (node->type == COMPLEX_BRACKET && node->duplicated == 0) node 3719 maint/gnulib/lib/regcomp.c free_charset (node->opr.mbcset); node 3720 maint/gnulib/lib/regcomp.c else if (node->type == SIMPLE_BRACKET && node->duplicated == 0) node 3721 maint/gnulib/lib/regcomp.c re_free (node->opr.sbcset); node 3728 maint/gnulib/lib/regcomp.c free_tree (void *extra, bin_tree_t *node) node 3730 maint/gnulib/lib/regcomp.c free_token (&node->token); node 3743 maint/gnulib/lib/regcomp.c const bin_tree_t *node; node 3747 maint/gnulib/lib/regcomp.c for (node = root; ; ) node 3750 maint/gnulib/lib/regcomp.c *p_new = create_token_tree (dfa, NULL, NULL, &node->token); node 3758 maint/gnulib/lib/regcomp.c if (node->left) node 3760 maint/gnulib/lib/regcomp.c node = node->left; node 3766 maint/gnulib/lib/regcomp.c while (node->right == prev || node->right == NULL) node 3768 maint/gnulib/lib/regcomp.c prev = node; node 3769 maint/gnulib/lib/regcomp.c node = node->parent; node 3771 maint/gnulib/lib/regcomp.c if (!node) node 3774 maint/gnulib/lib/regcomp.c node = node->right; node 1614 maint/gnulib/lib/regex_internal.c re_token_t *node = dfa->nodes + nodes->elems[i]; node 1615 maint/gnulib/lib/regex_internal.c re_token_type_t type = node->type; node 1616 maint/gnulib/lib/regex_internal.c if (type == CHARACTER && !node->constraint) node 1618 maint/gnulib/lib/regex_internal.c newstate->accept_mb |= node->accept_mb; node 1625 maint/gnulib/lib/regex_internal.c else if (type == ANCHOR || node->constraint) node 1664 maint/gnulib/lib/regex_internal.c re_token_t *node = dfa->nodes + nodes->elems[i]; node 1665 maint/gnulib/lib/regex_internal.c re_token_type_t type = node->type; node 1666 maint/gnulib/lib/regex_internal.c unsigned int constraint = node->constraint; node 1670 maint/gnulib/lib/regex_internal.c newstate->accept_mb |= node->accept_mb; node 553 maint/gnulib/lib/regex_internal.h Idx node; node 565 maint/gnulib/lib/regex_internal.h Idx node; node 574 maint/gnulib/lib/regex_internal.h Idx node; node 617 maint/gnulib/lib/regex_internal.h Idx node; node 24 maint/gnulib/lib/regexec.c static reg_errcode_t match_ctx_add_entry (re_match_context_t *cache, Idx node, node 27 maint/gnulib/lib/regexec.c static reg_errcode_t match_ctx_add_subtop (re_match_context_t *mctx, Idx node, node 30 maint/gnulib/lib/regexec.c Idx node, Idx str_idx); node 94 maint/gnulib/lib/regexec.c Idx node, Idx str_idx, node 166 maint/gnulib/lib/regexec.c const re_token_t *node, Idx idx); node 1162 maint/gnulib/lib/regexec.c check_halt_node_context (const re_dfa_t *dfa, Idx node, unsigned int context) node 1164 maint/gnulib/lib/regexec.c re_token_type_t type = dfa->nodes[node].type; node 1165 maint/gnulib/lib/regexec.c unsigned int constraint = dfa->nodes[node].constraint; node 1201 maint/gnulib/lib/regexec.c Idx *pidx, Idx node, re_node_set *eps_via_nodes, node 1205 maint/gnulib/lib/regexec.c if (IS_EPSILON_NODE (dfa->nodes[node].type)) node 1208 maint/gnulib/lib/regexec.c re_node_set *edests = &dfa->edests[node]; node 1210 maint/gnulib/lib/regexec.c if (! re_node_set_contains (eps_via_nodes, node)) node 1212 maint/gnulib/lib/regexec.c bool ok = re_node_set_insert (eps_via_nodes, node); node 1249 maint/gnulib/lib/regexec.c re_token_type_t type = dfa->nodes[node].type; node 1251 maint/gnulib/lib/regexec.c if (dfa->nodes[node].accept_mb) node 1252 maint/gnulib/lib/regexec.c naccepted = check_node_accept_bytes (dfa, node, &mctx->input, *pidx); node 1255 maint/gnulib/lib/regexec.c Idx subexp_idx = dfa->nodes[node].opr.idx + 1; node 1278 maint/gnulib/lib/regexec.c bool ok = re_node_set_insert (eps_via_nodes, node); node 1281 maint/gnulib/lib/regexec.c dest_node = dfa->edests[node].elems[0]; node 1289 maint/gnulib/lib/regexec.c || check_node_accept (mctx, dfa->nodes + node, *pidx)) node 1291 maint/gnulib/lib/regexec.c Idx dest_node = dfa->nexts[node]; node 1323 maint/gnulib/lib/regexec.c fs->stack[num].node = dest_node; node 1347 maint/gnulib/lib/regexec.c DEBUG_ASSERT (0 <= fs->stack[num].node); node 1348 maint/gnulib/lib/regexec.c return fs->stack[num].node; node 1540 maint/gnulib/lib/regexec.c #define STATE_NODE_CONTAINS(state,node) \ node 1541 maint/gnulib/lib/regexec.c ((state) != NULL && re_node_set_contains (&(state)->nodes, node)) node 1784 maint/gnulib/lib/regexec.c sub_epsilon_src_nodes (const re_dfa_t *dfa, Idx node, re_node_set *dest_nodes, node 1789 maint/gnulib/lib/regexec.c re_node_set *inv_eclosure = dfa->inveclosures + node; node 1795 maint/gnulib/lib/regexec.c if (cur_node == node) node 1845 maint/gnulib/lib/regexec.c subexp_idx = dfa->nodes[ent->node].opr.idx; node 1878 maint/gnulib/lib/regexec.c Idx node = eclosures->elems[node_idx]; node 1879 maint/gnulib/lib/regexec.c switch (dfa->nodes[node].type) node 1890 maint/gnulib/lib/regexec.c if (ent->node != node) node 1904 maint/gnulib/lib/regexec.c dst = dfa->edests[node].elems[0]; node 1930 maint/gnulib/lib/regexec.c if ((boundaries & 1) && subexp_idx == dfa->nodes[node].opr.idx) node 1935 maint/gnulib/lib/regexec.c if ((boundaries & 2) && subexp_idx == dfa->nodes[node].opr.idx) node 1993 maint/gnulib/lib/regexec.c subexp_idx = dfa->nodes[ent->node].opr.idx; node 2000 maint/gnulib/lib/regexec.c Idx node = dest_nodes->elems[node_idx]; node 2001 maint/gnulib/lib/regexec.c re_token_type_t type = dfa->nodes[node].type; node 2003 maint/gnulib/lib/regexec.c && subexp_idx == dfa->nodes[node].opr.idx) node 2004 maint/gnulib/lib/regexec.c ops_node = node; node 2006 maint/gnulib/lib/regexec.c && subexp_idx == dfa->nodes[node].opr.idx) node 2007 maint/gnulib/lib/regexec.c cls_node = node; node 2024 maint/gnulib/lib/regexec.c Idx node = dest_nodes->elems[node_idx]; node 2025 maint/gnulib/lib/regexec.c if (!re_node_set_contains (dfa->inveclosures + node, node 2027 maint/gnulib/lib/regexec.c && !re_node_set_contains (dfa->eclosures + node, node 2032 maint/gnulib/lib/regexec.c err = sub_epsilon_src_nodes (dfa, node, dest_nodes, node 2044 maint/gnulib/lib/regexec.c Idx node = dest_nodes->elems[node_idx]; node 2045 maint/gnulib/lib/regexec.c re_token_type_t type = dfa->nodes[node].type; node 2048 maint/gnulib/lib/regexec.c if (subexp_idx != dfa->nodes[node].opr.idx) node 2052 maint/gnulib/lib/regexec.c err = sub_epsilon_src_nodes (dfa, node, dest_nodes, node 2070 maint/gnulib/lib/regexec.c Idx node_idx, node; node 2084 maint/gnulib/lib/regexec.c node = candidates->elems[node_idx]; node 2085 maint/gnulib/lib/regexec.c type = dfa->nodes[node].type; node 2087 maint/gnulib/lib/regexec.c if (node == sctx->last_node && str_idx == sctx->last_str_idx) node 2102 maint/gnulib/lib/regexec.c if (entry->node != node) node 2106 maint/gnulib/lib/regexec.c dst_node = (subexp_len ? dfa->nexts[node] node 2107 maint/gnulib/lib/regexec.c : dfa->edests[node].elems[0]); node 2112 maint/gnulib/lib/regexec.c || check_dst_limits (mctx, &sctx->limits, node, node 2123 maint/gnulib/lib/regexec.c local_sctx.last_node = node; node 2369 maint/gnulib/lib/regexec.c Idx node = cur_nodes->elems[node_idx]; node 2370 maint/gnulib/lib/regexec.c if (dfa->nodes[node].type == OP_OPEN_SUBEXP node 2371 maint/gnulib/lib/regexec.c && dfa->nodes[node].opr.idx < BITSET_WORD_BITS node 2373 maint/gnulib/lib/regexec.c & ((bitset_word_t) 1 << dfa->nodes[node].opr.idx))) node 2375 maint/gnulib/lib/regexec.c err = match_ctx_add_subtop (mctx, node, str_idx); node 2506 maint/gnulib/lib/regexec.c const re_token_t *node = dfa->nodes + node_idx; node 2510 maint/gnulib/lib/regexec.c if (node->type != OP_BACK_REF) node 2513 maint/gnulib/lib/regexec.c if (node->constraint) node 2517 maint/gnulib/lib/regexec.c if (NOT_SATISFY_NEXT_CONSTRAINT (node->constraint, context)) node 2537 maint/gnulib/lib/regexec.c if (bkref_ent->node != node_idx || bkref_ent->str_idx != cur_str_idx) node 2618 maint/gnulib/lib/regexec.c if (entry->node == bkref_node) node 2633 maint/gnulib/lib/regexec.c if (dfa->nodes[sub_top->node].opr.idx != subexp_num) node 2730 maint/gnulib/lib/regexec.c err = check_arrival (mctx, sub_top->path, sub_top->node, node 2765 maint/gnulib/lib/regexec.c err = check_arrival (mctx, &sub_last->path, sub_last->node, node 2794 maint/gnulib/lib/regexec.c const re_token_t *node = dfa->nodes + cls_node; node 2795 maint/gnulib/lib/regexec.c if (node->type == type node 2796 maint/gnulib/lib/regexec.c && node->opr.idx == subexp_idx) node 3164 maint/gnulib/lib/regexec.c if (!re_node_set_contains (cur_nodes, ent->node)) node 3176 maint/gnulib/lib/regexec.c next_node = dfa->edests[ent->node].elems[0]; node 3196 maint/gnulib/lib/regexec.c next_node = dfa->nexts[ent->node]; node 3438 maint/gnulib/lib/regexec.c re_token_t *node = &dfa->nodes[cur_nodes->elems[i]]; node 3439 maint/gnulib/lib/regexec.c re_token_type_t type = node->type; node 3440 maint/gnulib/lib/regexec.c unsigned int constraint = node->constraint; node 3444 maint/gnulib/lib/regexec.c bitset_set (accepts, node->opr.c); node 3447 maint/gnulib/lib/regexec.c bitset_merge (accepts, node->opr.sbcset); node 3496 maint/gnulib/lib/regexec.c if (type == CHARACTER && !node->word_char) node 3513 maint/gnulib/lib/regexec.c if (type == CHARACTER && node->word_char) node 3539 maint/gnulib/lib/regexec.c if (type == CHARACTER && !bitset_contain (dests_ch[j], node->opr.c)) node 3614 maint/gnulib/lib/regexec.c const re_token_t *node = dfa->nodes + node_idx; node 3618 maint/gnulib/lib/regexec.c if (__glibc_unlikely (node->type == OP_UTF8_PERIOD)) node 3670 maint/gnulib/lib/regexec.c if (node->type == OP_PERIOD) node 3689 maint/gnulib/lib/regexec.c if (node->type == COMPLEX_BRACKET) node 3691 maint/gnulib/lib/regexec.c const re_charset_t *cset = node->opr.mbcset; node 3899 maint/gnulib/lib/regexec.c check_node_accept (const re_match_context_t *mctx, const re_token_t *node, node 3904 maint/gnulib/lib/regexec.c switch (node->type) node 3907 maint/gnulib/lib/regexec.c if (node->opr.c != ch) node 3912 maint/gnulib/lib/regexec.c if (!bitset_contain (node->opr.sbcset, ch)) node 3930 maint/gnulib/lib/regexec.c if (node->constraint) node 3936 maint/gnulib/lib/regexec.c if (NOT_SATISFY_NEXT_CONSTRAINT (node->constraint, context)) node 4087 maint/gnulib/lib/regexec.c match_ctx_add_entry (re_match_context_t *mctx, Idx node, Idx str_idx, Idx from, node 4109 maint/gnulib/lib/regexec.c mctx->bkref_ents[mctx->nbkref_ents].node = node; node 4158 maint/gnulib/lib/regexec.c match_ctx_add_subtop (re_match_context_t *mctx, Idx node, Idx str_idx) node 4176 maint/gnulib/lib/regexec.c mctx->sub_tops[mctx->nsub_tops]->node = node; node 4186 maint/gnulib/lib/regexec.c match_ctx_add_sublast (re_sub_match_top_t *subtop, Idx node, Idx str_idx) node 4204 maint/gnulib/lib/regexec.c new_entry->node = node; node 137 maint/gnulib/lib/tsearch.c check_tree_recurse (node p, int d_sofar, int d_total) node 154 maint/gnulib/lib/tsearch.c check_tree (node root) node 157 maint/gnulib/lib/tsearch.c node p; node 182 maint/gnulib/lib/tsearch.c maybe_split_for_insert (node *rootp, node *parentp, node *gparentp, node 185 maint/gnulib/lib/tsearch.c node root = *rootp; node 186 maint/gnulib/lib/tsearch.c node *rp, *lp; node 205 maint/gnulib/lib/tsearch.c node gp = *gparentp; node 206 maint/gnulib/lib/tsearch.c node p = *parentp; node 267 maint/gnulib/lib/tsearch.c node q; node 268 maint/gnulib/lib/tsearch.c node *parentp = NULL, *gparentp = NULL; node 269 maint/gnulib/lib/tsearch.c node *rootp = (node *) vrootp; node 270 maint/gnulib/lib/tsearch.c node *nextp; node 285 maint/gnulib/lib/tsearch.c node root = *rootp; node 334 maint/gnulib/lib/tsearch.c node *rootp = (node *) vrootp; node 343 maint/gnulib/lib/tsearch.c node root = *rootp; node 365 maint/gnulib/lib/tsearch.c node p, q, r, retval; node 367 maint/gnulib/lib/tsearch.c node *rootp = (node *) vrootp; node 368 maint/gnulib/lib/tsearch.c node root, unchained; node 374 maint/gnulib/lib/tsearch.c node *nodestack[100]; node 416 maint/gnulib/lib/tsearch.c node *parent = rootp, *up = &root->right; node 459 maint/gnulib/lib/tsearch.c node *pp = nodestack[sp - 1]; node 520 maint/gnulib/lib/tsearch.c node q2 = q->left; node 575 maint/gnulib/lib/tsearch.c node q2 = q->right; node 665 maint/gnulib/lib/tsearch.c tdestroy_recurse (node root, __free_fn_t freefct) node 679 maint/gnulib/lib/tsearch.c node root = (node) vroot; node 48 maint/gnulib/tests/test-array_omap.c gl_list_node_t node; node 57 maint/gnulib/tests/test-array_omap.c ASSERT (gl_list_iterator_next (&iterk, &key2, &node)); node 58 maint/gnulib/tests/test-array_omap.c ASSERT (gl_list_iterator_next (&iterv, &value2, &node)); node 63 maint/gnulib/tests/test-array_omap.c ASSERT (!gl_list_iterator_next (&iterk, &key2, &node)); node 64 maint/gnulib/tests/test-array_omap.c ASSERT (!gl_list_iterator_next (&iterv, &value2, &node)); node 401 tools/attrd_updater.c pair->node, false, false); node 558 tools/crm_attribute.c output_one_attribute(xmlNode *node, void *userdata) node 562 tools/crm_attribute.c const char *name = crm_element_value(node, PCMK_XA_NAME); node 563 tools/crm_attribute.c const char *value = crm_element_value(node, PCMK_XA_VALUE); node 389 tools/crm_mon.c GSList *node = lst; node 391 tools/crm_mon.c while (node != NULL) { node 392 tools/crm_mon.c char *s = node->data; node 408 tools/crm_mon.c node = node->next; node 1783 tools/crm_mon.c send_custom_trap(const char *node, const char *rsc, const char *task, int target_rc, int rc, node 1801 tools/crm_mon.c setenv("CRM_notify_node", node, 1); node 1839 tools/crm_mon.c const char *node = NULL; node 1868 tools/crm_mon.c node = crm_element_value(rsc_op, PCMK__META_ON_NODE); node 1874 tools/crm_mon.c if(node == NULL && n) { node 1875 tools/crm_mon.c node = crm_element_value(n, PCMK_XA_UNAME); node 1878 tools/crm_mon.c if (node == NULL && n) { node 1879 tools/crm_mon.c node = pcmk__xe_id(n); node 1882 tools/crm_mon.c if (node == NULL) { node 1883 tools/crm_mon.c node = node_id; node 1886 tools/crm_mon.c if (node == NULL) { node 1894 tools/crm_mon.c crm_notice("%s of %s on %s completed: %s", task, rsc, node, desc); node 1901 tools/crm_mon.c crm_warn("%s of %s on %s failed: %s", task, rsc, node, desc); node 1905 tools/crm_mon.c crm_warn("%s of %s on %s failed: %s", task, rsc, node, desc); node 1909 tools/crm_mon.c send_custom_trap(node, rsc, task, target_rc, rc, status, desc); node 1932 tools/crm_mon.c const char *node = crm_element_value(xml, PCMK_XA_UNAME); node 1934 tools/crm_mon.c if (node == NULL) { node 1935 tools/crm_mon.c node = pcmk__xe_id(xml); node 1938 tools/crm_mon.c handle_rsc_op(xml, (void *) node); node 1949 tools/crm_mon.c const char *node = NULL; node 1990 tools/crm_mon.c node = crm_element_value(match, PCMK_XA_UNAME); node 1991 tools/crm_mon.c if (node == NULL) { node 1992 tools/crm_mon.c node = pcmk__xe_id(match); node 1994 tools/crm_mon.c handle_rsc_op(match, (void *) node); node 1997 tools/crm_mon.c node = pcmk__xe_id(match); node 1998 tools/crm_mon.c handle_rsc_op(match, (void *) node); node 254 tools/crm_mon_curses.c curses_list_data_t *node = NULL; node 259 tools/crm_mon_curses.c node = g_queue_pop_tail(priv->parent_q); node 261 tools/crm_mon_curses.c if (node->singular_noun != NULL && node->plural_noun != NULL) { node 262 tools/crm_mon_curses.c if (node->len == 1) { node 263 tools/crm_mon_curses.c curses_indented_printf(out, "%d %s found\n", node->len, node->singular_noun); node 265 tools/crm_mon_curses.c curses_indented_printf(out, "%d %s found\n", node->len, node->plural_noun); node 269 tools/crm_mon_curses.c free_list_data(node); node 177 tools/crm_node.c pcmk_controld_api_node_t *node = node_iter->data; node 178 tools/crm_node.c out->info(out, "%" PRIu32 " %s %s", node->id, pcmk__s(node->uname, ""), node 179 tools/crm_node.c pcmk__s(node->state, "")); node 194 tools/crm_node.c pcmk_controld_api_node_t *node = node_iter->data; node 195 tools/crm_node.c char *id_s = crm_strdup_printf("%" PRIu32, node->id); node 199 tools/crm_node.c PCMK_XA_NAME, node->uname, node 200 tools/crm_node.c PCMK_XA_STATE, node->state, node 247 tools/crm_node.c pcmk_controld_api_node_t *node = node_iter->data; node 248 tools/crm_node.c if (pcmk__str_eq(node->state, "member", pcmk__str_none)) { node 249 tools/crm_node.c pcmk__add_separated_word(&buffer, 128, pcmk__s(node->uname, ""), " "); node 271 tools/crm_node.c pcmk_controld_api_node_t *node = node_iter->data; node 273 tools/crm_node.c if (pcmk__str_eq(node->state, "member", pcmk__str_none)) { node 274 tools/crm_node.c char *id_s = crm_strdup_printf("%" PRIu32, node->id); node 278 tools/crm_node.c PCMK_XA_NAME, node->uname, node 279 tools/crm_node.c PCMK_XA_STATE, node->state, node 912 tools/crm_resource.c cleanup(pcmk__output_t *out, pcmk_resource_t *rsc, pcmk_node_t *node) node 928 tools/crm_resource.c cli_resource_check(out, rsc, node); node 1070 tools/crm_resource.c pcmk_node_t *node = pcmk_find_node(scheduler, options.host_uname); node 1072 tools/crm_resource.c if (pcmk__is_pacemaker_remote_node(node)) { node 1073 tools/crm_resource.c node = pcmk__current_node(node->details->remote_rsc); node 1074 tools/crm_resource.c if (node == NULL) { node 1081 tools/crm_resource.c router_node = node->details->uname; node 1107 tools/crm_resource.c refresh_resource(pcmk__output_t *out, pcmk_resource_t *rsc, pcmk_node_t *node) node 1122 tools/crm_resource.c cli_resource_check(out, rsc, node); node 1524 tools/crm_resource.c pcmk_node_t *node = NULL; node 1758 tools/crm_resource.c node = pcmk_find_node(scheduler, options.host_uname); node 1760 tools/crm_resource.c if (node == NULL) { node 1848 tools/crm_resource.c rc = cli_resource_restart(out, rsc, node, options.move_lifetime, node 1874 tools/crm_resource.c node = pcmk_find_node(scheduler, options.host_uname); node 1875 tools/crm_resource.c if (node == NULL) { node 1878 tools/crm_resource.c rc = pcmk__resource_digests(out, rsc, node, node 1931 tools/crm_resource.c if ((options.host_uname != NULL) && (node == NULL)) { node 1935 tools/crm_resource.c scheduler->resources, rsc, node); node 1964 tools/crm_resource.c } else if (node == NULL) { node 1967 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, node->details->uname, node 2086 tools/crm_resource.c cleanup(out, rsc, node); node 2094 tools/crm_resource.c refresh_resource(out, rsc, node); node 74 tools/crm_resource.h const char *rsc, const char *node, gboolean promoted_role_only); node 87 tools/crm_resource.h pcmk_node_t *node); node 100 tools/crm_resource.h const pcmk_node_t *node, const char *move_lifetime, node 358 tools/crm_resource_ban.c const char *rsc, const char *node, node 378 tools/crm_resource_ban.c if ((node != NULL) || (rsc != NULL) || promoted_role_only) { node 381 tools/crm_resource_ban.c if (node != NULL) { node 382 tools/crm_resource_ban.c pcmk__g_strcat(buf, "@" PCMK_XE_NODE "='", node, "'", NULL); node 411 tools/crm_resource_ban.c if (node != NULL) { node 420 tools/crm_resource_ban.c "and @" PCMK_XA_VALUE "='", node, "']]", NULL); node 440 tools/crm_resource_ban.c const char *rsc, const char *node, gboolean promoted_role_only) node 462 tools/crm_resource_ban.c build_clear_xpath_string(buf, constraint_node, rsc, node, node 73 tools/crm_resource_print.c pcmk_node_t *node = pcmk__current_node(rsc); node 81 tools/crm_resource_print.c if (node != NULL) { node 82 tools/crm_resource_print.c host = node->details->uname; node 359 tools/crm_resource_print.c xmlNodePtr node = pcmk__output_create_xml_node(out, PCMK_XE_OVERRIDE, node 365 tools/crm_resource_print.c crm_xml_add(node, PCMK_XA_RSC, rsc_name); node 482 tools/crm_resource_print.c xmlNodePtr node = NULL; node 484 tools/crm_resource_print.c node = pcmk__output_xml_create_parent(out, PCMK_XE_RESOURCE_AGENT_ACTION, node 491 tools/crm_resource_print.c crm_xml_add(node, PCMK_XA_RSC, rsc_name); node 494 tools/crm_resource_print.c crm_xml_add(node, PCMK_XA_PROVIDER, provider); node 585 tools/crm_resource_print.c xmlNodePtr node = pcmk__output_create_xml_node(out, PCMK_XE_CHECK, node 590 tools/crm_resource_print.c pcmk__xe_set_bool_attr(node, PCMK_XA_REMAIN_STOPPED, true); node 594 tools/crm_resource_print.c pcmk__xe_set_bool_attr(node, PCMK_XA_PROMOTABLE, false); node 598 tools/crm_resource_print.c pcmk__xe_set_bool_attr(node, PCMK_XA_UNMANAGED, true); node 602 tools/crm_resource_print.c crm_xml_add(node, PCMK_XA_LOCKED_TO_HYPHEN, checks->lock_node); node 606 tools/crm_resource_print.c pcmk__xe_set_bool_attr(node, PCMK_XA_UNHEALTHY, true); node 693 tools/crm_resource_print.c pcmk_node_t *node = va_arg(args, pcmk_node_t *); node 695 tools/crm_resource_print.c const char *host_uname = (node == NULL)? NULL : node->details->uname; node 727 tools/crm_resource_print.c cli_resource_check(out, rsc, node); node 730 tools/crm_resource_print.c const char* host_uname = node->details->uname; node 731 tools/crm_resource_print.c GList *allResources = node->details->allocated_rsc; node 732 tools/crm_resource_print.c GList *activeResources = node->details->running_rsc; node 740 tools/crm_resource_print.c cli_resource_check(out, rsc, node); node 747 tools/crm_resource_print.c cli_resource_check(out, rsc, node); node 775 tools/crm_resource_print.c pcmk_node_t *node = va_arg(args, pcmk_node_t *); node 777 tools/crm_resource_print.c const char *host_uname = (node == NULL)? NULL : node->details->uname; node 813 tools/crm_resource_print.c cli_resource_check(out, rsc, node); node 816 tools/crm_resource_print.c const char* host_uname = node->details->uname; node 817 tools/crm_resource_print.c GList *allResources = node->details->allocated_rsc; node 818 tools/crm_resource_print.c GList *activeResources = node->details->running_rsc; node 833 tools/crm_resource_print.c cli_resource_check(out, rsc, node); node 846 tools/crm_resource_print.c cli_resource_check(out, rsc, node); node 35 tools/crm_resource_runtime.c const pcmk_node_t *node = (const pcmk_node_t *) iter2->data; node 38 tools/crm_resource_runtime.c ni->node_name = node->details->uname; node 70 tools/crm_resource_runtime.c pcmk_node_t *node = (pcmk_node_t *) iter->data; node 73 tools/crm_resource_runtime.c ni->node_name = node->details->uname; node 670 tools/crm_resource_runtime.c pcmk_node_t *node = pcmk_find_node(scheduler, host_uname); node 672 tools/crm_resource_runtime.c if (node == NULL) { node 677 tools/crm_resource_runtime.c if (!(node->details->online)) { node 685 tools/crm_resource_runtime.c if (!cib_only && pcmk__is_pacemaker_remote_node(node)) { node 686 tools/crm_resource_runtime.c node = pcmk__current_node(node->details->remote_rsc); node 687 tools/crm_resource_runtime.c if (node == NULL) { node 692 tools/crm_resource_runtime.c router_node = node->details->uname; node 849 tools/crm_resource_runtime.c const char *interval_spec, const pcmk_node_t *node) node 855 tools/crm_resource_runtime.c if (pcmk__is_pacemaker_remote_node(node)) { node 859 tools/crm_resource_runtime.c rc = pcmk__attrd_api_clear_failures(NULL, node->details->uname, rsc_name, node 875 tools/crm_resource_runtime.c pcmk_node_t *node = NULL; node 903 tools/crm_resource_runtime.c pcmk_node_t *node = NULL; node 906 tools/crm_resource_runtime.c while (g_hash_table_iter_next(&iter, NULL, (void**)&node)) { node 907 tools/crm_resource_runtime.c if(node->weight >= 0) { node 908 tools/crm_resource_runtime.c nodes = g_list_prepend(nodes, node); node 917 tools/crm_resource_runtime.c node = (pcmk_node_t *) lpc->data; node 919 tools/crm_resource_runtime.c if (node->details->online) { node 920 tools/crm_resource_runtime.c rc = cli_resource_delete(controld_api, node->details->uname, rsc, node 934 tools/crm_resource_runtime.c node = pcmk_find_node(scheduler, host_uname); node 936 tools/crm_resource_runtime.c if (node == NULL) { node 942 tools/crm_resource_runtime.c if (!node->details->rsc_discovery_enabled) { node 954 tools/crm_resource_runtime.c rc = clear_rsc_fail_attrs(rsc, operation, interval_spec, node); node 994 tools/crm_resource_runtime.c pcmk_node_t *node = pcmk_find_node(scheduler, node_name); node 996 tools/crm_resource_runtime.c if (node == NULL) { node 1000 tools/crm_resource_runtime.c if (pcmk__is_pacemaker_remote_node(node)) { node 1023 tools/crm_resource_runtime.c pcmk_node_t *node = (pcmk_node_t *) iter->data; node 1025 tools/crm_resource_runtime.c rc = clear_rsc_failures(out, controld_api, node->details->uname, NULL, node 1086 tools/crm_resource_runtime.c node_is_unhealthy(pcmk_node_t *node) node 1088 tools/crm_resource_runtime.c switch (pe__health_strategy(node->details->data_set)) { node 1093 tools/crm_resource_runtime.c if (pe__node_health(node) < 0) { node 1099 tools/crm_resource_runtime.c if (pe__node_health(node) <= 0) { node 1116 tools/crm_resource_runtime.c check_node_health(resource_checks_t *checks, pcmk_node_t *node) node 1118 tools/crm_resource_runtime.c if (node == NULL) { node 1124 tools/crm_resource_runtime.c while (g_hash_table_iter_next(&iter, NULL, (void **) &node)) { node 1126 tools/crm_resource_runtime.c if (!node_is_unhealthy(node)) { node 1135 tools/crm_resource_runtime.c } else if (node_is_unhealthy(node)) { node 1141 tools/crm_resource_runtime.c cli_resource_check(pcmk__output_t *out, pcmk_resource_t *rsc, pcmk_node_t *node) node 1148 tools/crm_resource_runtime.c check_node_health(&checks, node); node 1163 tools/crm_resource_runtime.c generate_resource_params(pcmk_resource_t *rsc, pcmk_node_t *node, node 1175 tools/crm_resource_runtime.c params = pe_rsc_params(rsc, node, scheduler); node 1210 tools/crm_resource_runtime.c pcmk_node_t *node = (pcmk_node_t *) hIter->data; node 1212 tools/crm_resource_runtime.c if (pcmk__strcase_any_of(host, node->details->uname, node->details->id, NULL)) { node 1539 tools/crm_resource_runtime.c const pcmk_node_t *node, const char *move_lifetime, node 1565 tools/crm_resource_runtime.c const char *host = node ? node->details->uname : NULL; node 1583 tools/crm_resource_runtime.c rsc = parent->fns->find_rsc(parent, lookup_id, node, node 1925 tools/crm_resource_runtime.c if (a->node) { node 1927 tools/crm_resource_runtime.c a->id, a->uuid, pcmk__node_name(a->node));