Subject: Re: foo_init()s in main() [was: CVS commit: src/sys]
To: None <email@example.com>
From: YAMAMOTO Takashi <firstname.lastname@example.org>
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.
what's wrong with initializing it on the first use?