From owner-cvs-all Fri Aug 10 19:42:18 2001 Delivered-To: cvs-all@freebsd.org Received: from nasu.utsunomiya-u.ac.jp (nasu.utsunomiya-u.ac.jp [160.12.128.3]) by hub.freebsd.org (Postfix) with ESMTP id AED5D37B409; Fri, 10 Aug 2001 19:42:12 -0700 (PDT) (envelope-from yokota@zodiac.mech.utsunomiya-u.ac.jp) Received: from nantai.utsunomiya-u.ac.jp by nasu.utsunomiya-u.ac.jp (8.11.2/1.1.29.3/26Jan01-1134AM) id f7B2gBc209778; Sat, 11 Aug 2001 11:42:11 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp by nantai.utsunomiya-u.ac.jp (8.11.2/1.1.29.3/30Jan01-0241PM) id f7B2gBK434280; Sat, 11 Aug 2001 11:42:11 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:k1JSUPQ20braOBeKcOL7at/xOaRyXH4/@zodiac.mech.utsunomiya-u.ac.jp [160.12.43.7]) by zodiac.mech.utsunomiya-u.ac.jp (8.9.3+3.2W/3.7W/zodiac-May2000) with ESMTP id LAA20177; Sat, 11 Aug 2001 11:51:50 +0900 (JST) Message-Id: <200108110251.LAA20177@zodiac.mech.utsunomiya-u.ac.jp> To: wpaul@freebsd.org (Bill Paul) Cc: green@freebsd.org (Brian F. Feldman), cvs-committers@freebsd.org, cvs-all@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: cvs commit: src/sys/kern link_elf.c In-reply-to: Your message of "Fri, 10 Aug 2001 16:46:55 MST." <20010810234655.7A24237B401@hub.freebsd.org> References: <20010810234655.7A24237B401@hub.freebsd.org> Date: Sat, 11 Aug 2001 11:51:49 +0900 From: Kazutaka YOKOTA 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 >> 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." Um, would tell me more about preloaded modules? Is the module text and data image of the preloaded module in the memory space free()ed? I seem to recall it wasn't the case before. So, the physical memory used by a preloaded module remained occupied after this module is unloaded, and never re-used... Kazu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message