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

Function rt_ofw_get_next_child

components/drivers/ofw/base.c:805–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

803}
804
805struct rt_ofw_node *rt_ofw_get_next_child(const struct rt_ofw_node *parent, struct rt_ofw_node *prev)
806{
807 struct rt_ofw_node *next = RT_NULL;
808
809 if (parent)
810 {
811 next = prev ? prev->sibling : parent->child;
812 rt_ofw_node_put(prev);
813 rt_ofw_node_get(next);
814 }
815
816 return next;
817}
818
819struct rt_ofw_node *rt_ofw_get_next_available_child(const struct rt_ofw_node *parent, struct rt_ofw_node *prev)
820{

Callers 2

i2c_bus_scan_clientsFunction · 0.85

Calls 2

rt_ofw_node_putFunction · 0.85
rt_ofw_node_getFunction · 0.85

Tested by

no test coverage detected