freebsd-nq/sys
Ed Schouten 29d4cb241b 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)
2008-06-11 18:55:19 +00:00
..
amd64 Correct an error in pmap_promote_pde() that may result in an errant 2008-06-01 07:36:59 +00:00
arm Add the pxa_teardown_intr() bus method function to de-associate the 2008-06-10 06:06:15 +00:00
boot Fix the incorrect calculation of a block address within a single indirect 2008-06-07 05:49:24 +00:00
bsm Merge OpenBSM 1.0 changes to src/sys/bsm: 2007-10-29 18:47:25 +00:00
cam Locking in the ses_ioctl handler doesn't have to be so strict because 2008-03-17 17:18:16 +00:00
cddl Don't enforce unique device minor number policy anymore. 2008-06-11 18:55:19 +00:00
compat fix a page fault that it occurred during ifp is NULL. This bug happens 2008-06-11 07:55:07 +00:00
conf Remove some sparc-specific stuff from my earlier sun4v work in p4. 2008-06-09 06:31:17 +00:00
contrib Fix range check for rtable id. 2008-06-05 19:30:20 +00:00
crypto Make test00 compilable again. 2008-01-15 18:34:47 +00:00
ddb Rename debug.ddb.capture.bytes sysctl to debug.ddb.capture.bufoff in 2008-04-25 13:23:36 +00:00
dev Don't enforce unique device minor number policy anymore. 2008-06-11 18:55:19 +00:00
fs Don't enforce unique device minor number policy anymore. 2008-06-11 18:55:19 +00:00
gdb Commit SYSINIT() ;-adding patch missed in previous pass. 2008-03-16 13:02:04 +00:00
geom Remove the distinction between device minor and unit numbers. 2008-05-29 12:50:46 +00:00
gnu Move the head of byte-level advisory lock list from the 2008-04-16 11:33:32 +00:00
i386 Don't enforce unique device minor number policy anymore. 2008-06-11 18:55:19 +00:00
ia64 Work-around a compiler optimization bug, that broke libthr. Massive 2008-05-28 16:41:02 +00:00
isa atrtc.c is a repocopy of the RTC device driver from i386/isa/clock.c 2008-04-14 07:57:15 +00:00
kern Don't enforce unique device minor number policy anymore. 2008-06-11 18:55:19 +00:00
libkern Add prototype for __cmpd2(). 2008-02-23 22:40:05 +00:00
mips Fix spelling of "virtual". 2008-06-08 08:56:46 +00:00
modules Add support for the Apple Big Mac (BMAC) Ethernet controller, 2008-06-07 22:58:32 +00:00
net Don't enforce unique device minor number policy anymore. 2008-06-11 18:55:19 +00:00
net80211 Change the calling convention for ic_node_alloc to deal with 2008-06-07 18:38:02 +00:00
netatalk Add code to allow the system to handle multiple routing tables. 2008-05-09 23:03:00 +00:00
netgraph Pass really available buffer size to libalias instead of MCLBYTES constant. 2008-06-01 15:13:32 +00:00
netinet Sort IP addresses before hashing them for the signature. Otherwise carp is 2008-06-02 18:58:07 +00:00
netinet6 Employ read locks on UDP inpcbs, rather than write locks, when 2008-05-29 08:27:14 +00:00
netipsec In addition to the ipsec_osdep.h removal a week ago, now also eliminate 2008-05-24 15:32:46 +00:00
netipx Rather than m_free(dtom(si)) in spx_reass(), return (1) which causes the 2008-05-29 07:18:43 +00:00
netnatm
netncp lockmgrs need to be released before to be destroyed and draining doesn't 2008-03-30 18:16:33 +00:00
netsmb Really, smb_iod_main() is not totally MPSAFE, so just acquire and drop 2008-03-27 01:23:59 +00:00
nfs Replaced the misleading uses of a historical artefact M_TRYWAIT with M_WAIT. 2008-03-25 09:39:02 +00:00
nfs4client Once the ENOLCK is detected we expect to retry the acquisition. 2008-05-27 00:20:19 +00:00
nfsclient Once the ENOLCK is detected we expect to retry the acquisition. 2008-05-27 00:20:19 +00:00
nfsserver Change the fix in the rev. 1.179 to use nfsrv_lockedpair_nd(). 2008-05-28 16:23:17 +00:00
nlm Back out the nlm_global_lock part of the last change - I forgot that only 2008-06-03 08:10:58 +00:00
opencrypto Make ftruncate a 'struct file' operation rather than a vnode operation. 2008-01-07 20:05:19 +00:00
pc98 Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and 2008-05-26 10:40:09 +00:00
pccard
pci - Use bus_foo() rather than bus_space_foo() and remove bus space tag/handle 2008-06-06 18:29:56 +00:00
powerpc Move bm(4) from the sys/conf/NOTES to sys/powerpc/conf/NOTES. 2008-06-08 01:58:11 +00:00
rpc Fix some issues that showed up during Kris' testing. 2008-04-11 10:34:59 +00:00
security Don't enforce unique device minor number policy anymore. 2008-06-11 18:55:19 +00:00
sparc64 The VM system no longer uses setPQL2(). Remove it and its helpers. 2008-05-23 04:03:54 +00:00
sun4v Use the "options " spelling (vs. "options<TAB>") so that commented lines 2008-05-21 03:36:53 +00:00
sys Don't enforce unique device minor number policy anymore. 2008-06-11 18:55:19 +00:00
tools Introduce a standalone shell script for embedding MFS image. 2008-02-05 10:46:30 +00:00
ufs Fix comments to replace SBSIZE with SBLOCKSIZE, since SBSIZE 2008-05-24 20:44:14 +00:00
vm Essentially, neither madvise(..., MADV_DONTNEED) nor madvise(..., MADV_FREE) 2008-06-06 18:38:43 +00:00
xdr Add the new kernel-mode NFS Lock Manager. To use it instead of the 2008-03-26 15:23:12 +00:00
Makefile Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and 2008-05-26 10:40:09 +00:00