Main index | Section 9 | Options |
#include <dev/ofw/ofw_bus.h>
#include <dev/ofw/ofw_bus_subr.h>
OF_child() returns the phandle value of the first child of the node. Zero is returned if there are no child nodes.
OF_parent() returns the phandle for the parent of the node. Zero is returned if node is the root node.
OF_peer() returns the phandle value of the next sibling of the node. Zero is returned if there is no sibling node.
phandle_t node, child; ... for (child = OF_child(node); child != 0; child = OF_peer(child) { ... }
OF_CHILD (9) | April 9, 2018 |
Main index | Section 9 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. | ” |
— Charles Babbage |