summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-04-04 15:37:59 +0000
committernjl <njl@FreeBSD.org>2005-04-04 15:37:59 +0000
commitf9c3ff58ce75f8b20055bb559bd6d108e55c0fda (patch)
tree7530240c0fdaceec4da4448f1c4391f2de942411 /sys/kern
parent8a0ce01e9200c604139b76b5addc40a3f6e8dd01 (diff)
downloadFreeBSD-src-f9c3ff58ce75f8b20055bb559bd6d108e55c0fda.zip
FreeBSD-src-f9c3ff58ce75f8b20055bb559bd6d108e55c0fda.tar.gz
Document that devclass_get_maxunit(9) returns one greater than the current
highest unit. Reviewed by: dfr MFC after: 2 weeks
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_bus.c3
1 files changed, 3 insertions, 0 deletions
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
OpenPOWER on IntegriCloud