* @brief Get the maximum unit number used in a devclass * * Note that this is one greater than the highest currently-allocated * unit. If a null devclass_t is passed in, -1 is returned to indicate * that not even the devclass has been allocated yet. * * @param dc the devclass to examine */
| 1531 | * @param dc the devclass to examine |
| 1532 | */ |
| 1533 | int |
| 1534 | devclass_get_maxunit(devclass_t dc) |
| 1535 | { |
| 1536 | if (dc == NULL) |
| 1537 | return (-1); |
| 1538 | return (dc->maxunit); |
| 1539 | } |
| 1540 | |
| 1541 | /** |
| 1542 | * @brief Find a free unit number in a devclass |
no outgoing calls
no test coverage detected