Re: How to load kernel module automatic?

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Tue, 6 Dec 2016 13:59:27 +0100
On 12/06/16 13:52, Slawa Olhovchenkov wrote:
> On Tue, Dec 06, 2016 at 12:50:40PM +0100, Hans Petter Selasky wrote:
>
>> On 12/06/16 12:47, Slawa Olhovchenkov wrote:
>>> Now I am try to update fw in chelsio card.
>>> Firmware can't be updated if card was running (interface go to UP).
>>> I am try to unload if_cxgbe module, check module unloaded... and after
>>> short time see module loaded again!
>>> How is this possible?
>>
>> Hi,
>>
>> devd is likely re-loading the .ko for you.
>
> What event is?
> How devd guess module name for load?

Hi,

Usually the kernel generates a no-driver found event, and that triggers 
devd to reload the driver based on its configuration scripts. Warner 
Losh, has done some work to integrate PCI device hints in the linker 
hints. I'm not sure if his work has been committed yet.

Try to stop devd temporarily.

--HPS
Received on Tue Dec 06 2016 - 11:59:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:09 UTC