From f9c3ff58ce75f8b20055bb559bd6d108e55c0fda Mon Sep 17 00:00:00 2001 From: njl Date: Mon, 4 Apr 2005 15:37:59 +0000 Subject: Document that devclass_get_maxunit(9) returns one greater than the current highest unit. Reviewed by: dfr MFC after: 2 weeks --- sys/kern/subr_bus.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/kern') diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 16a2609..438209f 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -1194,6 +1194,9 @@ devclass_get_count(devclass_t dc) /** * @brief Get the maximum unit number used in a devclass * + * Note that this is one greater than the highest currently-allocated + * unit. + * * @param dc the devclass to examine */ int -- cgit v1.1