child 611 daemons/attrd/attrd_commands.c for (xmlNode *child = pcmk__xml_first_child(xml); child != NULL; child 612 daemons/attrd/attrd_commands.c child = pcmk__xml_next(child)) { child 613 daemons/attrd/attrd_commands.c attrd_peer_update(peer, child, child 614 daemons/attrd/attrd_commands.c crm_element_value(child, PCMK__XA_ATTR_NODE_NAME), child 427 daemons/based/based_messages.c xmlNode *child = NULL; child 429 daemons/based/based_messages.c for (child = pcmk__xml_first_child(delete_spec); child != NULL; child 430 daemons/based/based_messages.c child = pcmk__xml_next(child)) { child 431 daemons/based/based_messages.c int tmp_result = delete_cib_object(equiv_node, child); child 1974 daemons/fenced/fenced_commands.c xmlNode *child = create_xml_node(xml, F_STONITH_ACTION); child 1976 daemons/fenced/fenced_commands.c crm_xml_add(child, XML_ATTR_ID, action); child 1977 daemons/fenced/fenced_commands.c add_action_specific_attributes(child, action, device); child 1978 daemons/fenced/fenced_commands.c add_disallowed(child, action, device, target, allow_suicide); child 1822 daemons/fenced/fenced_remote.c xmlNode *child; child 1841 daemons/fenced/fenced_remote.c for (child = pcmk__xml_first_child(xml); child != NULL; child 1842 daemons/fenced/fenced_remote.c child = pcmk__xml_next(child)) { child 1847 daemons/fenced/fenced_remote.c if (pcmk__str_eq(ID(child), "off", pcmk__str_casei)) { child 1848 daemons/fenced/fenced_remote.c parse_action_specific(child, result->host, device, "off", child 1850 daemons/fenced/fenced_remote.c } else if (pcmk__str_eq(ID(child), "on", pcmk__str_casei)) { child 1851 daemons/fenced/fenced_remote.c parse_action_specific(child, result->host, device, "on", child 1872 daemons/fenced/fenced_remote.c xmlNode *child; child 1881 daemons/fenced/fenced_remote.c for (child = pcmk__xml_first_child(xml); child != NULL; child 1882 daemons/fenced/fenced_remote.c child = pcmk__xml_next(child)) { child 1883 daemons/fenced/fenced_remote.c const char *device = ID(child); child 1886 daemons/fenced/fenced_remote.c add_device_properties(child, op, result, device); child 91 daemons/pacemakerd/pcmkd_subdaemons.c static int child_liveness(pcmk_child_t *child); child 93 daemons/pacemakerd/pcmkd_subdaemons.c static gboolean start_child(pcmk_child_t * child); child 95 daemons/pacemakerd/pcmkd_subdaemons.c static void pcmk_process_exit(pcmk_child_t * child); child 97 daemons/pacemakerd/pcmkd_subdaemons.c static gboolean stop_child(pcmk_child_t * child, int signal); child 151 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_child_t *child = data; child 153 daemons/pacemakerd/pcmkd_subdaemons.c if (child->pid == PCMK__SPECIAL_PID) { child 154 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_process_exit(child); child 156 daemons/pacemakerd/pcmkd_subdaemons.c } else if (child->pid != 0) { child 158 daemons/pacemakerd/pcmkd_subdaemons.c crm_err("Child %s not terminating in a timely manner, forcing", child->name); child 159 daemons/pacemakerd/pcmkd_subdaemons.c stop_child(child, SIGSEGV); child 167 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_child_t *child = mainloop_child_userdata(p); child 185 daemons/pacemakerd/pcmkd_subdaemons.c child->respawn = FALSE; child 192 daemons/pacemakerd/pcmkd_subdaemons.c child->respawn = FALSE; child 205 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_process_exit(child); child 209 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_process_exit(pcmk_child_t * child) child 211 daemons/pacemakerd/pcmkd_subdaemons.c child->pid = 0; child 212 daemons/pacemakerd/pcmkd_subdaemons.c child->active_before_startup = FALSE; child 214 daemons/pacemakerd/pcmkd_subdaemons.c child->respawn_count += 1; child 215 daemons/pacemakerd/pcmkd_subdaemons.c if (child->respawn_count > MAX_RESPAWN) { child 216 daemons/pacemakerd/pcmkd_subdaemons.c crm_err("Child respawn count exceeded by %s", child->name); child 217 daemons/pacemakerd/pcmkd_subdaemons.c child->respawn = FALSE; child 224 daemons/pacemakerd/pcmkd_subdaemons.c } else if (!child->respawn) { child 228 daemons/pacemakerd/pcmkd_subdaemons.c crm_err("Rebooting system because of %s", child->name); child 231 daemons/pacemakerd/pcmkd_subdaemons.c } else if (child_liveness(child) == pcmk_rc_ok) { child 234 daemons/pacemakerd/pcmkd_subdaemons.c child->name, child->endpoint); child 236 daemons/pacemakerd/pcmkd_subdaemons.c child->active_before_startup = TRUE; child 244 daemons/pacemakerd/pcmkd_subdaemons.c crm_notice("Respawning failed child process: %s", child->name); child 245 daemons/pacemakerd/pcmkd_subdaemons.c start_child(child); child 266 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_child_t *child = &(pcmk_children[lpc]); child 268 daemons/pacemakerd/pcmkd_subdaemons.c if (phase != child->start_seq) { child 272 daemons/pacemakerd/pcmkd_subdaemons.c if (child->pid != 0) { child 275 daemons/pacemakerd/pcmkd_subdaemons.c if (child->respawn) { child 276 daemons/pacemakerd/pcmkd_subdaemons.c if (child->pid == PCMK__SPECIAL_PID) { child 285 daemons/pacemakerd/pcmkd_subdaemons.c child->name, (long) SHUTDOWN_ESCALATION_PERIOD, child 286 daemons/pacemakerd/pcmkd_subdaemons.c child->command); child 289 daemons/pacemakerd/pcmkd_subdaemons.c child->respawn = FALSE; child 290 daemons/pacemakerd/pcmkd_subdaemons.c stop_child(child, SIGTERM); child 293 daemons/pacemakerd/pcmkd_subdaemons.c escalate_shutdown, child); child 300 daemons/pacemakerd/pcmkd_subdaemons.c child->name, (long long) child->pid, child 301 daemons/pacemakerd/pcmkd_subdaemons.c child->start_seq); child 307 daemons/pacemakerd/pcmkd_subdaemons.c crm_debug("%s confirmed stopped", child->name); child 308 daemons/pacemakerd/pcmkd_subdaemons.c child->pid = 0; child 348 daemons/pacemakerd/pcmkd_subdaemons.c start_child(pcmk_child_t * child) child 357 daemons/pacemakerd/pcmkd_subdaemons.c child->active_before_startup = FALSE; child 359 daemons/pacemakerd/pcmkd_subdaemons.c if (child->command == NULL) { child 360 daemons/pacemakerd/pcmkd_subdaemons.c crm_info("Nothing to do for child \"%s\"", child->name); child 368 daemons/pacemakerd/pcmkd_subdaemons.c } else if (env_callgrind != NULL && strstr(env_callgrind, child->name)) { child 375 daemons/pacemakerd/pcmkd_subdaemons.c } else if (env_valgrind != NULL && strstr(env_valgrind, child->name)) { child 381 daemons/pacemakerd/pcmkd_subdaemons.c " The location of the valgrind binary is unknown", child->name); child 385 daemons/pacemakerd/pcmkd_subdaemons.c if (child->uid) { child 386 daemons/pacemakerd/pcmkd_subdaemons.c if (crm_user_lookup(child->uid, &uid, &gid) < 0) { child 387 daemons/pacemakerd/pcmkd_subdaemons.c crm_err("Invalid user (%s) for %s: not found", child->uid, child->name); child 390 daemons/pacemakerd/pcmkd_subdaemons.c crm_info("Using uid=%u and group=%u for process %s", uid, gid, child->name); child 393 daemons/pacemakerd/pcmkd_subdaemons.c child->pid = fork(); child 394 daemons/pacemakerd/pcmkd_subdaemons.c CRM_ASSERT(child->pid != -1); child 396 daemons/pacemakerd/pcmkd_subdaemons.c if (child->pid > 0) { child 398 daemons/pacemakerd/pcmkd_subdaemons.c mainloop_child_add(child->pid, 0, child->name, child, pcmk_child_exit); child 401 daemons/pacemakerd/pcmkd_subdaemons.c (long long) child->pid, child->name, child 414 daemons/pacemakerd/pcmkd_subdaemons.c opts_vgrind[3] = strdup(child->command); child 417 daemons/pacemakerd/pcmkd_subdaemons.c opts_vgrind[1] = strdup(child->command); child 422 daemons/pacemakerd/pcmkd_subdaemons.c opts_default[0] = strdup(child->command); child 444 daemons/pacemakerd/pcmkd_subdaemons.c if (initgroups(child->uid, gid) < 0) { child 445 daemons/pacemakerd/pcmkd_subdaemons.c crm_err("Cannot initialize groups for %s: %s (%d)", child->uid, pcmk_strerror(errno), errno); child 451 daemons/pacemakerd/pcmkd_subdaemons.c child->uid, uid, strerror(errno)); child 463 daemons/pacemakerd/pcmkd_subdaemons.c (void)execvp(child->command, opts_default); child 465 daemons/pacemakerd/pcmkd_subdaemons.c crm_crit("Could not execute %s: %s", child->command, strerror(errno)); child 490 daemons/pacemakerd/pcmkd_subdaemons.c child_liveness(pcmk_child_t *child) child 501 daemons/pacemakerd/pcmkd_subdaemons.c if (child->endpoint == NULL child 502 daemons/pacemakerd/pcmkd_subdaemons.c && (child->pid <= 0 || child->pid == PCMK__SPECIAL_PID)) { child 504 daemons/pacemakerd/pcmkd_subdaemons.c child->name); child 507 daemons/pacemakerd/pcmkd_subdaemons.c } else if (child->endpoint != NULL) { child 510 daemons/pacemakerd/pcmkd_subdaemons.c if (child->uid == NULL) { child 524 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk__ipc_is_authentic_process_active(child->endpoint, child 528 daemons/pacemakerd/pcmkd_subdaemons.c if (child->pid <= 0) { child 534 daemons/pacemakerd/pcmkd_subdaemons.c child->pid = ipc_pid; child 535 daemons/pacemakerd/pcmkd_subdaemons.c } else if ((ipc_pid != 0) && (child->pid != ipc_pid)) { child 552 daemons/pacemakerd/pcmkd_subdaemons.c int ret = pcmk__pid_active(child->pid, child->name); child 557 daemons/pacemakerd/pcmkd_subdaemons.c child->name) == pcmk_rc_ok))) { child 572 daemons/pacemakerd/pcmkd_subdaemons.c stop_child(child, SIGKILL); child 575 daemons/pacemakerd/pcmkd_subdaemons.c child->pid = ipc_pid; child 579 daemons/pacemakerd/pcmkd_subdaemons.c } else if ((child->pid == 0) && (ret == EINVAL)) { child 781 daemons/pacemakerd/pcmkd_subdaemons.c stop_child(pcmk_child_t * child, int signal) child 791 daemons/pacemakerd/pcmkd_subdaemons.c if (child->command == NULL || child->pid == PCMK__SPECIAL_PID) { child 793 daemons/pacemakerd/pcmkd_subdaemons.c child->name, (long long) PCMK__SPECIAL_PID_AS_0(child->pid)); child 797 daemons/pacemakerd/pcmkd_subdaemons.c if (child->pid <= 0) { child 798 daemons/pacemakerd/pcmkd_subdaemons.c crm_trace("Client %s not running", child->name); child 803 daemons/pacemakerd/pcmkd_subdaemons.c if (kill(child->pid, signal) == 0) { child 805 daemons/pacemakerd/pcmkd_subdaemons.c child->name, signal, (long long) child->pid); child 809 daemons/pacemakerd/pcmkd_subdaemons.c child->name, (long long) child->pid, signal, strerror(errno)); child 169 include/crm/common/mainloop.h void *mainloop_child_userdata(mainloop_child_t * child); child 170 include/crm/common/mainloop.h int mainloop_child_timeout(mainloop_child_t * child); child 171 include/crm/common/mainloop.h const char *mainloop_child_name(mainloop_child_t * child); child 173 include/crm/common/mainloop.h pid_t mainloop_child_pid(mainloop_child_t * child); child 174 include/crm/common/mainloop.h void mainloop_clear_child_userdata(mainloop_child_t * child); child 115 include/crm/common/xml.h int add_node_nocopy(xmlNode * parent, const char *name, xmlNode * child); child 154 include/crm/common/xml.h gboolean replace_xml_child(xmlNode * parent, xmlNode * child, xmlNode * update, child 157 include/crm/common/xml.h gboolean update_xml_child(xmlNode * child, xmlNode * to_update); child 244 include/crm/common/xml.h void free_xml(xmlNode * child); child 200 include/crm/common/xml_internal.h xmlNode *child = (parent? parent->children : NULL); child 202 include/crm/common/xml_internal.h while (child && (child->type == XML_TEXT_NODE)) { child 203 include/crm/common/xml_internal.h child = child->next; child 205 include/crm/common/xml_internal.h return child; child 217 include/crm/common/xml_internal.h pcmk__xml_next(const xmlNode *child) child 219 include/crm/common/xml_internal.h xmlNode *next = (child? child->next : NULL); child 238 include/crm/common/xml_internal.h xmlNode *child = (parent? parent->children : NULL); child 240 include/crm/common/xml_internal.h while (child && (child->type != XML_ELEMENT_NODE)) { child 241 include/crm/common/xml_internal.h child = child->next; child 243 include/crm/common/xml_internal.h return child; child 255 include/crm/common/xml_internal.h pcmk__xe_next(const xmlNode *child) child 257 include/crm/common/xml_internal.h xmlNode *next = child? child->next : NULL; child 35 include/crm/pengine/complex.h gboolean is_parent(pe_resource_t *child, pe_resource_t *rsc); child 143 lib/cib/cib_attrs.c xmlNode *child = NULL; child 148 lib/cib/cib_attrs.c for (child = pcmk__xml_first_child(xml_search); child != NULL; child 149 lib/cib/cib_attrs.c child = pcmk__xml_next(child)) { child 151 lib/cib/cib_attrs.c crm_element_value(child, XML_NVPAIR_ATTR_VALUE), ID(child)); child 299 lib/cib/cib_ops.c xmlNode *child = NULL; child 300 lib/cib/cib_ops.c for (child = pcmk__xml_first_child(input); child; child 301 lib/cib/cib_ops.c child = pcmk__xml_next(child)) { child 302 lib/cib/cib_ops.c if (replace_xml_child(NULL, obj_root, child, TRUE) == FALSE) { child 303 lib/cib/cib_ops.c crm_trace("No matching object to delete: %s=%s", child->name, ID(child)); child 149 lib/common/acl.c xmlNode *child = NULL; child 151 lib/common/acl.c for (child = pcmk__xe_first_child(acl_entry); child; child 152 lib/common/acl.c child = pcmk__xe_next(child)) { child 153 lib/common/acl.c const char *tag = crm_element_name(child); child 154 lib/common/acl.c const char *kind = crm_element_value(child, XML_ACL_ATTR_KIND); child 166 lib/common/acl.c const char *ref_role = crm_element_value(child, XML_ATTR_ID); child 188 lib/common/acl.c acls = create_acl(child, acls, xpf_acl_read); child 191 lib/common/acl.c acls = create_acl(child, acls, xpf_acl_write); child 194 lib/common/acl.c acls = create_acl(child, acls, xpf_acl_deny); child 310 lib/common/acl.c xmlNode *child = NULL; child 312 lib/common/acl.c for (child = pcmk__xe_first_child(acls); child; child 313 lib/common/acl.c child = pcmk__xe_next(child)) { child 314 lib/common/acl.c const char *tag = crm_element_name(child); child 318 lib/common/acl.c const char *id = crm_element_value(child, XML_ATTR_ID); child 322 lib/common/acl.c p->acls = parse_acl_entry(acls, child, p->acls); child 353 lib/common/acl.c xmlNode *child = NULL; child 376 lib/common/acl.c child = pcmk__xml_first_child(xml); child 377 lib/common/acl.c while ( child != NULL ) { child 378 lib/common/acl.c xmlNode *tmp = child; child 380 lib/common/acl.c child = pcmk__xml_next(child); child 557 lib/common/acl.c xmlNode *child = cIter; child 559 lib/common/acl.c pcmk__apply_creation_acl(child, true); child 1035 lib/common/mainloop.c mainloop_child_pid(mainloop_child_t * child) child 1037 lib/common/mainloop.c return child->pid; child 1041 lib/common/mainloop.c mainloop_child_name(mainloop_child_t * child) child 1043 lib/common/mainloop.c return child->desc; child 1047 lib/common/mainloop.c mainloop_child_timeout(mainloop_child_t * child) child 1049 lib/common/mainloop.c return child->timeout; child 1053 lib/common/mainloop.c mainloop_child_userdata(mainloop_child_t * child) child 1055 lib/common/mainloop.c return child->privatedata; child 1059 lib/common/mainloop.c mainloop_clear_child_userdata(mainloop_child_t * child) child 1061 lib/common/mainloop.c child->privatedata = NULL; child 1066 lib/common/mainloop.c child_free(mainloop_child_t *child) child 1068 lib/common/mainloop.c if (child->timerid != 0) { child 1069 lib/common/mainloop.c crm_trace("Removing timer %d", child->timerid); child 1070 lib/common/mainloop.c g_source_remove(child->timerid); child 1071 lib/common/mainloop.c child->timerid = 0; child 1073 lib/common/mainloop.c free(child->desc); child 1074 lib/common/mainloop.c free(child); child 1079 lib/common/mainloop.c child_kill_helper(mainloop_child_t *child) child 1082 lib/common/mainloop.c if (child->flags & mainloop_leave_pid_group) { child 1083 lib/common/mainloop.c crm_debug("Kill pid %d only. leave group intact.", child->pid); child 1084 lib/common/mainloop.c rc = kill(child->pid, SIGKILL); child 1086 lib/common/mainloop.c crm_debug("Kill pid %d's group", child->pid); child 1087 lib/common/mainloop.c rc = kill(-child->pid, SIGKILL); child 1092 lib/common/mainloop.c crm_perror(LOG_ERR, "kill(%d, KILL) failed", child->pid); child 1102 lib/common/mainloop.c mainloop_child_t *child = p; child 1105 lib/common/mainloop.c child->timerid = 0; child 1106 lib/common/mainloop.c if (child->timeout) { child 1107 lib/common/mainloop.c crm_crit("%s process (PID %d) will not die!", child->desc, (int)child->pid); child 1111 lib/common/mainloop.c rc = child_kill_helper(child); child 1117 lib/common/mainloop.c child->timeout = TRUE; child 1118 lib/common/mainloop.c crm_warn("%s process (PID %d) timed out", child->desc, (int)child->pid); child 1120 lib/common/mainloop.c child->timerid = g_timeout_add(5000, child_timeout_callback, child); child 1125 lib/common/mainloop.c child_waitpid(mainloop_child_t *child, int flags) child 1134 lib/common/mainloop.c rc = waitpid(child->pid, &status, flags); child 1137 lib/common/mainloop.c child->pid, child->desc); child 1140 lib/common/mainloop.c } else if (rc != child->pid) { child 1153 lib/common/mainloop.c child->pid, child->desc, pcmk_strerror(errno)); child 1158 lib/common/mainloop.c child->pid, child->desc, exitcode); child 1163 lib/common/mainloop.c child->pid, child->desc, signo, strsignal(signo)); child 1169 lib/common/mainloop.c child->pid, child->desc); child 1174 lib/common/mainloop.c child->pid, child->desc); child 1178 lib/common/mainloop.c if (callback_needed && child->callback) { child 1179 lib/common/mainloop.c child->callback(child, child->pid, core, signo, exitcode); child 1189 lib/common/mainloop.c mainloop_child_t *child = iter->data; child 1192 lib/common/mainloop.c if (child_waitpid(child, WNOHANG)) { child 1194 lib/common/mainloop.c child->pid); child 1197 lib/common/mainloop.c child_free(child); child 1218 lib/common/mainloop.c mainloop_child_t *child = NULL; child 1225 lib/common/mainloop.c child = iter->data; child 1226 lib/common/mainloop.c if (pid == child->pid) { child 1227 lib/common/mainloop.c match = child; child 1275 lib/common/mainloop.c mainloop_child_t *child = g_new(mainloop_child_t, 1); child 1277 lib/common/mainloop.c child->pid = pid; child 1278 lib/common/mainloop.c child->timerid = 0; child 1279 lib/common/mainloop.c child->timeout = FALSE; child 1280 lib/common/mainloop.c child->privatedata = privatedata; child 1281 lib/common/mainloop.c child->callback = callback; child 1282 lib/common/mainloop.c child->flags = flags; child 1285 lib/common/mainloop.c child->desc = strdup(desc); child 1289 lib/common/mainloop.c child->timerid = g_timeout_add(timeout, child_timeout_callback, child); child 1292 lib/common/mainloop.c child_list = g_list_append(child_list, child); child 914 lib/common/nvpair.c xmlNode *child = NULL; child 940 lib/common/nvpair.c for (child = pcmk__xml_first_child(nvpair_list); child != NULL; child 941 lib/common/nvpair.c child = pcmk__xml_next(child)) { child 943 lib/common/nvpair.c if (strcmp((const char *)child->name, XML_TAG_PARAM) == 0) { child 944 lib/common/nvpair.c const char *key = crm_element_value(child, XML_NVPAIR_ATTR_NAME); child 945 lib/common/nvpair.c const char *value = crm_element_value(child, XML_NVPAIR_ATTR_VALUE); child 461 lib/common/patchset.c xmlNode *child = NULL; child 552 lib/common/patchset.c for (child = pcmk__xml_first_child(clist); child != NULL; child 553 lib/common/patchset.c child = pcmk__xml_next(child)) { child 554 lib/common/patchset.c const char *name = crm_element_value(child, "name"); child 556 lib/common/patchset.c op = crm_element_value(child, XML_DIFF_OP); child 559 lib/common/patchset.c const char *value = crm_element_value(child, "value"); child 611 lib/common/patchset.c for (child = pcmk__xml_first_child(removed); child != NULL; child 612 lib/common/patchset.c child = pcmk__xml_next(child)) { child 613 lib/common/patchset.c log_data_element(log_level, __FILE__, function, __LINE__, "- ", child, child 624 lib/common/patchset.c for (child = pcmk__xml_first_child(added); child != NULL; child 625 lib/common/patchset.c child = pcmk__xml_next(child)) { child 626 lib/common/patchset.c log_data_element(log_level, __FILE__, function, __LINE__, "+ ", child, child 1243 lib/common/patchset.c xmlNode *child = NULL; child 1254 lib/common/patchset.c child = xmlDocCopyNode(change->children, match->doc, 1); child 1256 lib/common/patchset.c crm_trace("Adding %s at position %d", child->name, position); child 1257 lib/common/patchset.c xmlAddPrevSibling(match_child, child); child 1261 lib/common/patchset.c child->name, position); child 1262 lib/common/patchset.c xmlAddNextSibling(match->last, child); child 1266 lib/common/patchset.c child->name, position); child 1268 lib/common/patchset.c xmlAddChild(match, child); child 1270 lib/common/patchset.c pcmk__mark_xml_created(child); child 1408 lib/common/patchset.c xmlNode *child = NULL; child 1413 lib/common/patchset.c for (child = pcmk__xml_first_child(a_node); child != NULL; child 1414 lib/common/patchset.c child = pcmk__xml_next(child)) { child 1415 lib/common/patchset.c purge_diff_markers(child); child 502 lib/common/xml.c for (xmlNode *child = pcmk__xml_first_child(parent); child != NULL; child 503 lib/common/xml.c child = pcmk__xml_next(child)) { child 504 lib/common/xml.c if (pcmk__str_eq(node_name, (const char *) (child->name), child 506 lib/common/xml.c && ((attr_n == NULL) || attr_matches(child, attr_n, attr_v))) { child 507 lib/common/xml.c return child; child 545 lib/common/xml.c xmlNode *child = NULL; child 553 lib/common/xml.c for (child = pcmk__xml_first_child(target); child != NULL; child 554 lib/common/xml.c child = pcmk__xml_next(child)) { child 555 lib/common/xml.c fix_plus_plus_recursive(child); child 676 lib/common/xml.c xmlNode *child = NULL; child 681 lib/common/xml.c child = xmlDocCopyNode(src_node, doc, 1); child 682 lib/common/xml.c xmlAddChild(parent, child); child 683 lib/common/xml.c pcmk__mark_xml_created(child); child 684 lib/common/xml.c return child; child 688 lib/common/xml.c add_node_nocopy(xmlNode * parent, const char *name, xmlNode * child) child 690 lib/common/xml.c add_node_copy(parent, child); child 691 lib/common/xml.c free_xml(child); child 762 lib/common/xml.c free_xml_with_position(xmlNode * child, int position) child 764 lib/common/xml.c if (child != NULL) { child 766 lib/common/xml.c xmlDoc *doc = child->doc; child 767 lib/common/xml.c xml_private_t *p = child->_private; child 773 lib/common/xml.c if (doc != NULL && top == child) { child 777 lib/common/xml.c } else if (pcmk__check_acl(child, NULL, xpf_acl_write) == FALSE) { child 781 lib/common/xml.c pcmk__element_xpath(NULL, child, buffer, offset, sizeof(buffer)); child 786 lib/common/xml.c if (doc && pcmk__tracking_xml_changes(child, FALSE) child 791 lib/common/xml.c if (pcmk__element_xpath(NULL, child, buffer, offset, child 795 lib/common/xml.c crm_trace("Deleting %s %p from %p", buffer, child, doc); child 802 lib/common/xml.c if (child->type == XML_COMMENT_NODE) { child 807 lib/common/xml.c deleted_obj->position = pcmk__xml_position(child, xpf_skip); child 813 lib/common/xml.c pcmk__set_xml_doc_flag(child, xpf_dirty); child 816 lib/common/xml.c pcmk_free_xml_subtree(child); child 823 lib/common/xml.c free_xml(xmlNode * child) child 825 lib/common/xml.c free_xml_with_position(child, -1); child 1452 lib/common/xml.c xmlNode *child = NULL; child 1524 lib/common/xml.c for (child = pcmk__xml_first_child(data); child != NULL; child 1525 lib/common/xml.c child = pcmk__xml_next(child)) { child 1526 lib/common/xml.c pcmk__xe_log(log_level, file, function, line, prefix, child, child 1550 lib/common/xml.c xmlNode *child = NULL; child 1623 lib/common/xml.c for (child = pcmk__xml_first_child(data); child != NULL; child 1624 lib/common/xml.c child = pcmk__xml_next(child)) { child 1625 lib/common/xml.c log_xml_changes(log_level, file, function, line, prefix, child, child 1633 lib/common/xml.c for (child = pcmk__xml_first_child(data); child != NULL; child 1634 lib/common/xml.c child = pcmk__xml_next(child)) { child 1635 lib/common/xml.c log_xml_changes(log_level, file, function, line, prefix, child, child 2410 lib/common/xml.c xmlNode *child = cIter; child 2413 lib/common/xml.c if (can_prune_leaf(child)) { child 2414 lib/common/xml.c free_xml(child); child 2609 lib/common/xml.c update_xml_child(xmlNode * child, xmlNode * to_update) child 2614 lib/common/xml.c CRM_CHECK(child != NULL, return FALSE); child 2617 lib/common/xml.c if (!pcmk__str_eq(crm_element_name(to_update), crm_element_name(child), pcmk__str_none)) { child 2620 lib/common/xml.c } else if (!pcmk__str_eq(ID(to_update), ID(child), pcmk__str_none)) { child 2625 lib/common/xml.c crm_log_xml_trace(child, "Update match found..."); child 2627 lib/common/xml.c pcmk__xml_update(NULL, child, to_update, false); child 2630 lib/common/xml.c for (child_of_child = pcmk__xml_first_child(child); child_of_child != NULL; child 2664 lib/common/xml.c xmlNode *child = NULL; child 2666 lib/common/xml.c for (child = pcmk__xml_first_child(root); child != NULL; child 2667 lib/common/xml.c child = pcmk__xml_next(child)) { child 2668 lib/common/xml.c match_found += find_xml_children(children, child, tag, field, value, search_matches); child 2676 lib/common/xml.c replace_xml_child(xmlNode * parent, xmlNode * child, xmlNode * update, gboolean delete_only) child 2685 lib/common/xml.c CRM_CHECK(child != NULL, return FALSE); child 2689 lib/common/xml.c child_id = ID(child); child 2694 lib/common/xml.c if (!pcmk__str_eq(crm_element_name(update), crm_element_name(child), pcmk__str_casei)) { child 2703 lib/common/xml.c right_val = crm_element_value(child, p_name); child 2711 lib/common/xml.c crm_log_xml_trace(child, "Delete match found..."); child 2713 lib/common/xml.c free_xml(child); child 2721 lib/common/xml.c old = xmlReplaceNode(child, tmp); child 2732 lib/common/xml.c child = NULL; child 2736 lib/common/xml.c crm_log_xml_debug(child, "Cannot delete the search root"); child 2740 lib/common/xml.c child_of_child = pcmk__xml_first_child(child); child 2744 lib/common/xml.c can_delete = replace_xml_child(child, child_of_child, update, delete_only); child 2760 lib/common/xml.c xmlNode *child = NULL; child 2776 lib/common/xml.c for (child = pcmk__xml_first_child(input); child != NULL; child 2777 lib/common/xml.c child = pcmk__xml_next(child)) { child 2780 lib/common/xml.c sorted_xml(child, result, recursive); child 2782 lib/common/xml.c add_node_copy(result, child); child 487 lib/pacemaker/pcmk_sched_allocate.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 489 lib/pacemaker/pcmk_sched_allocate.c result = find_rsc_list(result, child, id, renamed_clones, partial, child 519 lib/pacemaker/pcmk_sched_allocate.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 521 lib/pacemaker/pcmk_sched_allocate.c result = find_rsc_list(result, child, id, renamed_clones, partial, NULL); child 2616 lib/pacemaker/pcmk_sched_allocate.c pe_resource_t * child = (pe_resource_t *) gIter->data; child 2618 lib/pacemaker/pcmk_sched_allocate.c order_first_rsc_probes(child, data_set); child 160 lib/pacemaker/pcmk_sched_bundle.c if (replica->child) { child 164 lib/pacemaker/pcmk_sched_bundle.c g_hash_table_iter_init(&iter, replica->child->allowed_nodes); child 168 lib/pacemaker/pcmk_sched_bundle.c } else if (!migration_threshold_reached(replica->child, node, child 174 lib/pacemaker/pcmk_sched_bundle.c pe__set_resource_flags(replica->child->parent, pe_rsc_allocating); child 176 lib/pacemaker/pcmk_sched_bundle.c rsc->id, replica->child->id); child 177 lib/pacemaker/pcmk_sched_bundle.c replica->child->cmds->allocate(replica->child, replica->node, child 179 lib/pacemaker/pcmk_sched_bundle.c pe__clear_resource_flags(replica->child->parent, child 184 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child) { child 187 lib/pacemaker/pcmk_sched_bundle.c g_hash_table_iter_init(&iter, bundle_data->child->allowed_nodes); child 196 lib/pacemaker/pcmk_sched_bundle.c rsc->id, bundle_data->child->id); child 197 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->allocate(bundle_data->child, prefer, data_set); child 235 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child) { child 236 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->create_actions(bundle_data->child, data_set); child 238 lib/pacemaker/pcmk_sched_bundle.c if (pcmk_is_set(bundle_data->child->flags, pe_rsc_promotable)) { child 264 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child) { child 265 lib/pacemaker/pcmk_sched_bundle.c new_rsc_order(rsc, RSC_START, bundle_data->child, RSC_START, child 267 lib/pacemaker/pcmk_sched_bundle.c new_rsc_order(rsc, RSC_STOP, bundle_data->child, RSC_STOP, child 270 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child->children) { child 271 lib/pacemaker/pcmk_sched_bundle.c new_rsc_order(bundle_data->child, RSC_STARTED, rsc, RSC_STARTED, child 273 lib/pacemaker/pcmk_sched_bundle.c new_rsc_order(bundle_data->child, RSC_STOPPED, rsc, RSC_STOPPED, child 276 lib/pacemaker/pcmk_sched_bundle.c new_rsc_order(bundle_data->child, RSC_START, rsc, RSC_STARTED, child 278 lib/pacemaker/pcmk_sched_bundle.c new_rsc_order(bundle_data->child, RSC_STOP, rsc, RSC_STOPPED, child 296 lib/pacemaker/pcmk_sched_bundle.c if (replica->child) { child 297 lib/pacemaker/pcmk_sched_bundle.c order_stop_stop(rsc, replica->child, child 331 lib/pacemaker/pcmk_sched_bundle.c if (replica->child) { child 339 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child) { child 340 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->internal_constraints(bundle_data->child, data_set); child 341 lib/pacemaker/pcmk_sched_bundle.c if (pcmk_is_set(bundle_data->child->flags, pe_rsc_promotable)) { child 345 lib/pacemaker/pcmk_sched_bundle.c new_rsc_order(bundle_data->child, RSC_DEMOTED, rsc, RSC_DEMOTED, child 349 lib/pacemaker/pcmk_sched_bundle.c new_rsc_order(rsc, RSC_DEMOTE, bundle_data->child, RSC_DEMOTE, child 353 lib/pacemaker/pcmk_sched_bundle.c new_rsc_order(bundle_data->child, RSC_PROMOTED, rsc, RSC_PROMOTED, child 357 lib/pacemaker/pcmk_sched_bundle.c new_rsc_order(rsc, RSC_PROMOTE, bundle_data->child, RSC_PROMOTE, child 543 lib/pacemaker/pcmk_sched_bundle.c && (replica->child == NULL)) { child 547 lib/pacemaker/pcmk_sched_bundle.c && (replica->child->next_role < RSC_ROLE_PROMOTED)) { child 570 lib/pacemaker/pcmk_sched_bundle.c if(data->child) { child 571 lib/pacemaker/pcmk_sched_bundle.c enum action_tasks task = get_complex_task(data->child, action->task, TRUE); child 580 lib/pacemaker/pcmk_sched_bundle.c return summary_action_flags(action, data->child->children, node); child 637 lib/pacemaker/pcmk_sched_bundle.c if (replica->child child 703 lib/pacemaker/pcmk_sched_bundle.c if (strstr(first->task, "stop") && first_replica && first_replica->child) { child 709 lib/pacemaker/pcmk_sched_bundle.c first_action = find_first_action(first_replica->child->actions, child 717 lib/pacemaker/pcmk_sched_bundle.c && then_replica && then_replica->child) { child 725 lib/pacemaker/pcmk_sched_bundle.c then_action = find_first_action(then_replica->child->actions, child 896 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child child 899 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->rsc_location(bundle_data->child, constraint); child 900 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->rsc_location = g_list_prepend(bundle_data->child->rsc_location, child 914 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child) { child 915 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->expand(bundle_data->child, data_set); child 999 lib/pacemaker/pcmk_sched_bundle.c if (replica->child && (node->details == replica->node->details)) { child 1000 lib/pacemaker/pcmk_sched_bundle.c any_created |= replica->child->cmds->create_probe(replica->child, child 1099 lib/pacemaker/pcmk_sched_bundle.c if (replica->child) { child 1100 lib/pacemaker/pcmk_sched_bundle.c LogActions(replica->child, data_set); child 19 lib/pacemaker/pcmk_sched_clone.c static void append_parent_colocation(pe_resource_t * rsc, pe_resource_t * child, gboolean all); child 540 lib/pacemaker/pcmk_sched_clone.c append_parent_colocation(pe_resource_t * rsc, pe_resource_t * child, gboolean all) child 550 lib/pacemaker/pcmk_sched_clone.c child->rsc_cons = g_list_prepend(child->rsc_cons, cons); child 558 lib/pacemaker/pcmk_sched_clone.c if (!pcmk__colocation_has_influence(cons, child)) { child 562 lib/pacemaker/pcmk_sched_clone.c child->rsc_cons_lhs = g_list_prepend(child->rsc_cons_lhs, cons); child 605 lib/pacemaker/pcmk_sched_clone.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 609 lib/pacemaker/pcmk_sched_clone.c if ((child->running_on == NULL) child 610 lib/pacemaker/pcmk_sched_clone.c || !pcmk_is_set(child->flags, pe_rsc_provisional) child 611 lib/pacemaker/pcmk_sched_clone.c || pcmk_is_set(child->flags, pe_rsc_failed)) { child 616 lib/pacemaker/pcmk_sched_clone.c child_node = pe__current_node(child); child 617 lib/pacemaker/pcmk_sched_clone.c local_node = parent_node_instance(child, child_node); child 621 lib/pacemaker/pcmk_sched_clone.c child->id, child_node->details->uname, max - allocated, child 626 lib/pacemaker/pcmk_sched_clone.c child_node->details->uname, child->id); child 637 lib/pacemaker/pcmk_sched_clone.c if (allocate_instance(child, child_node, all_coloc, per_host_max, child 639 lib/pacemaker/pcmk_sched_clone.c pe_rsc_trace(rsc, "Pre-allocated %s to %s", child->id, child 648 lib/pacemaker/pcmk_sched_clone.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 650 lib/pacemaker/pcmk_sched_clone.c if (child->running_on != NULL) { child 651 lib/pacemaker/pcmk_sched_clone.c pe_node_t *child_node = pe__current_node(child); child 652 lib/pacemaker/pcmk_sched_clone.c pe_node_t *local_node = parent_node_instance(child, child_node); child 656 lib/pacemaker/pcmk_sched_clone.c child->id, child_node->details->uname); child 660 lib/pacemaker/pcmk_sched_clone.c if (!pcmk_is_set(child->flags, pe_rsc_provisional)) { child 662 lib/pacemaker/pcmk_sched_clone.c pe_rsc_debug(rsc, "Child %s not allocated - limit reached %d %d", child->id, allocated, max); child 663 lib/pacemaker/pcmk_sched_clone.c resource_location(child, NULL, -INFINITY, "clone:limit_reached", data_set); child 665 lib/pacemaker/pcmk_sched_clone.c if (allocate_instance(child, NULL, all_coloc, per_host_max, child 752 lib/pacemaker/pcmk_sched_clone.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 754 lib/pacemaker/pcmk_sched_clone.c clone_update_pseudo_status(child, stopping, starting, active); child 875 lib/pacemaker/pcmk_sched_clone.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 877 lib/pacemaker/pcmk_sched_clone.c stop = find_rsc_action(child, RSC_STOP, active_only, NULL); child 886 lib/pacemaker/pcmk_sched_clone.c start = find_rsc_action(child, RSC_START, active_only, NULL); child 1221 lib/pacemaker/pcmk_sched_clone.c pe_resource_t *child = (pe_resource_t *) action->rsc->children->data; child 1243 lib/pacemaker/pcmk_sched_clone.c result = get_complex_task(child, task_mutable, TRUE); child 1250 lib/pacemaker/pcmk_sched_clone.c result = get_complex_task(child, action->task, TRUE); child 1273 lib/pacemaker/pcmk_sched_clone.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 1275 lib/pacemaker/pcmk_sched_clone.c child_action = find_first_action(child->actions, NULL, task_s, child->children ? NULL : node); child 1276 lib/pacemaker/pcmk_sched_clone.c pe_rsc_trace(action->rsc, "Checking for %s in %s on %s (%s)", task_s, child->id, child 1279 lib/pacemaker/pcmk_sched_clone.c enum pe_action_flags child_flags = child->cmds->action_flags(child_action, node); child 1283 lib/pacemaker/pcmk_sched_clone.c pe_rsc_trace(child, "%s is mandatory because of %s", action->uuid, child 1396 lib/pacemaker/pcmk_sched_clone.c pe_resource_t *child = (pe_resource_t *) child_iter->data; child 1398 lib/pacemaker/pcmk_sched_clone.c if (rsc_known_on(child, node)) { child 1422 lib/pacemaker/pcmk_sched_clone.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 1424 lib/pacemaker/pcmk_sched_clone.c if (rsc_known_on(child, node)) { child 1425 lib/pacemaker/pcmk_sched_clone.c return child; child 1441 lib/pacemaker/pcmk_sched_clone.c pe_resource_t *child = (pe_resource_t *) child_iter->data; child 1443 lib/pacemaker/pcmk_sched_clone.c any_created |= child->cmds->create_probe(child, node, complete, force, child 1456 lib/pacemaker/pcmk_sched_clone.c pe_resource_t *child = find_instance_on(rsc, node); child 1459 lib/pacemaker/pcmk_sched_clone.c if (child == NULL) { child 1460 lib/pacemaker/pcmk_sched_clone.c for (GList *child_iter = rsc->children; child_iter && !child; child 1469 lib/pacemaker/pcmk_sched_clone.c child = child_rsc; child 1476 lib/pacemaker/pcmk_sched_clone.c if (child == NULL) { child 1477 lib/pacemaker/pcmk_sched_clone.c child = rsc->children->data; child 1479 lib/pacemaker/pcmk_sched_clone.c CRM_ASSERT(child); child 1480 lib/pacemaker/pcmk_sched_clone.c return child->cmds->create_probe(child, node, complete, force, data_set); child 467 lib/pacemaker/pcmk_sched_constraints.c pe_resource_t *child = rIter->data; child 469 lib/pacemaker/pcmk_sched_constraints.c custom_action_order(child, pcmk__op_key(child->id, action_first, 0), child 510 lib/pacemaker/pcmk_sched_graph.c pe_resource_t *child = (pe_resource_t *)gIter->data; child 511 lib/pacemaker/pcmk_sched_graph.c pe_action_t *start = find_first_action(child->actions, NULL, RSC_START, NULL); child 136 lib/pacemaker/pcmk_sched_group.c void group_update_pseudo_status(pe_resource_t * parent, pe_resource_t * child); child 185 lib/pacemaker/pcmk_sched_group.c group_update_pseudo_status(pe_resource_t * parent, pe_resource_t * child) child 187 lib/pacemaker/pcmk_sched_group.c GList *gIter = child->actions; child 431 lib/pacemaker/pcmk_sched_group.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 432 lib/pacemaker/pcmk_sched_group.c enum action_tasks task = get_complex_task(child, action->task, TRUE); child 434 lib/pacemaker/pcmk_sched_group.c pe_action_t *child_action = find_first_action(child->actions, NULL, task_s, node); child 437 lib/pacemaker/pcmk_sched_group.c enum pe_action_flags child_flags = child->cmds->action_flags(child_action, node); child 460 lib/pacemaker/pcmk_sched_group.c action->uuid, task_s, child->id); child 482 lib/pacemaker/pcmk_sched_group.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 483 lib/pacemaker/pcmk_sched_group.c pe_action_t *child_action = find_first_action(child->actions, NULL, then->task, node); child 486 lib/pacemaker/pcmk_sched_group.c changed |= child->cmds->update_actions(first, child_action, node, child 409 lib/pacemaker/pcmk_sched_notif.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 411 lib/pacemaker/pcmk_sched_notif.c collect_notification_data(child, state, activity, n_data); child 647 lib/pacemaker/pcmk_sched_notif.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 649 lib/pacemaker/pcmk_sched_notif.c create_notifications(child, n_data, data_set); child 24 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t * rsc, pe_resource_t * child, pe_resource_t * last, child 27 lib/pacemaker/pcmk_sched_promotable.c if (child == NULL) { child 37 lib/pacemaker/pcmk_sched_promotable.c new_rsc_order(child, RSC_PROMOTE, rsc, RSC_PROMOTED, type, data_set); child 40 lib/pacemaker/pcmk_sched_promotable.c new_rsc_order(rsc, RSC_PROMOTE, child, RSC_PROMOTE, type, data_set); child 50 lib/pacemaker/pcmk_sched_promotable.c order_start_start(last, child, type); child 51 lib/pacemaker/pcmk_sched_promotable.c new_rsc_order(last, RSC_PROMOTE, child, RSC_PROMOTE, type, data_set); child 60 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t * rsc, pe_resource_t * child, pe_resource_t * last, child 63 lib/pacemaker/pcmk_sched_promotable.c if (child == NULL) { child 73 lib/pacemaker/pcmk_sched_promotable.c new_rsc_order(child, RSC_DEMOTE, rsc, RSC_DEMOTED, pe_order_implies_then_printed, data_set); child 76 lib/pacemaker/pcmk_sched_promotable.c new_rsc_order(rsc, RSC_DEMOTE, child, RSC_DEMOTE, pe_order_implies_first_printed, data_set); child 82 lib/pacemaker/pcmk_sched_promotable.c new_rsc_order(child, RSC_DEMOTE, last, RSC_DEMOTE, type, data_set); child 87 lib/pacemaker/pcmk_sched_promotable.c new_rsc_order(child, RSC_DEMOTE, rsc, RSC_DEMOTED, type, data_set); child 103 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 105 lib/pacemaker/pcmk_sched_promotable.c check_promotable_actions(child, demoting, promoting); child 133 lib/pacemaker/pcmk_sched_promotable.c apply_promoted_location(pe_resource_t *child, GList *location_constraints, child 136 lib/pacemaker/pcmk_sched_promotable.c CRM_CHECK(child && chosen, return); child 142 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(child, "Applying %s to %s", cons->id, child->id); child 146 lib/pacemaker/pcmk_sched_promotable.c int new_priority = pe__add_scores(child->priority, child 149 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(child, "\t%s[%s]: %d -> %d (%d)", child 150 lib/pacemaker/pcmk_sched_promotable.c child->id, cons_node->details->uname, child->priority, child 152 lib/pacemaker/pcmk_sched_promotable.c child->priority = new_priority; child 184 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 186 lib/pacemaker/pcmk_sched_promotable.c if (node_to_be_promoted_on(child) == NULL) { child 187 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc, "Child %s of %s can't be promoted", child->id, rsc->id); child 299 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 301 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc, "Sort index: %s = %d", child->id, child->sort_index); child 307 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 309 lib/pacemaker/pcmk_sched_promotable.c chosen = child->fns->location(child, NULL, FALSE); child 310 lib/pacemaker/pcmk_sched_promotable.c if (chosen == NULL || child->sort_index < 0) { child 311 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc, "Skipping %s", child->id); child 318 lib/pacemaker/pcmk_sched_promotable.c score2char_stack(child->sort_index, score, len); child 320 lib/pacemaker/pcmk_sched_promotable.c node->details->uname, child->id); child 321 lib/pacemaker/pcmk_sched_promotable.c node->weight = pe__add_scores(child->sort_index, node->weight); child 386 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 388 lib/pacemaker/pcmk_sched_promotable.c chosen = child->fns->location(child, NULL, FALSE); child 389 lib/pacemaker/pcmk_sched_promotable.c if (!pcmk_is_set(child->flags, pe_rsc_managed) child 390 lib/pacemaker/pcmk_sched_promotable.c && (child->next_role == RSC_ROLE_PROMOTED)) { child 391 lib/pacemaker/pcmk_sched_promotable.c child->sort_index = INFINITY; child 393 lib/pacemaker/pcmk_sched_promotable.c } else if (chosen == NULL || child->sort_index < 0) { child 394 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc, "%s: %d", child->id, child->sort_index); child 400 lib/pacemaker/pcmk_sched_promotable.c child->sort_index = node->weight; child 402 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc, "Set sort index: %s = %d", child->id, child->sort_index); child 421 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t *child = rIter->data; child 422 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t *active = parent->fns->find_rsc(child, key, node, pe_find_clone|pe_find_current); child 438 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t *child = rIter->data; child 448 lib/pacemaker/pcmk_sched_promotable.c rsc = parent->fns->find_rsc(child, key, NULL, pe_find_clone); child 490 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 491 lib/pacemaker/pcmk_sched_promotable.c int c_score = promotion_score(child, node, not_set_value); child 216 lib/pacemaker/pcmk_sched_utilization.c pe_resource_t *child = (pe_resource_t *) gIter1->data; child 219 lib/pacemaker/pcmk_sched_utilization.c if (g_list_find(all_rscs, child)) { child 224 lib/pacemaker/pcmk_sched_utilization.c gIter2 = child->children; child 230 lib/pacemaker/pcmk_sched_utilization.c orig_rsc->id, child->id); child 231 lib/pacemaker/pcmk_sched_utilization.c add_unallocated_utilization(all_utilization, child, all_rscs, orig_rsc); child 281 lib/pengine/bundle.c if (replica->child) { child 303 lib/pengine/bundle.c } else if ((child != NULL) && data->untrusted) { child 447 lib/pengine/bundle.c if (replica->child) { child 469 lib/pengine/bundle.c } else if ((child != NULL) && data->untrusted) { child 616 lib/pengine/bundle.c if (replica->child) { child 638 lib/pengine/bundle.c } else if ((child != NULL) && data->untrusted) { child 687 lib/pengine/bundle.c GList *child; child 689 lib/pengine/bundle.c for (child = rsc->children; child != NULL; child = child->next) { child 690 lib/pengine/bundle.c disallow_node((pe_resource_t *) (child->data), uname); child 700 lib/pengine/bundle.c if (replica->child && valid_network(data)) { child 714 lib/pengine/bundle.c replica->child->id, replica->offset); child 787 lib/pengine/bundle.c if (replica->child->allowed_nodes != NULL) { child 788 lib/pengine/bundle.c g_hash_table_destroy(replica->child->allowed_nodes); child 790 lib/pengine/bundle.c replica->child->allowed_nodes = pcmk__strkey_table(NULL, free); child 791 lib/pengine/bundle.c g_hash_table_insert(replica->child->allowed_nodes, child 798 lib/pengine/bundle.c g_hash_table_insert(replica->child->parent->allowed_nodes, child 871 lib/pengine/bundle.c if (replica->child && replica->ipaddr) { child 872 lib/pengine/bundle.c add_hash_param(replica->child->meta, "external-ip", replica->ipaddr); child 1210 lib/pengine/bundle.c bundle_data->child = new_rsc; child 1259 lib/pengine/bundle.c for (childIter = bundle_data->child->children; childIter != NULL; child 1264 lib/pengine/bundle.c replica->child = childIter->data; child 1265 lib/pengine/bundle.c replica->child->exclusive_discover = TRUE; child 1269 lib/pengine/bundle.c if (pcmk_is_set(replica->child->flags, pe_rsc_notify)) { child 1270 lib/pengine/bundle.c pe__set_resource_flags(bundle_data->child, pe_rsc_notify); child 1277 lib/pengine/bundle.c bundle_data->attribute_target = g_hash_table_lookup(replica->child->meta, child 1284 lib/pengine/bundle.c g_hash_table_replace(bundle_data->child->meta, child 1317 lib/pengine/bundle.c if (bundle_data->child) { child 1318 lib/pengine/bundle.c rsc->children = g_list_append(rsc->children, bundle_data->child); child 1354 lib/pengine/bundle.c rsc_active = replica_resource_active(replica->child, all); child 1399 lib/pengine/bundle.c return replica->child; child 1464 lib/pengine/bundle.c print_rsc_in_list(replica->child, child_text, options, print_data); child 1511 lib/pengine/bundle.c print_child = replica->child != NULL && child 1512 lib/pengine/bundle.c !replica->child->fns->is_filtered(replica->child, only_rsc, print_everything); child 1545 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->child->xml), show_opts, child 1546 lib/pengine/bundle.c replica->child, only_node, only_rsc); child 1573 lib/pengine/bundle.c pe_resource_t *rsc = replica->child; child 1633 lib/pengine/bundle.c print_child = replica->child != NULL && child 1634 lib/pengine/bundle.c !replica->child->fns->is_filtered(replica->child, only_rsc, print_everything); child 1662 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->child->xml), child 1663 lib/pengine/bundle.c new_show_opts, replica->child, only_node, only_rsc); child 1701 lib/pengine/bundle.c pe_resource_t *rsc = replica->child; child 1761 lib/pengine/bundle.c print_child = replica->child != NULL && child 1762 lib/pengine/bundle.c !replica->child->fns->is_filtered(replica->child, only_rsc, print_everything); child 1792 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->child->xml), child 1793 lib/pengine/bundle.c new_show_opts, replica->child, only_node, only_rsc); child 1830 lib/pengine/bundle.c pe_resource_t *rsc = replica->child; child 1904 lib/pengine/bundle.c print_rsc_in_list(replica->child, child_text, options, print_data); child 1983 lib/pengine/bundle.c if(bundle_data->child) { child 1984 lib/pengine/bundle.c free_xml(bundle_data->child->xml); child 1985 lib/pengine/bundle.c bundle_data->child->xml = NULL; child 1986 lib/pengine/bundle.c bundle_data->child->fns->free(bundle_data->child); child 2030 lib/pengine/bundle.c if (replica->child) { child 2031 lib/pengine/bundle.c replica->child->fns->count(replica->child); child 2059 lib/pengine/bundle.c } else if (replica->child != NULL && !replica->child->fns->is_filtered(replica->child, only_rsc, FALSE)) { child 87 lib/pengine/clone.c pe_resource_t *child = NULL; child 95 lib/pengine/clone.c child = pe_find_resource(rsc->children, child_id); child 98 lib/pengine/clone.c return child; child 886 lib/pengine/complex.c is_parent(pe_resource_t *child, pe_resource_t *rsc) child 888 lib/pengine/complex.c pe_resource_t *parent = child; child 70 lib/pengine/group.c skip_child_rsc(pe_resource_t *rsc, pe_resource_t *child, gboolean parent_passes, child 75 lib/pengine/group.c bool child_filtered = child->fns->is_filtered(child, only_rsc, FALSE); child 76 lib/pengine/group.c bool child_active = child->fns->active(child, FALSE); child 165 lib/pengine/native.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 167 lib/pengine/native.c pe__clear_resource_flags(child, pe_rsc_managed); child 168 lib/pengine/native.c pe__set_resource_flags(child, pe_rsc_block); child 192 lib/pengine/native.c for (GList *child = rsc->children; child != NULL; child = child->next) { child 193 lib/pengine/native.c recursive_clear_unique((pe_resource_t *) child->data); child 312 lib/pengine/native.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 314 lib/pengine/native.c result = rsc->fns->find_rsc(child, id, on_node, flags); child 1061 lib/pengine/native.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 1063 lib/pengine/native.c child->fns->location(child, &result, current); child 66 lib/pengine/rules_alerts.c xmlNode *child; child 72 lib/pengine/rules_alerts.c child = first_named_child(basenode, XML_TAG_ATTR_SETS); child 73 lib/pengine/rules_alerts.c if (child == NULL) { child 81 lib/pengine/rules_alerts.c for (child = first_named_child(child, XML_CIB_TAG_NVPAIR); child != NULL; child 82 lib/pengine/rules_alerts.c child = crm_next_same_xml(child)) { child 84 lib/pengine/rules_alerts.c const char *name = crm_element_value(child, XML_NVPAIR_ATTR_NAME); child 85 lib/pengine/rules_alerts.c const char *value = crm_element_value(child, XML_NVPAIR_ATTR_VALUE); child 1760 lib/pengine/unpack.c pe_resource_t *child = rIter->data; child 1777 lib/pengine/unpack.c child->fns->location(child, &locations, 2); child 1793 lib/pengine/unpack.c rsc = parent->fns->find_rsc(child, rsc_id, NULL, pe_find_clone); child 1816 lib/pengine/unpack.c pe_rsc_trace(parent, "Resource %s, skip inactive", child->id); child 1818 lib/pengine/unpack.c && !pcmk_is_set(child->flags, pe_rsc_block)) { child 1820 lib/pengine/unpack.c inactive_instance = parent->fns->find_rsc(child, rsc_id, NULL, child 326 lib/pengine/utils.c pe_resource_t *child = (pe_resource_t *) gIter->data; child 328 lib/pengine/utils.c pe__show_node_weights_as(file, function, line, to_log, child, child 329 lib/pengine/utils.c comment, child->allowed_nodes, data_set); child 855 lib/pengine/utils.c xmlNode *child = NULL; child 869 lib/pengine/utils.c for (child = first_named_child(rsc->ops_xml, XML_ATTR_OP); child 870 lib/pengine/utils.c child != NULL; child = crm_next_same_xml(child)) { child 871 lib/pengine/utils.c if (pcmk__str_eq(action, crm_element_value(child, XML_NVPAIR_ATTR_NAME), child 873 lib/pengine/utils.c timeout_spec = crm_element_value(child, XML_ATTR_TIMEOUT); child 49 lib/pengine/variant.h pe_resource_t *child; child 103 lib/pengine/variant.h pe_resource_t *child; child 382 tools/attrd_updater.c xmlNode *child; child 387 tools/attrd_updater.c for (child = pcmk__xml_first_child(reply); child != NULL; child 388 tools/attrd_updater.c child = pcmk__xml_next(child)) { child 390 tools/attrd_updater.c if (!pcmk__str_eq((const char *)child->name, XML_CIB_TAG_NODE, child 392 tools/attrd_updater.c crm_warn("Ignoring unexpected %s tag in query reply", child->name); child 394 tools/attrd_updater.c reply_host = crm_element_value(child, PCMK__XA_ATTR_NODE_NAME); child 395 tools/attrd_updater.c reply_value = crm_element_value(child, PCMK__XA_ATTR_VALUE); child 366 tools/cibadmin.c xmlNode *child = NULL; child 368 tools/cibadmin.c for (child = xml->children; child; child = child->next) { child 369 tools/cibadmin.c print_xml_output(child); child 980 tools/crm_resource.c pe_resource_t *child = (pe_resource_t *)iter->data; child 981 tools/crm_resource.c enum rsc_role_e child_role = child->fns->state(child, TRUE); child 985 tools/crm_resource.c current = pe__current_node(child); child 82 tools/crm_resource_print.c pe_resource_t *child = (pe_resource_t *) lpc->data; child 84 tools/crm_resource_print.c cli_resource_print_cts(out, child); child 745 tools/crm_resource_print.c pe_resource_t *child = (pe_resource_t *) lpc->data; child 746 tools/crm_resource_print.c add_resource_name(out, child); child 51 tools/crm_resource_runtime.c pe_resource_t *child = (pe_resource_t *) iter->data; child 53 tools/crm_resource_runtime.c for (GList *iter2 = child->running_on; iter2 != NULL; iter2 = iter2->next) { child 58 tools/crm_resource_runtime.c child->fns->state(child, TRUE) == RSC_ROLE_PROMOTED; child 158 tools/crm_resource_runtime.c xmlNode *child = NULL; child 163 tools/crm_resource_runtime.c for (child = pcmk__xml_first_child(xml_search); child != NULL; child 164 tools/crm_resource_runtime.c child = pcmk__xml_next(child)) { child 166 tools/crm_resource_runtime.c crm_element_value(child, XML_NVPAIR_ATTR_VALUE), ID(child)); child 254 tools/crm_resource_runtime.c pe_resource_t *child = rsc->children->data; child 256 tools/crm_resource_runtime.c if(child->variant == pe_native) { child 257 tools/crm_resource_runtime.c lookup_id = clone_strip(child->id); /* Could be a cloned group! */ child 262 tools/crm_resource_runtime.c rsc = child; child 738 tools/crm_resource_runtime.c pe_resource_t *child = (pe_resource_t *) lpc->data; child 740 tools/crm_resource_runtime.c rc = cli_resource_delete(controld_api, host_uname, child, operation, child 1198 tools/crm_resource_runtime.c pe_resource_t *child = (pe_resource_t *)iter->data; child 1200 tools/crm_resource_runtime.c delay = max_delay_for_resource(data_set, child); child 1203 tools/crm_resource_runtime.c crm_trace("Calculated new delay of %.1fs due to %s", seconds, child->id); child 1924 tools/crm_resource_runtime.c pe_resource_t *child = (pe_resource_t *)iter->data; child 1925 tools/crm_resource_runtime.c enum rsc_role_e child_role = child->fns->state(child, TRUE); child 1928 tools/crm_resource_runtime.c rsc = child; child 1929 tools/crm_resource_runtime.c promoted_node = pe__current_node(child);