FreeBSD/sys/boot/ofw/libofw/openfirm.c
/* Get the length of a property of a package. */
Get the length of a property of a package.
Get the length of a property of a package .
int
OF_getproplen(phandle_t package, char *propname)
{
	static struct {
		cell_t name;
		cell_t nargs;
		cell_t nreturns;
		cell_t package;
		cell_t propname;
		cell_t proplen;
	} args = {
		(cell_t)"getproplen",
		2,
		1,
	};
	args.package = package;
	args.propname = (cell_t)propname;
	if (openfirmware(&args) == -1)
		return (-1);
	return (args.proplen);
}
int OF_getproplen ( phandle_t package , char * propname ) { static struct { cell_t name ; cell_t nargs ; cell_t nreturns ; cell_t package ; cell_t propname ; cell_t proplen ; } args = { ( cell_t ) " " , 2 , 1 , } ; args . package = package ; args . propname = ( cell_t ) propname ; if ( openfirmware ( & args ) == -1 ) return ( -1 ) ; return ( args . proplen ) ; }
Get the length of a property of a package.
Get the length of a property of a package .