Subject: Re: foo_init()s in main() [was: CVS commit: src/sys]
To: None <simonb@wasabisystems.com>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-kern
Date: 11/22/2005 18:51:54
> > Module Name:	src
> > Committed By:	martin
> > Date:		Fri Nov 18 21:55:14 UTC 2005
> > 
> > Modified Files:
> > 
> > 	src/sys/conf: files
> > 	src/sys/kern: init_main.c
> > 
> > Log Message:
> > 
> > Only call ieee80211_init() in kernels that include some wlan stuff.
> 
> It really seems like we should do something to automate this, say based
> on the FreeBSD sysinit stuff or linksets or something.  The number of
> #ifdefs and includes of needs-flags files and calls to foo_init() in
> main() is getting unwieldy.

for ieee80211_init,
what's wrong with initializing it on the first use?

YAMAMOTO Takashi