Date: Wed, 11 Jun 2008 18:55:19 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/cddl/contrib/opensolaris/uts/common/dtrace dtrace.c src/sys/dev/nmdm nmdm.c src/sys/dev/snp snp.c src/sys/dev/vkbd vkbd.c src/sys/fs/ntfs ntfs_ihash.c src/sys/i386/acpica acpi_machdep.c src/sys/kern kern_conf.c src/sys/net if_tap.c if_tun.c ... Message-ID: <200806111857.m5BIvOVE069657@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2008-06-11 18:55:19 UTC FreeBSD src repository Modified files: sys/cddl/contrib/opensolaris/uts/common/dtrace dtrace.c sys/dev/nmdm nmdm.c sys/dev/snp snp.c sys/dev/vkbd vkbd.c sys/fs/ntfs ntfs_ihash.c sys/i386/acpica acpi_machdep.c sys/kern kern_conf.c sys/net if_tap.c if_tun.c sys/security/audit audit_pipe.c sys/sys conf.h Log: SVN rev 179726 on 2008-06-11 18:55:19Z by ed Don't enforce unique device minor number policy anymore. Except for the case where we use the cloner library (clone_create() and friends), there is no reason to enforce a unique device minor number policy. There are various drivers in the source tree that allocate unr pools and such to provide minor numbers, without using them themselves. Because we still need to support unique device minor numbers for the cloner library, introduce a new flag called D_NEEDMINOR. All cdevsw's that are used in combination with the cloner library should be marked with this flag to make the cloning work. This means drivers can now freely use si_drv0 to store their own flags and state, making it effectively the same as si_drv1 and si_drv2. We still keep the minor() and dev2unit() routines around to make drivers happy. The NTFS code also used the minor number in its hash table. We should not do this anymore. If the si_drv0 field would be changed, it would no longer end up in the same list. Approved by: philip (mentor) Revision Changes Path 1.5 +1 -0 src/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c 1.40 +1 -1 src/sys/dev/nmdm/nmdm.c 1.108 +1 -1 src/sys/dev/snp/snp.c 1.13 +1 -1 src/sys/dev/vkbd/vkbd.c 1.24 +3 -3 src/sys/fs/ntfs/ntfs_ihash.c 1.39 +1 -1 src/sys/i386/acpica/acpi_machdep.c 1.216 +9 -4 src/sys/kern/kern_conf.c 1.73 +1 -1 src/sys/net/if_tap.c 1.165 +1 -1 src/sys/net/if_tun.c 1.16 +1 -1 src/sys/security/audit/audit_pipe.c 1.240 +2 -1 src/sys/sys/conf.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806111857.m5BIvOVE069657>