From: "Adam J. Richter" <adam@yggdrasil.com>
To: zippel@linux-m68k.org
Cc: linux-kernel@vger.kernel.org, vandrove@vc.cvut.cz
Subject: Re: [RFC] module fs or how to not break everything at once
Date: Thu, 21 Nov 2002 15:59:47 -0800 [thread overview]
Message-ID: <200211212359.PAA16061@adam.yggdrasil.com> (raw)
Here are some more comments on modfs or modules in general:
4. Regarding what I said about leaving symbol tracking to
user space, I'd like to add a note about reliability. It is not
necessary for rmmod to reliably remove symbols from these tables.
insmod can check for symbols that map to places that are no longer
allocated to modules and remove stale symbols before attempting to
load a new module.
5. You should not need to do anything special in modfs
to support init sections. That can be done by loading two separate
modules and then removing the one corresponding to an init section.
6. For module_init functions, consider taking a pointer to
an array of init functions and a count. That would be compatible
with the system for built-in kernel object files, so it would
eliminate a difference in linux/include/init.h. You could also do
the same for module_exit functions. This change would also
allow linking .o's together more or less arbitrarily into single
modules, which would allow loading of modules that have reference
loops among them.
7. Instead of module parameters, consider just supporting
__setup() declarations used in kernel objects. These would then
process a string that you'd pass. insmod might want to prepend the
contents of /proc/cmdline to that string so that people could pass
command lines at the boot prompt even if the driver they wanted to
talk to were a module. This change would eliminate another difference
between module and core kernel objects. Ultimately, I would like
eliminate any compilation difference between kernel and module
objects. This would allow deferring the decision about what should be
in modules and what should be in the kernel until link time. Not only
would this slightly simplify the build process and modules' source
code, but it would also allow binary distributions for a wider
variety of uses.
Adam J. Richter __ ______________ 575 Oroville Road
adam@yggdrasil.com \ / Milpitas, California 95035
+1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."
next reply other threads:[~2002-11-21 23:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-21 23:59 Adam J. Richter [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-11-23 4:58 Adam J. Richter
2002-11-23 12:34 ` Roman Zippel
2002-11-22 22:11 Adam J. Richter
2002-11-22 23:24 ` Roman Zippel
2002-11-22 18:10 Adam J. Richter
2002-11-22 20:28 ` Roman Zippel
2002-11-21 23:21 Adam J. Richter
2002-11-22 10:50 ` Roman Zippel
2002-11-20 21:06 Roman Zippel
2002-11-20 22:03 ` Petr Vandrovec
2002-11-20 23:32 ` Roman Zippel
2002-11-21 1:59 ` Petr Vandrovec
2002-11-21 19:46 ` Roman Zippel
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=200211212359.PAA16061@adam.yggdrasil.com \
--to=adam@yggdrasil.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vandrove@vc.cvut.cz \
--cc=zippel@linux-m68k.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®