summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2010-09-10 23:22:01 +0000
committergjb <gjb@FreeBSD.org>2010-09-10 23:22:01 +0000
commitfe3edd04c57bc669e76fb543fc00cd0f0f8cee4b (patch)
tree8825da1f36211de2d0260b561b34e32d3bd7c55b /share
parenta7e4e69d1930e504dce49aa6b4a2e0131322071e (diff)
downloadFreeBSD-src-fe3edd04c57bc669e76fb543fc00cd0f0f8cee4b.zip
FreeBSD-src-fe3edd04c57bc669e76fb543fc00cd0f0f8cee4b.tar.gz
Add RETURN VALUES section to devclass_get_maxunit(9).
PR: 149979 Submitted by: gcooper Patch by: gcooper Approved by: keramida (mentor) MFC after: 1 week
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/devclass_get_maxunit.913
1 files changed, 13 insertions, 0 deletions
diff --git a/share/man/man9/devclass_get_maxunit.9 b/share/man/man9/devclass_get_maxunit.9
index c1fa694..63b8490 100644
--- a/share/man/man9/devclass_get_maxunit.9
+++ b/share/man/man9/devclass_get_maxunit.9
@@ -43,6 +43,19 @@
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 RETURN VALUES
+The
+.Fn devclass_get_maxunit
+function returns -1 if
+.Fa dc
+is
+.Dv NULL;
+otherwise it returns the next unit
+number in
+.Fa dc's
+devclass.
+.Sh ERRORS
+None.
.Sh SEE ALSO
.Xr devclass 9 ,
.Xr device 9
OpenPOWER on IntegriCloud