cvs commit: src/sbin/kldunload kldunload.8 kldunload.c

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Jul 13 13:50:44 PDT 2004


In message <40F44940.4020406 at root.org>, Nate Lawson writes:

>> The fact that we have many modules which know nothing about newbus
>> also look like a pretty solid argument for needing it at the module
>> layer.
>
>Let's focus on how to improve things, not the fact that things aren't 
>perfect right now.

But I think you miss the point:  This is about giving root the ability
to add a "damnit!" after "kldunload foo".

This is not about "eject ed0", this is about "evict the ed driver".

There is only one sane way to implement that:  Pass the flag to the
module and have the module decided if it is possible.

Only the module knows if there are memory references outstanding
which cannot be cleaned up (which would prevent unloading even
if -f is given) and only the module will know how to tear things
down as gracefully as possible when given a -f.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the cvs-all mailing list