[lkml]   [2002]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Question about pseudo filesystems

On Mon, 9 Sep 2002, Jamie Lokier wrote:

> Daniel Phillips wrote:
> > > The expected behaviour is as it has always been: rmmod fails if anyone
> > > is using the module, and succeeds if nobody is using the module. The
> > > garbage collection of modules is done using "rmmod -a" periodically, as
> > > it always has been.
> >
> > When you say 'rmmod modulename' the module is supposed to be removed, if
> > it can be. That is the user's expectation, and qualifies as 'obviously
> > correct'.
> >
> > Garbage collecting should *not* be the primary mechanism for removing
> > modules, that is what rmmod is for. Neither should a filesystem module
> > magically disappear from the system just because the last mount went
> > away, unless the module writer very specifically desires that. This is
> > where the obfuscating opinion is coming from: Al has come up with an
> > application where he wants the magic disappearing behavior and wants
> > to impose it on the rest of the world, regardless of whether it makes
> > sense.


> I think you've misunderstood. The module does _not_ disappear when the
> last file reference is closed. It's reference count is decremented,
> that is all. Just the same as if you managed the reference count
> yourself. You still need rmmod to actually remove the module.

Never let the facts to stand in a way of a rant. Or presume that ability to
write implies ability to read, for that matter...

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.096 / U:1.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site