Returns the next unit number to be allocated to device instances in the
.Dv devclass .
This is one greater than the highest currently allocated unit.
.Sh RETURN VALUES
The
.Fn devclass_get_maxunit
function returns -1 if dc is NULL; otherwise it returns the next unit
number in
.Fa dc's
devclass.
.Sh ERRORS
None.
.Sh SEE ALSO
.Xr devclass 9 ,
.Xr device 9