|
NAMEOF_child , OF_parent ,
OF_peer —
navigate device tree
SYNOPSIS#include <dev/ofw/ofw_bus.h>
#include
<dev/ofw/ofw_bus_subr.h>
phandle_t
phandle_t
phandle_t
DESCRIPTIONOF_child () returns the phandle value of the first child
of the node. Zero is returned if there are no child
nodes.
EXAMPLESphandle_t node, child; ... for (child = OF_child(node); child != 0; child = OF_peer(child) { ... } SEE ALSOOF_finddevice(9)AUTHORSThis manual page was written by Oleksandr Tymoshenko <gonzo@FreeBSD.org>.
Visit the GSP FreeBSD Man Page Interface. |