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

Function pe_find_node

lib/pengine/status.c:278–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278node_t *
279pe_find_node(GListPtr nodes, const char *uname)
280{
281 GListPtr gIter = nodes;
282
283 for (; gIter != NULL; gIter = gIter->next) {
284 node_t *node = (node_t *) gIter->data;
285
286 if (node && safe_str_eq(node->details->uname, uname)) {
287 return node;
288 }
289 }
290 /* error */
291 return NULL;
292}

Callers 7

mainFunction · 0.85
pe_find_node_anyFunction · 0.85
unpack_nodesFunction · 0.85
unpack_domainsFunction · 0.85
unpack_rsc_opFunction · 0.85
find_operationsFunction · 0.85
unpack_rsc_locationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected