freebsd-dev/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 Break long lines that I introduced in a previous commit. 1999-04-11 02:52:31 +00:00
bpf.c Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
bpf.h
bpfdesc.h
bridge.c Free the dummynet descriptor in ip_dummynet, not in the called 1999-05-04 16:20:33 +00:00
bridge.h
bsd_comp.c
ethernet.h
fddi.h
hostcache.c
hostcache.h
if_arp.h World, I'd like you to meet the first FreeBSD token Ring driver. 1999-02-20 11:18:00 +00:00
if_atm.h clean up en atm driver 1999-05-08 14:23:40 +00:00
if_atmsubr.c clean up en atm driver 1999-05-08 14:23:40 +00:00
if_disc.c
if_dl.h Submitted by: Larry Lile 1999-03-10 10:11:43 +00:00
if_ethersubr.c * Change sysctl from using linker_set to construct its tree using SLISTs. 1999-02-16 10:49:55 +00:00
if_fddisubr.c Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 22:42:27 +00:00
if_iso88025subr.c Submitted by: Larry Lile 1999-03-10 10:11:43 +00:00
if_llc.h
if_loop.c Set ifq_maxlen. 1999-02-20 21:03:53 +00:00
if_media.c Bring the 'new-bus' to the i386. This extensively changes the way the 1999-04-16 21:22:55 +00:00
if_media.h Bring the 'new-bus' to the i386. This extensively changes the way the 1999-04-16 21:22:55 +00:00
if_mib.c * Change sysctl from using linker_set to construct its tree using SLISTs. 1999-02-16 10:49:55 +00:00
if_mib.h
if_ppp.c Suser() simplification: 1999-04-27 11:18:52 +00:00
if_ppp.h
if_pppvar.h
if_sl.c Suser() simplification: 1999-04-27 11:18:52 +00:00
if_slvar.h
if_sppp.h rganize the various modes (CISCO/AUTO/DEMAND/LEASED) a little bit better, 1999-03-30 13:28:26 +00:00
if_spppsubr.c rganize the various modes (CISCO/AUTO/DEMAND/LEASED) a little bit better, 1999-03-30 13:28:26 +00:00
if_tun.c Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
if_tun.h Implement TUNSIFMODE and TUNSLMODE. 1999-03-24 21:20:12 +00:00
if_tunvar.h Implement TUNSIFMODE and TUNSLMODE. 1999-03-24 21:20:12 +00:00
if_types.h
if_var.h PR: kern/10570 1999-05-16 17:09:20 +00:00
if_vlan_var.h Grrr... botched remote commit. Let's try this again: vlan updates, 1999-03-15 01:22:01 +00:00
if_vlan.c Add missing SYSCTL_DECL(_net_link); required by newer sysctl implementation. 1999-04-07 23:26:43 +00:00
if.c This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
if.h Fix some disordering I introduced with the jail code. 1999-05-08 07:00:04 +00:00
iso88025.h Submitted by: Larry Lile 1999-03-10 10:11:43 +00:00
netisr.h Make NETISR_SET use a SYSINIT() rather than a linker set. 1999-04-26 08:52:16 +00:00
ppp_comp.h
ppp_deflate.c
ppp_defs.h
ppp_tty.c I got tired of seeing all the cdevsw[major(foo)] all over the place. 1999-05-08 06:40:31 +00:00
radix.c Postpone route_init() until all domains are attached. 1999-04-29 03:22:19 +00:00
radix.h
raw_cb.c
raw_cb.h
raw_usrreq.c Suser() simplification: 1999-04-27 11:18:52 +00:00
route.c Postpone route_init() until all domains are attached. 1999-04-29 03:22:19 +00:00
route.h Add sufficient braces to keep egcs happy about potentially ambiguous 1999-05-06 18:13:11 +00:00
rtsock.c Postpone route_init() until all domains are attached. 1999-04-29 03:22:19 +00:00
slcompress.c
slcompress.h
slip.h
zlib.c Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 22:42:27 +00:00
zlib.h Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 22:42:27 +00:00