MCPcopy Create free account
hub / github.com/F-Stack/f-stack / devclass_get_maxunit

Function devclass_get_maxunit

freebsd/kern/subr_bus.c:1533–1539  ·  view source on GitHub ↗

* @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 */

Source from the content-addressed store, hash-verified

1531 * @param dc the devclass to examine
1532 */
1533int
1534devclass_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

Callers 2

device_find_childFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected