devclass_get_maxunit9
Find the maximum unit number in the class
Usage
#include <sys/param.h>
#include <sys/bus.h>
int
devclass_get_maxunit(devclass_t dc);
Overview
Returns the next unit number to be allocated to device instances in the devclass. This is one greater than the highest currently allocated unit.
Return values
The devclass_get_maxunit() function returns -1 if dc is NULL, otherwise it returns the next unit number in dc's devclass.
Errors
None.
Releases
77 releases since FreeBSD 3.0-RELEASE; the text changed 39 times.