From owner-freebsd-stable Mon Nov 5 11:35:18 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id AAD5037B416 for ; Mon, 5 Nov 2001 11:35:12 -0800 (PST) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.6/8.11.3) with ESMTP id fA5Ja3m03196; Mon, 5 Nov 2001 11:36:03 -0800 (PST) (envelope-from msmith@mass.dis.org) Message-Id: <200111051936.fA5Ja3m03196@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Luigi Rizzo Cc: stable@freebsd.org Subject: Re: For review: preventing panics when unloading compiled-in modules In-reply-to: Your message of "Mon, 05 Nov 2001 11:18:39 PST." <20011105111839.A75789@iguana.aciri.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 05 Nov 2001 11:36:03 -0800 From: Mike Smith Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > # kldload /ipfw.ko > XX module_register: module ipfw already exists! > XX linker_file_sysinit "ipfw.ko" failed to register! 17 > kldload: can't load /ipfw.ko: File exists > # kldstat > Id Refs Address Size Name > 1 2 0xc0000000 40000000 kernel > 2 1 0xc38aa000 8000 ipfw.ko > # kldunload ipfw.ko > XX linkerunload: attempt to unload file that was loaded by the kernel > kldunload: can't unload file: Device busy > > Technically, after the load, "ipfw.ko" is not a separate module, > so maybe one would like not to see it in the list. On the other > hand, the functionality associated with the module is present, > so this is not too bad... It's bad, since you're listing the file as loaded when in fact it wasn't. There's still confusion about the difference between a "file" (a loadable object) and a "module". -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message