logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

devclass_get_maxunit — find the maximum unit number in the class

Authors

       This manual page was written by Doug Rabson.

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);

See Also