FreeBSD/sys/kern/subr_bus.c
/**
 * @brief Get the maximum unit number used in a devclass
 *
 * Note that this is one greater than the highest currently-allocated
 * unit.  If a null devclass_t is passed in, -1 is returned to indicate
 * that not even the devclass has been allocated yet.
 *
 * @param dc		the devclass to examine
 */
@brief Get the maximum unit number used in a devclass
Note that this is one greater than the highest currently-allocated
unit.  If a null devclass_t is passed in, -1 is returned to indicate
that not even the devclass has been allocated yet.

@param dc            the devclass to examine
@brief Get the maximum unit number used in a devclass Note that this is one greater than the highest currently - allocated unit . If a null devclass_t is passed in - 1 is returned to indicate that not even the devclass has been allocated yet . @param dc the devclass to examine
int
devclass_get_maxunit(devclass_t dc)
{
	if (dc == NULL)
		return (-1);
	return (dc->maxunit);
}
int devclass_get_maxunit ( devclass_t dc ) { if ( dc == NULL ) return ( -1 ) ; return ( dc -> maxunit ) ; }
@brief Get the maximum unit number used in a devclass
 Note that this is one greater than the highest currently-allocated
 unit.
@brief Get the maximum unit number used in a devclass Note that this is one greater than the highest currently - allocated unit .