Date: Tue, 13 Jul 2004 22:50:43 +0200 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: Nate Lawson <nate@root.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/kldunload kldunload.8 kldunload.c Message-ID: <25281.1089751843@critter.freebsd.dk> In-Reply-To: Your message of "Tue, 13 Jul 2004 13:42:40 PDT." <40F44940.4020406@root.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <40F44940.4020406@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@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?25281.1089751843>