From owner-freebsd-current@freebsd.org Tue Dec 6 14:59:18 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CCF3C690BD for ; Tue, 6 Dec 2016 14:59:18 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D3E461AE9 for ; Tue, 6 Dec 2016 14:59:17 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1cEHD8-0000vO-RD for freebsd-current@freebsd.org; Tue, 06 Dec 2016 17:59:14 +0300 Date: Tue, 6 Dec 2016 17:59:14 +0300 From: Slawa Olhovchenkov To: freebsd-current@freebsd.org Subject: Re: How to load kernel module automatic? Message-ID: <20161206145914.GS99742@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> <20161206145303.GH14137@ox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161206145303.GH14137@ox> User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2016 14:59:18 -0000 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) 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.