From owner-cvs-all Fri Aug 10 17: 7:46 2001 Delivered-To: cvs-all@freebsd.org Received: from green.bikeshed.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B638737B403; Fri, 10 Aug 2001 17:07:38 -0700 (PDT) (envelope-from green@green.bikeshed.org) Received: from localhost (green@localhost) by green.bikeshed.org (8.11.4/8.11.1) with ESMTP id f7B07bf85945; Fri, 10 Aug 2001 20:07:38 -0400 (EDT) (envelope-from green@green.bikeshed.org) Message-Id: <200108110007.f7B07bf85945@green.bikeshed.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: wpaul@FreeBSD.ORG (Bill Paul) Cc: green@FreeBSD.ORG (Brian F. Feldman), cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/kern link_elf.c In-Reply-To: Message from wpaul@FreeBSD.ORG (Bill Paul) of "Fri, 10 Aug 2001 16:46:55 PDT." <20010810234655.7A24237B401@hub.freebsd.org> From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 10 Aug 2001 20:07:37 -0400 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG wpaul@FreeBSD.ORG (Bill Paul) wrote: > > > > I must be misremembering that at one point you couldn't unload a preloaded > > module... > > It was probably due to this bug. :) > > A pre-loaded module looks exactly the same to the system as a module > loaded after system boot. If you pre-load a driver module on which the > system depends, i.e. the driver for the disk controller on which your > root filesystem resides, then you can't unload it without catastrophic > results. But that's a special case. In my case, I'm trying to unload a > driver for a network card which is idle, and it works properly now with > this fix. The only pre-loaded module you can't ever unload under any > circumstances is "kernel." > > And if anybody out there says "Wait! I have patches to fix that!" I'll > scream. Certainly not! But if you're feeling in the mood to be able to unmount the root file system... -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message