FreeBSD/sys/dev/ofw/ofw_standard.c
/* Return the first child of this node or 0. */
Return the first child of this node or 0.
Return the first child of this node or 0 .
static phandle_t
ofw_std_child(ofw_t ofw, phandle_t node)
{
	struct {
		cell_t name;
		cell_t nargs;
		cell_t nreturns;
		cell_t node;
		cell_t child;
	} args = {
		(cell_t)"child",
		1,
		1,
	};
	args.node = node;
	if (openfirmware(&args) == -1)
		return (-1);
	return (args.child);
}
static phandle_t ofw_std_child ( ofw_t ofw , phandle_t node ) { struct { cell_t name ; cell_t nargs ; cell_t nreturns ; cell_t node ; cell_t child ; } args = { ( cell_t ) " " , 1 , 1 , } ; args . node = node ; if ( openfirmware ( & args ) == -1 ) return ( -1 ) ; return ( args . child ) ; }
Return the first child of this node or 0.
Return the first child of this node or 0 .