* negative mod use count
@ 2001-02-28 19:58 Boris Dragovic
2001-02-28 20:08 ` Brian Gerst
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Boris Dragovic @ 2001-02-28 19:58 UTC (permalink / raw)
To: linux-kernel
hi,
what does negative module use count mean?
lynx
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: negative mod use count
2001-02-28 19:58 negative mod use count Boris Dragovic
@ 2001-02-28 20:08 ` Brian Gerst
2001-02-28 20:31 ` Frank v Waveren
2001-03-01 0:04 ` Keith Owens
2001-03-02 0:55 ` Dr. Kelsey Hudson
2 siblings, 1 reply; 8+ messages in thread
From: Brian Gerst @ 2001-02-28 20:08 UTC (permalink / raw)
To: Boris Dragovic; +Cc: linux-kernel
Boris Dragovic wrote:
>
> hi,
> what does negative module use count mean?
A bugged module.
--
Brian Gerst
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: negative mod use count
2001-02-28 20:08 ` Brian Gerst
@ 2001-02-28 20:31 ` Frank v Waveren
2001-02-28 23:01 ` Russell King
0 siblings, 1 reply; 8+ messages in thread
From: Frank v Waveren @ 2001-02-28 20:31 UTC (permalink / raw)
To: Brian Gerst; +Cc: Boris Dragovic, linux-kernel
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.
--
Frank v Waveren Fingerprint: 0EDB 8787
fvw@[var.cx|dse.nl|stack.nl|chello.nl] ICQ#10074100 09B9 6EF5 6425 B855
Public key: http://www.var.cx/pubkey/fvw@var.cx-gpg 7179 3036 E136 B85D
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: negative mod use count
2001-02-28 20:31 ` Frank v Waveren
@ 2001-02-28 23:01 ` Russell King
0 siblings, 0 replies; 8+ messages in thread
From: Russell King @ 2001-02-28 23:01 UTC (permalink / raw)
To: Frank v Waveren; +Cc: Brian Gerst, Boris Dragovic, linux-kernel
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 (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: negative mod use count
2001-02-28 19:58 negative mod use count Boris Dragovic
2001-02-28 20:08 ` Brian Gerst
@ 2001-03-01 0:04 ` Keith Owens
2001-03-02 0:55 ` Dr. Kelsey Hudson
2 siblings, 0 replies; 8+ messages in thread
From: Keith Owens @ 2001-03-01 0:04 UTC (permalink / raw)
To: Boris Dragovic; +Cc: linux-kernel
On Wed, 28 Feb 2001 20:58:06 +0100,
Boris Dragovic <lynx@falcon.etf.bg.ac.yu> wrote:
>what does negative module use count mean?
Either an extra MOD_DEC_USE_COUNT was issued (buggy code) or the module
has a can_unload() function. When modules define a can_unload()
routine then the use count is always displayed as -1 because the module
decides if it can be unloaded.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: negative mod use count
2001-02-28 19:58 negative mod use count Boris Dragovic
2001-02-28 20:08 ` Brian Gerst
2001-03-01 0:04 ` Keith Owens
@ 2001-03-02 0:55 ` Dr. Kelsey Hudson
2001-03-02 10:17 ` Russell King
2 siblings, 1 reply; 8+ messages in thread
From: Dr. Kelsey Hudson @ 2001-03-02 0:55 UTC (permalink / raw)
To: Boris Dragovic; +Cc: linux-kernel
On Wed, 28 Feb 2001, Boris Dragovic wrote:
> what does negative module use count mean?
That means that there's a bug in someone's driver.
For some reason, the function to decrement the module use is called more
than once when a controlling process releases use of a module.
This will prevent you from being able to 'rmmod' or 'modprobe -r' it; a
"Device or resource busy" error or similar will result IIRC.
Submit a bug to the driver maintainer.
Kelsey Hudson khudson@ctica.com
Software Engineer
Compendium Technologies, Inc (619) 725-0771
---------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2001-03-02 13:44 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-28 19:58 negative mod use count Boris Dragovic
2001-02-28 20:08 ` Brian Gerst
2001-02-28 20:31 ` Frank v Waveren
2001-02-28 23:01 ` Russell King
2001-03-01 0:04 ` Keith Owens
2001-03-02 0:55 ` Dr. Kelsey Hudson
2001-03-02 10:17 ` Russell King
2001-03-02 13:30 ` Boris Dragovic
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.