From owner-freebsd-emulation@FreeBSD.ORG Thu Jan 3 20:37:44 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DA605A70 for ; Thu, 3 Jan 2013 20:37:44 +0000 (UTC) (envelope-from mailinglists@martinlaabs.de) Received: from relay02.alfahosting-server.de (relay02.alfahosting-server.de [109.237.142.238]) by mx1.freebsd.org (Postfix) with ESMTP id 727461E8 for ; Thu, 3 Jan 2013 20:37:39 +0000 (UTC) Received: by relay02.alfahosting-server.de (Postfix, from userid 1001) id 183A032C16E5; Thu, 3 Jan 2013 21:37:38 +0100 (CET) X-Spam-DCC: : X-Spam-Level: X-Spam-Status: No, score=0.0 required=7.0 tests=BAYES_50 autolearn=disabled version=3.2.5 Received: from alfa3018.alfahosting-server.de (alfa3018.alfahosting-server.de [109.237.140.30]) by relay02.alfahosting-server.de (Postfix) with ESMTP id EC8D132C1765 for ; Thu, 3 Jan 2013 21:37:34 +0100 (CET) Received: from pc.martinlaabs.de (p54B34C1B.dip.t-dialin.net [84.179.76.27]) by alfa3018.alfahosting-server.de (Postfix) with ESMTPSA id AB624515C396 for ; Thu, 3 Jan 2013 21:37:34 +0100 (CET) Message-ID: <50E5EC0D.8040904@martinlaabs.de> Date: Thu, 03 Jan 2013 21:37:33 +0100 From: Martin Laabs User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Subject: Reload linux.ko while system is running Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Status: No X-Virus-Checker-Version: clamassassin 1.2.4 with ClamAV 0.97.3/16329/Thu Jan 3 19:39:18 2013 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 20:37:44 -0000 Hi, is it possible to reload the linux.ko module without restarting? At the moment I try to trace bug 174933 (http://www.freebsd.org/cgi/query-pr.cgi?pr=174933) Therefore I'd like to put some debugging output message into the linuxulator module. I tired the following: umount /compat/linux/sys umount /compat/linux/proc kldunload linprocfs kldunload linsysfs kldunload linux Unfortunately the last command fails. kldunload itself tells me kldunload: can't unload file: Device busy and dmesg say kldunload: attempt to unload file that was loaded by the kernel The latter (dmesg) error seems to be more appropriate. Anyway - is there a way to reload the linux.ko module without restarting? Thank you, Martin Laabs