From owner-cvs-all Fri May 7 23:40:36 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id DF71114DDA; Fri, 7 May 1999 23:40:33 -0700 (PDT) (envelope-from phk@FreeBSD.org) Received: (from phk@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id XAA30788; Fri, 7 May 1999 23:40:33 -0700 (PDT) (envelope-from phk@FreeBSD.org) Message-Id: <199905080640.XAA30788@freefall.freebsd.org> From: Poul-Henning Kamp Date: Fri, 7 May 1999 23:40:33 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha autoconf.c cons.c src/sys/coda coda_vfsops.c src/sys/dev/vinum vinumio.c vinumrequest.c src/sys/gnu/ext2fs ext2_vfsops.c src/sys/i386/i386 autoconf.c cons.c src/sys/i386/linux linux_file.c src/sys/isofs/cd9660 ... Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk phk 1999/05/07 23:40:32 PDT Modified files: sys/alpha/alpha autoconf.c cons.c sys/coda coda_vfsops.c sys/dev/vinum vinumio.c vinumrequest.c sys/gnu/ext2fs ext2_vfsops.c sys/i386/i386 autoconf.c cons.c sys/i386/linux linux_file.c sys/isofs/cd9660 cd9660_vfsops.c sys/kern kern_conf.c kern_physio.c kern_shutdown.c tty.c tty_pty.c tty_snoop.c vfs_aio.c vfs_subr.c sys/miscfs/kernfs kernfs_vfsops.c sys/miscfs/specfs spec_vnops.c sys/msdosfs msdosfs_vfsops.c sys/net ppp_tty.c sys/sys conf.h sys/ufs/ffs ffs_vfsops.c sys/ufs/ufs ufs_bmap.c sys/vm device_pager.c vm_swap.c Log: I got tired of seeing all the cdevsw[major(foo)] all over the place. Made a new (inline) function devsw(dev_t dev) and substituted it. Changed to the BDEV variant to this format as well: bdevsw(dev_t dev) DEVFS will eventually benefit from this change too. Revision Changes Path 1.19 +4 -4 src/sys/alpha/alpha/autoconf.c 1.6 +7 -7 src/sys/alpha/alpha/cons.c 1.12 +5 -2 src/sys/coda/coda_vfsops.c 1.25 +2 -2 src/sys/dev/vinum/vinumio.c 1.23 +3 -3 src/sys/dev/vinum/vinumrequest.c 1.48 +7 -7 src/sys/gnu/ext2fs/ext2_vfsops.c 1.117 +2 -2 src/sys/i386/i386/autoconf.c 1.65 +7 -7 src/sys/i386/i386/cons.c 1.25 +2 -2 src/sys/i386/linux/linux_file.c 1.55 +6 -6 src/sys/isofs/cd9660/cd9660_vfsops.c 1.33 +2 -2 src/sys/kern/kern_conf.c 1.34 +5 -5 src/sys/kern/kern_physio.c 1.51 +4 -4 src/sys/kern/kern_shutdown.c 1.118 +6 -6 src/sys/kern/tty.c 1.57 +2 -2 src/sys/kern/tty_pty.c 1.35 +1 -1 src/sys/kern/tty_snoop.c 1.49 +2 -2 src/sys/kern/vfs_aio.c 1.192 +7 -7 src/sys/kern/vfs_subr.c 1.26 +2 -2 src/sys/miscfs/kernfs/kernfs_vfsops.c 1.85 +24 -21 src/sys/miscfs/specfs/spec_vnops.c 1.44 +2 -2 src/sys/msdosfs/msdosfs_vfsops.c 1.40 +2 -2 src/sys/net/ppp_tty.c 1.52 +10 -3 src/sys/sys/conf.h 1.98 +8 -8 src/sys/ufs/ffs/ffs_vfsops.c 1.28 +4 -4 src/sys/ufs/ufs/ufs_bmap.c 1.40 +3 -3 src/sys/vm/device_pager.c 1.66 +4 -4 src/sys/vm/vm_swap.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message