From owner-cvs-src@FreeBSD.ORG Wed Jun 11 18:57:24 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE208106566B; Wed, 11 Jun 2008 18:57:24 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D310A8FC19; Wed, 11 Jun 2008 18:57:24 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m5BIvOte069658; Wed, 11 Jun 2008 18:57:24 GMT (envelope-from ed@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m5BIvOVE069657; Wed, 11 Jun 2008 18:57:24 GMT (envelope-from ed@repoman.freebsd.org) Message-Id: <200806111857.m5BIvOVE069657@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ed@repoman.freebsd.org using -f From: Ed Schouten Date: Wed, 11 Jun 2008 18:55:19 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: 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 ... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2008 18:57:25 -0000 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