Messages in this thread | | | Date | Mon, 13 Oct 2008 09:31:48 -0700 | From | Randy Dunlap <> | Subject | Re: section mismatch with a platform driver |
| |
Neshama Parhoti wrote: > On Mon, Oct 13, 2008 at 6:01 PM, Randy Dunlap <randy.dunlap@oracle.com> wrote: >> A probe function can be called at any time -- i.e., after system init >> has completed, so discarding the __init function my_probe_func() is BAD, >> dangerous, BUGgy. > > Thanks for the explanation! > > Does that mean that all drivers with __init in their probe functions are bogus ?
It depends. If your platform doesn't support hotplug, then it's possible that the probe function is only called during system init, so it would be OK.
And in general, if a kernel is built without hotplug support, then the __init probe functions are probably safe. But I'm not sure about it.
-- ~Randy
| |