MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / pe_find_node_id

Function pe_find_node_id

lib/pengine/status.c:262–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262node_t *
263pe_find_node_id(GListPtr nodes, const char *id)
264{
265 GListPtr gIter = nodes;
266
267 for (; gIter != NULL; gIter = gIter->next) {
268 node_t *node = (node_t *) gIter->data;
269
270 if (node && safe_str_eq(node->details->id, id)) {
271 return node;
272 }
273 }
274 /* error */
275 return NULL;
276}
277
278node_t *
279pe_find_node(GListPtr nodes, const char *uname)

Callers 13

print_node_summaryFunction · 0.85
node_list_excludeFunction · 0.85
pe_find_node_anyFunction · 0.85
unpack_domainsFunction · 0.85
unpack_rsc_opFunction · 0.85
native_locationFunction · 0.85
check_actions_forFunction · 0.85
check_actionsFunction · 0.85
common_apply_stickinessFunction · 0.85
rsc_known_onFunction · 0.85
master_scoreFunction · 0.85
generate_location_ruleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected