From owner-svn-src-head@FreeBSD.ORG Fri Sep 10 23:22:02 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C57EC106567A; Fri, 10 Sep 2010 23:22:02 +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 B53FD8FC2B; Fri, 10 Sep 2010 23:22:02 +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 o8ANM2Hr099206; Fri, 10 Sep 2010 23:22:02 GMT (envelope-from gjb@svn.freebsd.org) Received: (from gjb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o8ANM2wY099204; Fri, 10 Sep 2010 23:22:02 GMT (envelope-from gjb@svn.freebsd.org) Message-Id: <201009102322.o8ANM2wY099204@svn.freebsd.org> From: Glen Barber Date: Fri, 10 Sep 2010 23:22:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r212440 - head/share/man/man9 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2010 23:22:02 -0000 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