freebsd-skq/sys
ed a964306db9 Last step of splitting up minor and unit numbers: remove minor().
Inside the kernel, the minor() function was responsible for obtaining
the device minor number of a character device. Because we made device
numbers dynamically allocated and independent of the unit number passed
to make_dev() a long time ago, it was actually a misnomer. If you really
want to obtain the device number, you should use dev2udev().

We already converted all the drivers to use dev2unit() to obtain the
device unit number, which is still used by a lot of drivers. I've
noticed not a single driver passes NULL to dev2unit(). Even if they
would, its behaviour would make little sense. This is why I've removed
the NULL check.

Ths commit removes minor(), minor2unit() and unit2minor() from the
kernel. Because there was a naming collision with uminor(), we can
rename umajor() and uminor() back to major() and minor(). This means
that the makedev(3) manual page also applies to kernel space code now.

I suspect umajor() and uminor() isn't used that often in external code,
but to make it easier for other parties to port their code, I've
increased __FreeBSD_version to 800062.
2009-01-28 17:57:16 +00:00
..
amd64 VIA Nano processor has a special MSR (CENT_HARDWARECTRL3) bit 32 to determine 2009-01-22 21:04:46 +00:00
arm Move to having a caps flag. Newer versions of the AT91 family don't 2009-01-23 00:51:25 +00:00
boot Add an entry for the urtw(4) module. 2009-01-23 05:56:09 +00:00
bsm Merge OpenBSM alpha 5 from OpenBSM vendor branch to head, both 2009-01-14 10:44:16 +00:00
cam Now that mtx_sleep/msleep can accept Giant as the interlock, simplify the 2009-01-26 15:01:47 +00:00
cddl Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
compat Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
conf kmod.mk includes bsd.sys.mk anyway so use CSTD instead of homegrown 2009-01-26 17:00:58 +00:00
contrib Revert my previous two changes. 2009-01-25 16:52:41 +00:00
crypto Connect padlock(4) to amd64 build for VIA Nano processors. 2009-01-12 19:23:46 +00:00
ddb
dev Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
fs Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
gdb
geom Remove unused unrhdr from GEOM character device module. 2009-01-24 18:23:19 +00:00
gnu - Eliminate warnings in debug print macros by explicitly converting all 2009-01-18 15:10:46 +00:00
i386 VIA Nano processor has a special MSR (CENT_HARDWARECTRL3) bit 32 to determine 2009-01-22 21:04:46 +00:00
ia64 Correct an error in revision 1.170 of this file. When get_pv_entry() is 2009-01-18 08:00:55 +00:00
isa Allow device hints to wire the unit numbers of devices. 2008-11-18 21:01:54 +00:00
kern Use the proper flag to let kern.ttys be executed without Giant. 2009-01-26 16:43:18 +00:00
kgssapi Call svc_freereq() before returning from the service proc. 2008-11-12 15:31:05 +00:00
libkern Add simple locking for the in-kernel iconv code. Translation operations 2008-12-05 21:19:24 +00:00
mips Eliminate the PMAP_INLINE macro. It isn't really used here. If we 2009-01-16 08:38:03 +00:00
modules Fix typo in last commit. 2009-01-28 11:04:27 +00:00
net For consistency with prison_{local,remote,check}_ipN rename 2009-01-25 10:11:58 +00:00
net80211 Extend channel definition with: 2009-01-27 23:48:13 +00:00
netatalk Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
netgraph Check for infinite recursion possible on some broken PPTP/L2TP/... VPN setups. 2009-01-20 22:26:09 +00:00
netinet initialize a couple of variables, gcc 4.2.4-4 (linux) reports 2009-01-28 13:39:01 +00:00
netinet6 For consistency with prison_{local,remote,check}_ipN rename 2009-01-25 10:11:58 +00:00
netipsec Remove remain <= MHLEN restriction in m_makespace(), 2009-01-28 10:41:10 +00:00
netipx Add missing "goto set_head" for SO_IPX_CHECKSUM; otherwise we fall through 2008-12-11 10:29:35 +00:00
netnatm Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
netncp Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
netsmb Implement device cloning for /dev/nsmb, the netsmb control pseudo-device. 2008-11-03 14:23:15 +00:00
nfs
nfs4client Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
nfsclient Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
nfsserver Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
nlm Don't call svc_freereq() before svc_freeargs(). 2008-11-12 15:30:30 +00:00
opencrypto While OpenBSD's crypto/ framework has sha1 and md5 implementations that 2009-01-28 15:31:16 +00:00
pc98 MFi386: 187144 2009-01-15 11:54:31 +00:00
pccard
pci - Add support for 8110SCe part. Some magic registers were taken from 2009-01-20 20:22:28 +00:00
powerpc Add support for the I2S and davbus audio controllers found in Apple PowerPC 2009-01-25 18:20:15 +00:00
rpc Add a missing call to mtx_destroy(). 2008-11-12 12:21:18 +00:00
security Use __FBSDID() for $FreeBSD$ version strings in .c files. 2009-01-24 13:15:45 +00:00
sparc64 - Currently the PMAP code is laid out to let the kernel TSB cover the 2009-01-01 14:01:21 +00:00
sun4v Adjust the padding of struct pcpu to r187357. 2009-01-18 13:04:38 +00:00
sys Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
tools Remove some unused and broken code that attempted to not invoke locking 2008-11-03 19:57:40 +00:00
ufs Following a fair amount of real world experience with ACLs and 2009-01-27 21:48:47 +00:00
vm - Make the keg abstraction more complete. Permit a zone to have multiple 2009-01-25 09:11:24 +00:00
xdr Use the remote address for access control, not the local address. This fixes 2008-11-13 14:36:52 +00:00
xen merge 186535, 186537, and 186538 from releng_7_xen 2008-12-29 06:31:03 +00:00
Makefile