summaryrefslogtreecommitdiff
path: root/sys/kern/kern_physio.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-05-08 06:40:31 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-05-08 06:40:31 +0000
commit4be2eb8c49a786d78796ed36e7ceaa8fdb198b27 (patch)
treedd19261ed7efb2709a39ec70feaa9147f1b247d7 /sys/kern/kern_physio.c
parentda8f43d1fccac244520b8fa56ef6911e25074351 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_physio.c')
-rw-r--r--sys/kern/kern_physio.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c
index c2cbb69a9ef2..5f685b56ec58 100644
--- a/sys/kern/kern_physio.c
+++ b/sys/kern/kern_physio.c
@@ -16,7 +16,7 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: kern_physio.c,v 1.32 1999/05/06 20:00:25 phk Exp $
+ * $Id: kern_physio.c,v 1.33 1999/05/07 07:03:39 phk Exp $
*/
#include <sys/param.h>
@@ -35,13 +35,13 @@ static struct buf * phygetvpbuf(dev_t dev, int resid);
int
physread(dev_t dev, struct uio *uio, int ioflag)
{
- return(physio(cdevsw[major(dev)]->d_strategy, NULL, dev, 1, minphys, uio));
+ return(physio(devsw(dev)->d_strategy, NULL, dev, 1, minphys, uio));
}
int
physwrite(dev_t dev, struct uio *uio, int ioflag)
{
- return(physio(cdevsw[major(dev)]->d_strategy, NULL, dev, 0, minphys, uio));
+ return(physio(devsw(dev)->d_strategy, NULL, dev, 0, minphys, uio));
}
int
@@ -181,7 +181,7 @@ minphys(bp)
u_int maxphys = DFLTPHYS;
struct cdevsw *bdsw;
- bdsw = cdevsw[major(bp->b_dev)];
+ bdsw = devsw(bp->b_dev);
if (bdsw && bdsw->d_maxio) {
maxphys = bdsw->d_maxio;
@@ -206,7 +206,7 @@ phygetvpbuf(dev_t dev, int resid)
struct cdevsw *bdsw;
int maxio;
- bdsw = cdevsw[major(dev)];
+ bdsw = devsw(dev);
if ((bdsw == NULL) || (bdsw->d_bmaj == -1))
return getpbuf(NULL);