From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: linux-kernel@vger.kernel.org
Subject: Re: function to zero out module ref count so module can be unloaded in 2.6 kernel?
Date: Tue, 19 Jul 2005 16:37:31 +0200 [thread overview]
Message-ID: <20050719143731.GD20065@lug-owl.de> (raw)
In-Reply-To: <5f83f60f05071907313ad3b186@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 947 bytes --]
On Tue, 2005-07-19 20:01:10 +0530, Vivek Dasgupta <vivek.dasgupta@gmail.com> wrote:
> In 2.4 kernel one could check MOD_IN_USE and repeatedly call
> MOD_DEC_USE_COUNT until the ref count drops to zero.
>
> Is there a function in 2.6 kernel that would zero out the ref count so
> that module can be unloaded ?
*plonk*
Have you ever thought about a non-zero usage count? Maybe there actually
*are* still some users so unloading the module may crash the entire
system?! So don't kick-out your security gear, but dig out the real bugs
which seem to manifest in execssive users at your side...
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
fuer einen Freien Staat voll Freier Buerger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2005-07-19 14:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-19 14:31 Vivek Dasgupta
2005-07-19 14:37 ` Jan-Benedict Glaw [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050719143731.GD20065@lug-owl.de \
--to=jbglaw@lug-owl.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®