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

Function rt_ofw_get_next_parent

components/drivers/ofw/base.c:792–803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790}
791
792struct rt_ofw_node *rt_ofw_get_next_parent(struct rt_ofw_node *prev)
793{
794 struct rt_ofw_node *next = RT_NULL;
795
796 if (prev)
797 {
798 next = rt_ofw_node_get(prev->parent);
799 rt_ofw_node_put(prev);
800 }
801
802 return next;
803}
804
805struct rt_ofw_node *rt_ofw_get_next_child(const struct rt_ofw_node *parent, struct rt_ofw_node *prev)
806{

Callers 1

rt_ofw_find_irq_parentFunction · 0.85

Calls 2

rt_ofw_node_getFunction · 0.85
rt_ofw_node_putFunction · 0.85

Tested by

no test coverage detected