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.
“ | If you have any trouble sounding condescending, find a Unix user to show you how it's done. | ” |
— Scott Adams |