MCPcopy Create free account
hub / github.com/coreboot/coreboot / fmd_count_nodes

Function fmd_count_nodes

util/cbfstool/fmd.c:340–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340size_t fmd_count_nodes(const struct flashmap_descriptor *tree)
341{
342 assert(tree);
343
344 if (!tree->list_len)
345 return 1;
346
347 unsigned count = 1;
348 fmd_foreach_child(lower, tree)
349 count += fmd_count_nodes(lower);
350 return count;
351}
352
353const struct flashmap_descriptor *fmd_find_node(
354 const struct flashmap_descriptor *root, const char *name)

Callers 1

fmd_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected