diff options
author | bde <bde@FreeBSD.org> | 1996-03-27 20:09:26 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-03-27 20:09:26 +0000 |
commit | cd9e381ea0b409efec3ad4c0f4633f95a1eac734 (patch) | |
tree | f9718c74e712e4e45bd00557db1861ab7e2b044f /sys/vm | |
parent | 1e44bb87f6ceca4e4ee106149314b43f0f5b6a6d (diff) | |
download | FreeBSD-src-cd9e381ea0b409efec3ad4c0f4633f95a1eac734.zip FreeBSD-src-cd9e381ea0b409efec3ad4c0f4633f95a1eac734.tar.gz |
Added drum device.
Submitted by: partly by "Marc G. Fournier" <scrappy@ki.net>
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_swap.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index eac78ca..dafd926 100644 --- a/sys/vm/vm_swap.c +++ b/sys/vm/vm_swap.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)vm_swap.c 8.5 (Berkeley) 2/17/94 - * $Id: vm_swap.c,v 1.34 1995/12/21 20:09:46 julian Exp $ + * $Id: vm_swap.c,v 1.35 1996/03/03 21:11:08 dyson Exp $ */ #include <sys/param.h> @@ -39,6 +39,9 @@ #include <sys/sysproto.h> #include <sys/buf.h> #include <sys/conf.h> +#ifdef DEVFS +#include <sys/devfsext.h> +#endif #include <sys/proc.h> #include <sys/namei.h> #include <sys/dmap.h> /* XXX */ @@ -286,6 +289,9 @@ swaponvp(p, vp, dev, nblks) } static sw_devsw_installed = 0; +#ifdef DEVFS +static void *drum_devfs_token; +#endif static void sw_drvinit(void *unused) { @@ -297,6 +303,11 @@ static void sw_drvinit(void *unused) dev = makedev(BDEV_MAJOR,0); bdevsw_add(&dev,&sw_bdevsw,NULL); sw_devsw_installed = 1; +#ifdef DEVFS + drum_devfs_token = devfs_add_devswf(&sw_cdevsw, 0, DV_CHR, + UID_ROOT, GID_KMEM, 0640, + "drum"); +#endif } } |