From owner-cvs-all Wed Aug 15 8:11:16 2001 Delivered-To: cvs-all@freebsd.org Received: from tao.org.uk (genesis.tao.org.uk [212.135.162.62]) by hub.freebsd.org (Postfix) with ESMTP id 3A23737B417; Wed, 15 Aug 2001 08:11:05 -0700 (PDT) (envelope-from joe@tao.org.uk) Received: by tao.org.uk (Postfix, from userid 100) id 48BC93E; Wed, 15 Aug 2001 16:10:52 +0100 (BST) Date: Wed, 15 Aug 2001 16:10:50 +0100 From: Josef Karthauser To: Julian Elischer Cc: Bill Paul , "Brian F. Feldman" , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern link_elf.c Message-ID: <20010815161048.G864@tao.org.uk> References: <20010812164428.C797@tao.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="lHGcFxmlz1yfXmOs" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from julian@elischer.org on Mon, Aug 13, 2001 at 02:16:58PM -0700 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 --lHGcFxmlz1yfXmOs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 13, 2001 at 02:16:58PM -0700, Julian Elischer wrote: > A prloaded one is in a seperate set of pages which can be unmapped an > dfreed,=20 > 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. What would be nice is to be able to override a pre-compiled in module with one that kldloaded. IIRC ATM it's possible to kldload a module that already exists in the kernel (I tried it with md a few months ago). The question is what that means. Which md was I using? Joe p.s. it's quite possible that it's not possible to do this now. >=20 >=20 > On Sun, 12 Aug 2001, Josef Karthauser wrote: >=20 > > On Fri, Aug 10, 2001 at 04:46:55PM -0700, Bill Paul wrote: > > > >=20 > > > > I must be misremembering that at one point you couldn't unload a pr= eloaded=20 > > > > module... > > >=20 > > > It was probably due to this bug. :) > > >=20 > > > 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 wi= th > > > this fix. The only pre-loaded module you can't ever unload under any > > > circumstances is "kernel." > > >=20 > > > And if anybody out there says "Wait! I have patches to fix that!" I'll > > > scream. > >=20 > > 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. > >=20 > > Joe > >=20 --lHGcFxmlz1yfXmOs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjt6kPUACgkQXVIcjOaxUBb6FACg7gW3Dd6n6zPHUo1jjuvCKsxa 31AAnR8CyeV74+jgKY8k+ViBl2XbMzTY =rGjx -----END PGP SIGNATURE----- --lHGcFxmlz1yfXmOs-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message