From owner-freebsd-current Thu Dec 3 07:58:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA20209 for freebsd-current-outgoing; Thu, 3 Dec 1998 07:58:02 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA20203 for ; Thu, 3 Dec 1998 07:58:01 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.1/8.9.1) id KAA27821; Thu, 3 Dec 1998 10:57:15 -0500 (EST) (envelope-from wollman) Date: Thu, 3 Dec 1998 10:57:15 -0500 (EST) From: Garrett Wollman Message-Id: <199812031557.KAA27821@khavrinen.lcs.mit.edu> To: Mike Smith Cc: Richard Wackerbarth , freebsd-current@FreeBSD.ORG Subject: Re: KLD - what's the idea? In-Reply-To: <199812030145.RAA02736@dingo.cdrom.com> References: <199812030145.RAA02736@dingo.cdrom.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < said: >> Cannot we unload all of the device recognition code once it has done its >> job and reload it each time the PCCARD finds a new arrival? > What "device recognition code"? If we keep the current model, it's all > in a user-space application. The current model is totally broken and doesn't work like anyone else's PC-Card implementation anywhere. This Is Bad since it makes drivers much harder to port than they need to be. > If we were to move the CIS ID : driver/rules match code into the > kernel, it would be so small and trivial that the effort involved in > loading/unloading it would be disproportionate to the space regained > (maybe 1 page). Under the new bus architecture (and also the standard Card Services model), the correct thing is to let each candidate driver look at the CIS and see whether it can handle the device -- for a simple driver, probably about 100 bytes. To put this on a page by itself so that it could be unloaded would waste most of a page. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message