freebsd-dev/sys
Ed Schouten 6bfa9a2d66 Replace all calls to minor() with dev2unit().
After I removed all the unit2minor()/minor2unit() calls from the kernel
yesterday, I realised calling minor() everywhere is quite confusing.
Character devices now only have the ability to store a unit number, not
a minor number. Remove the confusion by using dev2unit() everywhere.

This commit could also be considered as a bug fix. A lot of drivers call
minor(), while they should actually be calling dev2unit(). In -CURRENT
this isn't a problem, but it turns out we never had any problem reports
related to that issue in the past. I suspect not many people connect
more than 256 pieces of the same hardware.

Reviewed by:	kib
2008-09-27 08:51:18 +00:00
..
amd64 Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
arm Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
boot Backout rev 183181. It appears that I should have been using boot-device 2008-09-19 19:49:58 +00:00
bsm When MPSAFE ttys were merged, a new BSM audit event identifier was 2008-08-24 21:20:35 +00:00
cam Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
cddl Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
compat Advertise bit 26 as sse2. 2008-09-26 15:29:18 +00:00
conf The kernel implemented 'memcmp' is an alias for 'bcmp'. However, memcmp 2008-09-23 14:45:10 +00:00
contrib Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
crypto Simplify session selection/allocation. 2008-08-09 20:01:01 +00:00
ddb Initialize the DDB command list when initializing DDB so that the basic 2008-09-25 19:50:14 +00:00
dev Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
fs Save previous content of the td_fpop before storing the current 2008-09-26 14:50:49 +00:00
gdb Commit SYSINIT() ;-adding patch missed in previous pass. 2008-03-16 13:02:04 +00:00
geom Remove unit2minor() use from kernel code. 2008-09-26 14:19:52 +00:00
gnu fdescfs, devfs, mqueuefs, nfs, portalfs, pseudofs, tmpfs and xfs 2008-09-20 19:50:52 +00:00
i386 Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
ia64 Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
isa MFp4 (my newcard tree): 2008-08-24 07:40:14 +00:00
kern Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
libkern The kernel implemented 'memcmp' is an alias for 'bcmp'. However, memcmp 2008-09-23 14:45:10 +00:00
mips Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
modules - Remove default NIC dependency on ulp headers 2008-09-24 01:19:08 +00:00
net Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
net80211 must do a deep copy of mcast packets as they can be modified after dispatch 2008-09-25 20:25:25 +00:00
netatalk Remove NETISR_MPSAFE, which allows specific netisr handlers to be directly 2008-07-04 00:21:38 +00:00
netgraph Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
netinet Move CTASSERT from header file to source file, per implementation note now 2008-09-26 18:30:11 +00:00
netinet6 When invoking the udp_send() from udp6_send() due to use of a v6-mapped 2008-09-22 06:44:03 +00:00
netipsec Commit step 1 of the vimage project, (network stack) 2008-08-17 23:27:27 +00:00
netipx Remove the suser(9) interface from the kernel. It has been replaced from 2008-09-17 15:49:44 +00:00
netnatm Remove NETISR_MPSAFE, which allows specific netisr handlers to be directly 2008-07-04 00:21:38 +00:00
netncp lockmgrs need to be released before to be destroyed and draining doesn't 2008-03-30 18:16:33 +00:00
netsmb Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +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 Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00
nfsclient Part 1 of making shared lookups more resilient with respect to forced 2008-09-24 18:51:33 +00:00
nfsserver Remove the suser(9) interface from the kernel. It has been replaced from 2008-09-17 15:49:44 +00:00
nlm Rename RPC's 'struct pmap' to 'struct portmap' to avoid confusing it with 2008-08-25 09:36:17 +00:00
opencrypto Make ftruncate a 'struct file' operation rather than a vnode operation. 2008-01-07 20:05:19 +00:00
pc98 Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
pccard
pci Move wb driver from sys/pci to sys/dev/wb. 2008-08-14 21:26:29 +00:00
powerpc Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
rpc Rename RPC's 'struct pmap' to 'struct portmap' to avoid confusing it with 2008-08-25 09:36:17 +00:00
security Remove unit2minor() use from kernel code. 2008-09-26 14:19:52 +00:00
sparc64 Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
sun4v Work around Cheetah+ erratum 34 (USIII+ erratum #10) by relocating 2008-09-10 20:07:08 +00:00
sys Rename the minor' argument of make_dev(9) to unit'. 2008-09-26 14:31:24 +00:00
tools Introduce a standalone shell script for embedding MFS image. 2008-02-05 10:46:30 +00:00
ufs Enable shared lookups on UFS. There are some remaining issues with forced 2008-09-24 18:53:04 +00:00
vm Move CTASSERT from header file to source file, per implementation note now 2008-09-26 18:44:40 +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
xen move ipi_pcpu to evtchn.c 2008-09-26 05:54:24 +00:00
Makefile Improve the glimpse target: don't index .svn and compile directories. 2008-08-15 14:11:30 +00:00