docs/149979: [PATCH] Add RETURN VALUES section to devclass_get_maxunit(9)

Garrett Cooper gcooper at FreeBSD.org
Thu Aug 26 05:20:05 UTC 2010


>Number:         149979
>Category:       docs
>Synopsis:       [PATCH] Add RETURN VALUES section to devclass_get_maxunit(9)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 26 05:20:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Cooper
>Release:        9-CURRENT
>Organization:
Cisco Systems, Inc.
>Environment:
FreeBSD bayonetta.local 9.0-CURRENT FreeBSD 9.0-CURRENT #9 r211309M: Thu Aug 19 22:50:36 PDT 2010     root at bayonetta.local:/usr/obj/usr/src/sys/BAYONETTA  amd64
>Description:
The devclass_get_maxunit manpage doesn't have a RETURN VALUES section. The attached patch adds that.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: devclass_get_maxunit.9
===================================================================
--- devclass_get_maxunit.9      (revision 210824)
+++ devclass_get_maxunit.9      (working copy)
@@ -43,6 +43,15 @@
 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 dc is 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


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list