Bug 149979

Summary: [PATCH] Add RETURN VALUES section to devclass_get_maxunit(9)
Product: Documentation Reporter: Enji Cooper <ngie>
Component: Books & ArticlesAssignee: Glen Barber <gjb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Enji Cooper freebsd_committer freebsd_triage 2010-08-26 06:20:04 UTC
The devclass_get_maxunit manpage doesn't have a RETURN VALUES section. The attached patch adds that.

Fix: Patch attached with submission follows:
Comment 1 Glen Barber freebsd_committer freebsd_triage 2010-09-06 22:48:03 UTC
Responsible Changed
From-To: freebsd-doc->gjb

I'll take this.
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-09-11 00:22:10 UTC
Author: gjb (doc committer)
Date: Fri Sep 10 23:22:01 2010
New Revision: 212440
URL: http://svn.freebsd.org/changeset/base/212440

Log:
  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

Modified:
  head/share/man/man9/devclass_get_maxunit.9

Modified: head/share/man/man9/devclass_get_maxunit.9
==============================================================================
--- head/share/man/man9/devclass_get_maxunit.9	Fri Sep 10 23:18:45 2010	(r212439)
+++ head/share/man/man9/devclass_get_maxunit.9	Fri Sep 10 23:22:01 2010	(r212440)
@@ -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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 3 Glen Barber freebsd_committer freebsd_triage 2010-09-11 00:25:42 UTC
State Changed
From-To: open->patched

Patched in HEAD.  MFC in 1 week.
Comment 4 dfilter service freebsd_committer freebsd_triage 2011-02-11 13:58:37 UTC
Author: gjb (doc committer)
Date: Fri Feb 11 13:58:30 2011
New Revision: 218564
URL: http://svn.freebsd.org/changeset/base/218564

Log:
  MFC 212440,212493,212500:
  
  Add RETURN VALUES section to devclass_get_maxunit(9).
  
  PR:		149979
  Approved by:	keramida (mentor)

Modified:
  stable/8/share/man/man9/devclass_get_maxunit.9
Directory Properties:
  stable/8/share/man/man9/   (props changed)

Modified: stable/8/share/man/man9/devclass_get_maxunit.9
==============================================================================
--- stable/8/share/man/man9/devclass_get_maxunit.9	Fri Feb 11 13:56:06 2011	(r218563)
+++ stable/8/share/man/man9/devclass_get_maxunit.9	Fri Feb 11 13:58:30 2011	(r218564)
@@ -28,7 +28,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd April 3, 2005
+.Dd September 10, 2010
 .Dt DEVCLASS_GET_MAXUNIT 9
 .Os
 .Sh NAME
@@ -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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 5 dfilter service freebsd_committer freebsd_triage 2011-02-11 14:00:22 UTC
Author: gjb (doc committer)
Date: Fri Feb 11 13:59:56 2011
New Revision: 218565
URL: http://svn.freebsd.org/changeset/base/218565

Log:
  MFC 212440,212493,212500:
  
  Add RETURN VALUES section to devclass_get_maxunit(9).
  
  PR:		149979
  Approved by:	keramida (mentor)

Modified:
  stable/7/share/man/man9/devclass_get_maxunit.9
Directory Properties:
  stable/7/share/man/man9/   (props changed)

Modified: stable/7/share/man/man9/devclass_get_maxunit.9
==============================================================================
--- stable/7/share/man/man9/devclass_get_maxunit.9	Fri Feb 11 13:58:30 2011	(r218564)
+++ stable/7/share/man/man9/devclass_get_maxunit.9	Fri Feb 11 13:59:56 2011	(r218565)
@@ -28,7 +28,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd April 3, 2005
+.Dd September 10, 2010
 .Dt DEVCLASS_GET_MAXUNIT 9
 .Os
 .Sh NAME
@@ -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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 6 Glen Barber freebsd_committer freebsd_triage 2011-02-11 14:03:42 UTC
State Changed
From-To: patched->closed

MFC'd to stable/8 and stable/7.  Thanks!