[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <48F377F4.7070502@oracle.com>
Date: Mon, 13 Oct 2008 09:31:48 -0700
From: Randy Dunlap <randy.dunlap@...cle.com>
To: Neshama Parhoti <pneshama@...il.com>
CC: Adrian Bunk <bunk@...nel.org>, linux-kernel@...r.kernel.org
Subject: Re: section mismatch with a platform driver
Neshama Parhoti wrote:
> On Mon, Oct 13, 2008 at 6:01 PM, Randy Dunlap <randy.dunlap@...cle.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists