From owner-svn-src-stable@FreeBSD.ORG Fri Feb 11 13:59:56 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 8C398106566B; Fri, 11 Feb 2011 13:59:56 +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 7B2348FC13; Fri, 11 Feb 2011 13:59:56 +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 p1BDxu0D062252; Fri, 11 Feb 2011 13:59:56 GMT (envelope-from gjb@svn.freebsd.org) Received: (from gjb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p1BDxusT062250; Fri, 11 Feb 2011 13:59:56 GMT (envelope-from gjb@svn.freebsd.org) Message-Id: <201102111359.p1BDxusT062250@svn.freebsd.org> From: Glen Barber Date: Fri, 11 Feb 2011 13:59:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218565 - stable/7/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:59:56 -0000 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