FreeBSD/sys/dev/ofw/ofw_fdt.c
/* Return the parent of this node or 0. */
Return the parent of this node or 0.
Return the parent of this node or 0 .
static phandle_t
ofw_fdt_parent(ofw_t ofw, phandle_t node)
{
	int offset, paroffset;
	offset = fdt_phandle_offset(node);
	if (offset < 0)
		return (0);
	paroffset = fdt_parent_offset(fdtp, offset);
	return (fdt_offset_phandle(paroffset));
}
static phandle_t ofw_fdt_parent ( ofw_t ofw , phandle_t node ) { int offset , paroffset ; offset = fdt_phandle_offset ( node ) ; if ( offset < 0 ) return ( 0 ) ; paroffset = fdt_parent_offset ( fdtp , offset ) ; return ( fdt_offset_phandle ( paroffset ) ) ; }
Return the parent of this node or 0.
Return the parent of this node or 0 .