From owner-svn-src-stable@FreeBSD.ORG Fri Feb 11 13:58:31 2011 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D849106566C; Fri, 11 Feb 2011 13:58:31 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0C3D68FC0C; Fri, 11 Feb 2011 13:58:31 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p1BDwUP3062167; Fri, 11 Feb 2011 13:58:30 GMT (envelope-from gjb@svn.freebsd.org) Received: (from gjb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p1BDwUSH062165; Fri, 11 Feb 2011 13:58:30 GMT (envelope-from gjb@svn.freebsd.org) Message-Id: <201102111358.p1BDwUSH062165@svn.freebsd.org> From: Glen Barber Date: Fri, 11 Feb 2011 13:58:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218564 - stable/8/share/man/man9 X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2011 13:58:31 -0000 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