summaryrefslogtreecommitdiffstats
path: root/sys/dev/vn
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-05-07 07:03:47 +0000
committerphk <phk@FreeBSD.org>1999-05-07 07:03:47 +0000
commit7f79e0b14a5e8b99418d156f26b7b4026a163eca (patch)
tree64910f3b88102ea4099d5b4c903f873d9a777b12 /sys/dev/vn
parent87d0bb82afc01a49a3747975f2dda83e9e025bd1 (diff)
downloadFreeBSD-src-7f79e0b14a5e8b99418d156f26b7b4026a163eca.zip
FreeBSD-src-7f79e0b14a5e8b99418d156f26b7b4026a163eca.tar.gz
Introduce two functions: physread() and physwrite() and use these directly
in *devsw[] rather than the 46 local copies of the same functions. (grog will do the same for vinum when he has time)
Diffstat (limited to 'sys/dev/vn')
-rw-r--r--sys/dev/vn/vn.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c
index 11cbd01..2037ee1 100644
--- a/sys/dev/vn/vn.c
+++ b/sys/dev/vn/vn.c
@@ -38,7 +38,7 @@
* from: Utah Hdr: vn.c 1.13 94/04/02
*
* from: @(#)vn.c 8.6 (Berkeley) 4/1/94
- * $Id: vn.c,v 1.75 1999/03/14 09:20:00 julian Exp $
+ * $Id: vn.c,v 1.76 1999/04/27 11:14:13 phk Exp $
*/
/*
@@ -103,8 +103,6 @@
static d_ioctl_t vnioctl;
static d_open_t vnopen;
-static d_read_t vnread;
-static d_write_t vnwrite;
static d_close_t vnclose;
static d_dump_t vndump;
static d_psize_t vnsize;
@@ -122,7 +120,7 @@ static d_parms_t vnparms;
*/
static struct cdevsw vn_cdevsw = {
- vnopen, vnclose, vnread, vnwrite,
+ vnopen, vnclose, physread, physwrite,
vnioctl, nostop, nullreset, nodevtotty,
seltrue, nommap, vnstrategy, "vn",
vnparms, -1, vndump, vnsize,
@@ -234,18 +232,6 @@ vnopen(dev_t dev, int flags, int mode, struct proc *p)
return(0);
}
-static int
-vnread(dev_t dev, struct uio *uio, int ioflag)
-{
- return (physio(vnstrategy, NULL, dev, 1, minphys, uio));
-}
-
-static int
-vnwrite(dev_t dev, struct uio *uio, int ioflag)
-{
- return (physio(vnstrategy, NULL, dev, 0, minphys, uio));
-}
-
/*
* vnstrategy:
*
OpenPOWER on IntegriCloud