svn commit: r231294 - stable/9/share/man/man9

Ed Schouten ed at FreeBSD.org
Thu Feb 9 16:58:07 UTC 2012


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.


More information about the svn-src-stable-9 mailing list