1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

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.

MFC after:	2 weeks
This commit is contained in:
Ed Schouten 2012-01-19 09:51:07 +00:00
parent e3ca4599b0
commit 5dc6c3a38a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230330
5 changed files with 12 additions and 12 deletions

View File

@ -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 unloaded using
static struct cdevsw foo_devsw = { ... };
static dev_t sdev;
static struct cdev *sdev;
static int
foo_load(module_t mod, int cmd, void *arg)

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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 vnodes may reference the same device.
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.