MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / dtb_node_find_compatible_node

Function dtb_node_find_compatible_node

components/legacy/fdt/src/dtb_access.c:299–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299struct dtb_node *dtb_node_find_compatible_node(struct dtb_node *from, const char *compatible)
300{
301 struct dtb_node *dn;
302
303 for_each_of_allnodes_from(from, dn)
304 {
305 if (dtb_node_get_dtb_node_compatible_match(dn, compatible) &&
306 dtb_node_get(dn))
307 break;
308 }
309 dtb_node_put(from);
310
311 return dn;
312}
313
314void *dtb_node_get_dtb_node_property_value(const struct dtb_node *dtb_node, const char *property_name, int *property_size)
315{

Callers

nothing calls this directly

Calls 2

dtb_node_putFunction · 0.85

Tested by

no test coverage detected