summaryrefslogtreecommitdiffstats
path: root/share
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 /share
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 'share')
-rw-r--r--share/man/man9/devclass_get_maxunit.98
1 files changed, 5 insertions, 3 deletions
diff --git a/share/man/man9/devclass_get_maxunit.9 b/share/man/man9/devclass_get_maxunit.9
index 75fb90f..bcfb222 100644
--- a/share/man/man9/devclass_get_maxunit.9
+++ b/share/man/man9/devclass_get_maxunit.9
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd June 16, 1998
+.Dd April 3, 2005
.Dt DEVCLASS_GET_MAXUNIT 9
.Os
.Sh NAME
@@ -40,12 +40,14 @@
.Ft int
.Fn devclass_get_maxunit "devclass_t dc"
.Sh DESCRIPTION
-Returns the maximum unit number allocated to device instances in the
-specified
+Returns the next unit number to be allocated to device instances in the
.Dv devclass .
+This is one greater than the highest currently allocated unit.
.Sh SEE ALSO
.Xr devclass 9 ,
.Xr device 9
.Sh AUTHORS
This man page was written by
.An Doug Rabson .
+.Sh BUGS
+The name is confusing since it is one greater than the maximum unit.
OpenPOWER on IntegriCloud