diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-05-07 07:03:47 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-05-07 07:03:47 +0000 |
| commit | c48d17750f93a0c73afe5ac7d5ec2ce0093a4407 (patch) | |
| tree | 65710ea07c28c20ceb403a0816d633a6e691c978 /sys/kern/kern_physio.c | |
| parent | e244fe31d6789109d257d572331deeb0b6125118 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_physio.c')
| -rw-r--r-- | sys/kern/kern_physio.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c index 5406d92316dd..c2cbb69a9ef2 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.31 1999/04/06 03:04:47 peter Exp $ + * $Id: kern_physio.c,v 1.32 1999/05/06 20:00:25 phk Exp $ */ #include <sys/param.h> @@ -33,6 +33,18 @@ static void physwakeup __P((struct buf *bp)); 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)); +} + +int +physwrite(dev_t dev, struct uio *uio, int ioflag) +{ + return(physio(cdevsw[major(dev)]->d_strategy, NULL, dev, 0, minphys, uio)); +} + +int physio(strategy, bp, dev, rw, minp, uio) d_strategy_t *strategy; struct buf *bp; |
