Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Dec 2016 06:53:03 -0800
From:      Navdeep Parhar <nparhar@gmail.com>
To:        Slawa Olhovchenkov <slw@zxy.spb.ru>
Cc:        freebsd-current@freebsd.org
Subject:   Re: How to load kernel module automatic?
Message-ID:  <20161206145303.GH14137@ox>
In-Reply-To: <20161206144338.GR99742@zxy.spb.ru>
References:  <20161206114715.GP57876@zxy.spb.ru> <20161206142544.GF14137@ox> <20161206143456.GQ99742@zxy.spb.ru> <20161206144114.GG14137@ox> <20161206144338.GR99742@zxy.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161206145303.GH14137>