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

Function rt_ofw_find_node_by_name

components/drivers/ofw/base.c:523–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523struct rt_ofw_node *rt_ofw_find_node_by_name(struct rt_ofw_node *from, const char *name)
524{
525 struct rt_ofw_node *np = RT_NULL;
526
527 if (name)
528 {
529 rt_ofw_foreach_nodes(from, np)
530 {
531 if (np->name && !rt_strcmp(np->name, name))
532 {
533 np = rt_ofw_node_get(np);
534 break;
535 }
536 }
537 }
538
539 return np;
540}
541
542struct rt_ofw_node *rt_ofw_find_node_by_type(struct rt_ofw_node *from, const char *type)
543{

Callers

nothing calls this directly

Calls 2

rt_strcmpFunction · 0.85
rt_ofw_node_getFunction · 0.85

Tested by

no test coverage detected