sys/kern/subr_bus.c
/**
 * @brief Get the number of devices in a devclass
 *
 * @param dc		the devclass to examine
 */
@brief Get the number of devices in a devclass
@param dc            the devclass to examine
@brief Get the number of devices in a devclass @param dc the devclass to examine
int
devclass_get_count(devclass_t dc)
{
	int count, i;
	count = 0;
	for (i = 0; i < dc->maxunit; i++)
		if (dc->devices[i])
			count++;
	return (count);
}
int devclass_get_count ( devclass_t dc ) { int count , i ; count = 0 ; for ( i = 0 ; i < dc -> maxunit ; i ++ ) if ( dc -> devices [ i ] ) count ++ ; return ( count ) ; }
@brief Get the number of devices in a devclass
 @param dc            the devclass to examine
@brief Get the number of devices in a devclass @param dc the devclass to examine