freebsd-nq/sys/net
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
..
bpf_compat.h
bpf_filter.c
bpf.c Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
bpf.h
bpfdesc.h
bridge.c
bridge.h
bsd_comp.c
ethernet.h
fddi.h
hostcache.c
hostcache.h
if_arp.h
if_atm.h
if_atmsubr.c
if_disc.c
if_dl.h
if_ethersubr.c
if_fddisubr.c
if_iso88025subr.c
if_llc.h
if_loop.c
if_media.c
if_media.h
if_mib.c
if_mib.h
if_ppp.c
if_ppp.h
if_pppvar.h
if_sl.c
if_slvar.h
if_sppp.h
if_spppsubr.c
if_tun.c Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
if_tun.h
if_tunvar.h
if_types.h
if_var.h
if_vlan_var.h
if_vlan.c
if.c
if.h
iso88025.h
netisr.h
ppp_comp.h
ppp_deflate.c
ppp_defs.h
ppp_tty.c
radix.c
radix.h
raw_cb.c
raw_cb.h
raw_usrreq.c
route.c
route.h
rtsock.c
slcompress.c
slcompress.h
slip.h
zlib.c
zlib.h