From owner-freebsd-stable Wed Jul 25 15:53:15 2001 Delivered-To: freebsd-stable@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 036F037B405 for ; Wed, 25 Jul 2001 15:53:09 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id f6PMkbP18060; Wed, 25 Jul 2001 15:46:37 -0700 Date: Wed, 25 Jul 2001 15:46:37 -0700 From: Brooks Davis To: Randall Hopper Cc: stable@FreeBSD.ORG Subject: Re: kldunload --> SYSTEM FREEZE Message-ID: <20010725154637.A15193@Odin.AC.HMC.Edu> References: <20010725182403.A17617@nc.rr.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010725182403.A17617@nc.rr.com>; from aa8vb@nc.rr.com on Wed, Jul 25, 2001 at 06:24:03PM -0400 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 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 25, 2001 at 06:24:03PM -0400, Randall Hopper wrote: > Was experimenting with mods to the DRI modules on -stable, and half = to > my surprise when I first tried a "kldunload mga.ko" (to then reload the n= ew > version) my system locked hard. I know what happened. But I'm wondering, > what "should" happen. >=20 > Would you say: >=20 > a) Doh! Well of "course" it's going to lock up stupid! Don't do th= at! >=20 > b) It really shouldn't lock up. It should flat refuse to unload, but > something is apparently broken. >=20 > c) It should unload, but a pre-unload "cleanup hook" probably isn't > implemented. It should really be c, but if not c then b. Many drivers were converted to the KLD framework with bogus unloads which just return EINVAL which should stop the unload according to the code in kern/kern_linker.c. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7X0xMXY6L6fI4GtQRAvP/AKCk1HYiD7HE9DNwsg+toYkn5dfl0wCgn1S2 rfGWF5HL2O/jgVlpJ44djGw= =yklG -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message