devclass_get_maxunit — find the maximum unit number in the class
Contents
Bugs
The name is confusing since it is one greater than the maximum unit.
Debian September 10, 2010 DEVCLASS_GET_MAXUNIT(9)
Description
Returns the next unit number to be allocated to device instances in the devclass. This is one greater
than the highest currently allocated unit.
Errors
None.
Name
devclass_get_maxunit — find the maximum unit number in the class
Return Values
The devclass_get_maxunit() function returns -1 if dc is NULL, otherwise it returns the next unit number
in dc's devclass.
See Also
devclass(9), device(9)
Synopsis
#include<sys/param.h>#include<sys/bus.h>intdevclass_get_maxunit(devclass_tdc);
