diff options
author | bde <bde@FreeBSD.org> | 1995-11-06 00:36:19 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-11-06 00:36:19 +0000 |
commit | 08b652fb6584a6e35dd3b2b51861b90f852b6d95 (patch) | |
tree | 91dcf848840fefc35bc4b406b8a5599bdac59cbb /sys/vm | |
parent | aa3705d78b7fc12ce3cf9e9a7437407154f241c8 (diff) | |
download | FreeBSD-src-08b652fb6584a6e35dd3b2b51861b90f852b6d95.zip FreeBSD-src-08b652fb6584a6e35dd3b2b51861b90f852b6d95.tar.gz |
Replaced bogus macros for dummy devswitch entries by functions.
These functions went away:
enosys (hasn't been used for some time)
enxio
enodev
enoioctl (was used only once, actually for a vop)
if_tun.c:
Continued cleaning up...
conf.h:
Probably fixed the type of d_reset_t. It is hard to tell the correct
type because there are no non-dummy device reset functions.
Removed last vestige of ambiguous sleep message strings.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/device_pager.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/device_pager.c b/sys/vm/device_pager.c index a7b0a9b..18c97e5 100644 --- a/sys/vm/device_pager.c +++ b/sys/vm/device_pager.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)device_pager.c 8.1 (Berkeley) 6/11/93 - * $Id: device_pager.c,v 1.11 1995/05/30 08:15:46 rgrimes Exp $ + * $Id: device_pager.c,v 1.12 1995/07/13 08:48:10 davidg Exp $ */ #include <sys/param.h> @@ -94,7 +94,7 @@ dev_pager_alloc(handle, size, prot, foff) */ dev = (dev_t) (u_long) handle; mapfunc = cdevsw[major(dev)].d_mmap; - if (mapfunc == NULL || mapfunc == enodev || mapfunc == nullop) + if (mapfunc == NULL || mapfunc == nullop) return (NULL); /* @@ -186,7 +186,7 @@ dev_pager_getpages(object, m, count, reqpage) prot = PROT_READ; /* XXX should pass in? */ mapfunc = cdevsw[major(dev)].d_mmap; - if (mapfunc == NULL || mapfunc == enodev || mapfunc == nullop) + if (mapfunc == NULL || mapfunc == nullop) panic("dev_pager_getpage: no map function"); paddr = pmap_phys_address((*mapfunc) ((dev_t) dev, (int) offset, prot)); |