freebsd-nq/sys/miscfs
Poul-Henning Kamp 2447bec829 Simplify cdevsw registration.
The cdevsw_add() function now finds the major number(s) in the
struct cdevsw passed to it.  cdevsw_add_generic() is no longer
needed, cdevsw_add() does the same thing.

cdevsw_add() will print an message if the d_maj field looks bogus.

Remove nblkdev and nchrdev variables.  Most places they were used
bogusly.  Instead check a dev_t for validity by seeing if devsw()
or bdevsw() returns NULL.

Move bdevsw() and devsw() functions to kern/kern_conf.c

Bump __FreeBSD_version to 400006

This commit removes:
        72 bogus makedev() calls
        26 bogus SYSINIT functions

if_xe.c bogusly accessed cdevsw[], author/maintainer please fix.

I4b and vinum not changed.  Patches emailed to authors.  LINT
probably broken until they catch up.
1999-05-31 11:29:30 +00:00
..
deadfs Return ENOTTY instead of EBADF for ioctls on dead vnodes. This fixes 1998-11-22 09:19:07 +00:00
devfs Divorce "dev_t" from the "major|minor" bitmap, which is now called 1999-05-11 19:55:07 +00:00
fdesc Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
fifofs Back out DIAGNOSTIC changes. 1998-02-06 12:14:30 +00:00
kernfs Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
nullfs Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-28 00:57:57 +00:00
portal Remove declarations for undefined functions and a couple of unused 1999-01-12 11:49:30 +00:00
procfs Don't call calcru() on a swapped-out process. calcru() access p_stats, which 1999-05-22 20:10:31 +00:00
specfs Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
umapfs Suser() simplification: 1999-04-27 11:18:52 +00:00
union This code got moved as a result of confusion between union mounts and 1999-02-28 16:13:25 +00:00