freebsd-skq/sys/compat
Ed Schouten a4611ab612 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
..
freebsd32 Push down Giant inside sysctl. Also add some more assertions to the code. 2008-12-29 12:58:45 +00:00
ia32 Add sv_flags field to struct sysentvec with intention to provide description 2008-11-22 12:36:15 +00:00
linprocfs Replace couple of strcmp(cpu_vendor, "foo") with cpu_vendor_id for i386 2009-01-22 17:06:33 +00:00
linsysfs Add a pn_destroy field to pfs_node. This field points to a destructor 2007-03-12 12:16:52 +00:00
linux Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
ndis Remove unused variable. 2008-12-28 13:50:58 +00:00
netbsd
svr4 Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00