How to load kernel module automatic?

Slawa Olhovchenkov slw at zxy.spb.ru
Tue Dec 6 14:59:18 UTC 2016


On Tue, Dec 06, 2016 at 06:53:03AM -0800, Navdeep Parhar wrote:

> 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

No any automated scripts.

> (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);}

ok, i am do it tomorrow.


More information about the freebsd-current mailing list