freebsd-skq/sys/cddl
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
..
boot/zfs Add definitions for ZFS pool version 13. 2008-11-21 09:10:35 +00:00
compat/opensolaris MFp4: Remove assertion that is no longer valid - we now use VOP_CLOSE() in 2008-11-29 12:32:42 +00:00
contrib/opensolaris Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
dev Remove unused variable. 2008-11-25 19:25:54 +00:00