Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Dec 1998 10:57:15 -0500 (EST)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Mike Smith <mike@smith.net.au>
Cc:        Richard Wackerbarth <rkw@nomad.dataplex.net>, freebsd-current@FreeBSD.ORG
Subject:   Re: KLD - what's the idea? 
Message-ID:  <199812031557.KAA27821@khavrinen.lcs.mit.edu>
In-Reply-To: <199812030145.RAA02736@dingo.cdrom.com>
References:  <Pine.BSF.4.05.9812021924270.1405-100000@nomad.dataplex.net> <199812030145.RAA02736@dingo.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Wed, 02 Dec 1998 17:45:34 -0800, Mike Smith <mike@smith.net.au> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812031557.KAA27821>