Date: Thu, 26 Aug 2010 05:18:06 GMT From: Garrett Cooper <gcooper@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: docs/149979: [PATCH] Add RETURN VALUES section to devclass_get_maxunit(9) Message-ID: <201008260518.o7Q5I6HN042232@www.freebsd.org> Resent-Message-ID: <201008260520.o7Q5K4s0055218@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008260518.o7Q5I6HN042232>