Re: How to load kernel module automatic?

From: Navdeep Parhar <nparhar_at_gmail.com>
Date: Tue, 6 Dec 2016 06:53:03 -0800
On Tue, Dec 06, 2016 at 05:43:38PM +0300, Slawa Olhovchenkov wrote:
> On Tue, Dec 06, 2016 at 06:41:14AM -0800, Navdeep Parhar wrote:
> 
> > On Tue, Dec 06, 2016 at 05:34:56PM +0300, Slawa Olhovchenkov wrote:
> > > On Tue, Dec 06, 2016 at 06:25:44AM -0800, Navdeep Parhar wrote:
> > > 
> > > > On Tue, Dec 06, 2016 at 02:47:15PM +0300, 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?
> > > > 
> > > > Something is running "ifconfig cxgbe|cxl|cc" on your system.  ifconfig
> > > > can figure out the name of the module from the name of the ifnet and
> > > > will kldload it if it isn't in the kernel already.
> > > 
> > > What is 'something'?
> > 
> > A script that's running via devd or some other mechanism.
> 
> Its not clear to me what exact event cause devd start such script.

Doesn't have to be devd.  Could be any automated script running
ifconfig.  Leave this running and see if ifconfig is ever called with
(cxgbe|cxl|cc)<n> as parameter.  If it is then that's what's loading
cxgbe(4) automatically.

dtrace -n 'proc:::exec-success /execname == "ifconfig"/ {trace(curpsinfo->pr_psargs);}

Regards,
Navdeep
Received on Tue Dec 06 2016 - 13:53:08 UTC

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