From: Ian Kumlien <pomac@vapor.com>
To: linux-kernel@vger.kernel.org
Subject: Module removal [newbie thoughts]
Date: 08 Jul 2002 17:27:12 +0200 [thread overview]
Message-ID: <1026142032.2058.24.camel@big.pomac.com> (raw)
Hi,(CC me)
As a newbie i'm kinda expecting flames here... but, I just had to share
my thoughts =/
Couldn't the kernel module subsystem work something like this:
When a module is loaded it gets it's own mutex (for shared locks).
Each program/module/kernel part that uses it obtains a lock.
If we load a new module that replaces a older module we could have lock
migrations to the new module.
This would make sure that all use of the module has ceased before it's
removed.
This would also require a "usage count" per module/kernel/program
though. But that could be included in the module subsystem imho or am i
wrong?
If a module is replaced by a newer/other module how do we manage the
transgression to the new module? Well depending on how the sub system
works it could be done automagically i think...
One problem with this is that it'll use more memory...
And i bet that there are better less complicated ways of doing this but
i really think that the modules should be removable, it might take a
hour or so (worst case senario) but it should be removed eventually...
//Ian Kumlien
PS. This is more or less a brainfart... so there might be huge holes in
the idea etc. And don't forget to CC me since i'm not on the list.
DS.
reply other threads:[~2002-07-08 15:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1026142032.2058.24.camel@big.pomac.com \
--to=pomac@vapor.com \
--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®