From owner-cvs-all Mon Aug 13 14:14:23 2001 Delivered-To: cvs-all@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 5A26F37B413; Mon, 13 Aug 2001 14:14:18 -0700 (PDT) (envelope-from julian@elischer.org) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id OAA03874; Mon, 13 Aug 2001 14:16:59 -0700 (PDT) Date: Mon, 13 Aug 2001 14:16:58 -0700 (PDT) From: Julian Elischer To: Josef Karthauser Cc: Bill Paul , "Brian F. Feldman" , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern link_elf.c In-Reply-To: <20010812164428.C797@tao.org.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 A prloaded one is in a seperate set of pages which can be unmapped an dfreed, where a precompiled oneis integrally mixed in with the kernel binary, with no page allignment. You couldn't unlink teh pages without unlinking bits of other modules too. On Sun, 12 Aug 2001, Josef Karthauser wrote: > On Fri, Aug 10, 2001 at 04:46:55PM -0700, 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. > > What's the difference between a pre-loaded module, i.e. loaded by > boot/loader, and a pre-compiled in module? It would be really cool > if one could unload the latter type, and kldload a new version of > it for testing. AFAIR this wasn't possible last time I tried it. > > Joe > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message