Re: negative mod use count

From: Russell King (
Date: Wed Feb 28 2001 - 18:01:53 EST

On Wed, Feb 28, 2001 at 09:31:46PM +0100, Frank v Waveren wrote:
> On Wed, Feb 28, 2001 at 03:08:11PM -0500, Brian Gerst wrote:
> > > what does negative module use count mean?
> > A bugged module.
> Not at all. A non-zero usage count means the module can't be unloaded.
> Whatever the module does with the usage count apart from that is
> completely it's own choice.

A negative module use count (specifically "-1") depends on whether a
module has a "can_unload" routine. If it does not have a "can_unload"
routine, then chances are either the module decided "I can never be
removed" or else the module is buggy.

However, if a "can_unload" routine does exist (as in ipv6) then the
module use count is unconditionally set to "-1".

Russell King (                The developer of ARM Linux

- 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

This archive was generated by hypermail 2b29 : Wed Feb 28 2001 - 21:00:18 EST