devclass_get_maxunit(9)

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.

Authors

This manual page was written by Doug Rabson.

Bugs

The name is confusing since it is one greater than the maximum unit.

From freebsd-manpages 6.0-5 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.