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

Function dt_is_overlay

src/commonlib/device_tree.c:2157–2171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2155}
2156
2157bool dt_is_overlay(struct device_tree *tree)
2158{
2159 /* The actual overlaid nodes/props are in an __overlay__ child node. */
2160 const char * const overlay_path[] = { "__overlay__", NULL };
2161 struct device_tree_node *fragment;
2162
2163 if (!tree)
2164 return false;
2165
2166 list_for_each(fragment, tree->root->children, list_node)
2167 if (dt_find_node(fragment, overlay_path, NULL, NULL, 0))
2168 return true;
2169
2170 return false;
2171}
2172
2173struct device_tree_node *dt_add_reserved_memory_region(struct device_tree *tree,
2174 const char *name, const char *compatible, uint64_t addr, uint64_t size,

Callers

nothing calls this directly

Calls 1

dt_find_nodeFunction · 0.85

Tested by

no test coverage detected