devclass_get_maxunit9freebsd
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
9 releases since Debian 5.0 (Lenny); the text changed 6 times.