From owner-svn-src-all@FreeBSD.ORG Thu Feb 9 16:58:06 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D28BC1065672; Thu, 9 Feb 2012 16:58:06 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B11618FC19; Thu, 9 Feb 2012 16:58:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q19Gw6B5010991; Thu, 9 Feb 2012 16:58:06 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q19Gw68A010985; Thu, 9 Feb 2012 16:58:06 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201202091658.q19Gw68A010985@svn.freebsd.org> From: Ed Schouten Date: Thu, 9 Feb 2012 16:58:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r231294 - stable/9/share/man/man9 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2012 16:58:07 -0000 Author: ed Date: Thu Feb 9 16:58:06 2012 New Revision: 231294 URL: http://svn.freebsd.org/changeset/base/231294 Log: MFC r230330: Remove remnants of dev_t. These functions take a `struct cdev *' -- not a dev_t. Inside the kernel, dev_t has the same use as in userspace, namely to store a device identifier. Modified: stable/9/share/man/man9/DEV_MODULE.9 stable/9/share/man/man9/devtoname.9 stable/9/share/man/man9/physio.9 stable/9/share/man/man9/uio.9 stable/9/share/man/man9/vcount.9 Directory Properties: stable/9/share/man/man9/ (props changed) Modified: stable/9/share/man/man9/DEV_MODULE.9 ============================================================================== --- stable/9/share/man/man9/DEV_MODULE.9 Thu Feb 9 16:57:34 2012 (r231293) +++ stable/9/share/man/man9/DEV_MODULE.9 Thu Feb 9 16:58:06 2012 (r231294) @@ -28,7 +28,7 @@ .\" .\" $FreeBSD$ .\" -.Dd March 11, 2001 +.Dd January 19, 2012 .Dt DEV_MODULE 9 .Os .Sh NAME @@ -68,7 +68,7 @@ on load and to destroy it when it is unl static struct cdevsw foo_devsw = { ... }; -static dev_t sdev; +static struct cdev *sdev; static int foo_load(module_t mod, int cmd, void *arg) Modified: stable/9/share/man/man9/devtoname.9 ============================================================================== --- stable/9/share/man/man9/devtoname.9 Thu Feb 9 16:57:34 2012 (r231293) +++ stable/9/share/man/man9/devtoname.9 Thu Feb 9 16:58:06 2012 (r231294) @@ -24,17 +24,17 @@ .\" .\" $FreeBSD$ .\" -.Dd September 25, 1999 +.Dd January 19, 2012 .Dt DEVTONAME 9 .Os .Sh NAME .Nm devtoname -.Nd "converts dev_t data into a string indicating the device name" +.Nd "converts character device into a string indicating the device name" .Sh SYNOPSIS .In sys/param.h .In sys/conf.h .Ft const char * -.Fn devtoname "dev_t dev" +.Fn devtoname "struct cdev *dev" .Sh DESCRIPTION The .Fn devtoname Modified: stable/9/share/man/man9/physio.9 ============================================================================== --- stable/9/share/man/man9/physio.9 Thu Feb 9 16:57:34 2012 (r231293) +++ stable/9/share/man/man9/physio.9 Thu Feb 9 16:58:06 2012 (r231294) @@ -29,7 +29,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 8, 2004 +.Dd January 19, 2012 .Dt PHYSIO 9 .Os .Sh NAME @@ -41,7 +41,7 @@ .In sys/bio.h .In sys/buf.h .Ft int -.Fn physio "dev_t dev" "struct uio *uio" "int ioflag" +.Fn physio "struct cdev *dev" "struct uio *uio" "int ioflag" .Sh DESCRIPTION The .Fn physio Modified: stable/9/share/man/man9/uio.9 ============================================================================== --- stable/9/share/man/man9/uio.9 Thu Feb 9 16:57:34 2012 (r231293) +++ stable/9/share/man/man9/uio.9 Thu Feb 9 16:58:06 2012 (r231294) @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 9, 2011 +.Dd January 19, 2012 .Dt UIO 9 .Os .Sh NAME @@ -154,7 +154,7 @@ static char buffer[BUFSIZE]; static int data_available; /* amount of data that can be read */ static int -fooread(dev_t dev, struct uio *uio, int flag) +fooread(struct cdev *dev, struct uio *uio, int flag) { int rv, amnt; Modified: stable/9/share/man/man9/vcount.9 ============================================================================== --- stable/9/share/man/man9/vcount.9 Thu Feb 9 16:57:34 2012 (r231293) +++ stable/9/share/man/man9/vcount.9 Thu Feb 9 16:58:06 2012 (r231294) @@ -32,7 +32,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 6, 2001 +.Dd January 19, 2012 .Dt VCOUNT 9 .Os .Sh NAME @@ -47,7 +47,7 @@ .Ft int .Fn vcount "struct vnode *vp" .Ft int -.Fn count_dev "dev_t dev" +.Fn count_dev "struct cdev *dev" .Sh DESCRIPTION .Fn vcount is used to get the number of references to a particular device. @@ -56,7 +56,7 @@ It allows for the fact that multiple vno does the same thing as .Fn vcount , but takes a -.Vt dev_t +.Vt "struct cdev" rather than a .Vt "struct vnode" pointer as an argument.