From: "Adam J. Richter" <adam@yggdrasil.com>
To: rusty@rustcorp.com.au
Cc: dwmw2@infradead.org, linux-kernel@vger.kernel.org
Subject: Re: Patch?: module-init-tools/modprobe.c - use modules.dep
Date: Mon, 25 Nov 2002 11:16:32 -0800 [thread overview]
Message-ID: <200211251916.LAA01830@baldur.yggdrasil.com> (raw)
Rusty Russell wrote:
>In message <20021121073912.A15349@adam.yggdrasil.com> you [Adam Richter] write:
>>
>> --xHFwDpU9dbj6ez1V
>> Content-Type: text/plain; charset=us-ascii
>> Content-Disposition: inline
>>
>> The following patch changes modprobe in module-init-tools-0.8
>> to use modules.dep.
>>
>> Benefits:
>>
>> - deletes a net of 594 lines of source code
>>
>> - shrinks modprobe from 14kB to 10kB (stripped, dynamically linked),
>> which is useful for boot images
>>
>> - should make modprobe as fast on systems with a lot of modules as
>> it was with the user level module loader,
>>
>> - Restores the "include" command to the aliases file, which makes
>> it simpler to have separate files for automatically generated
>> aliases and user customizations.
>>
>> - minor: eliminates ELF dependence from modprobe user level code
>Hmm, I like it. But I prefer to pull the depmod code into the source
>too, to keep it all under one roof.
I have been thinking about splitting depmod into two programs:
the program as originally designed that generates modules.dep and one
that generates hardware support files. The latter could be
distributed in the Linux kernel tree and perhaps installed in
/lib/modules/<version>/bin/ to make it easy to change support table
formats as needed.
>The ELF dependence will go back in eventually, but that's trivial.
I'm guessing this is for symbols. If it's for something other
reason, I'd be curious to know it.
>Hmm, Adam, do you want to reverse positions and become
>module-init-tools maintainer? I'll send patches to you, instead of
>vice versa. I'll release a 0.8 with the patches I have so far, then
>hand it over if you want.
>Thoughts?
>Rusty.
I'm honored by the offer, but I have not seen any convincing
accounting of real benefits and costs that shows that it is a win to
have the module loader in kernel memory. I might be interested in
maintaining a small modutils that could be compiled to support either
the in-kernel module load or a user level method (or both) so as to
avoid unnecessary differences between the user level and in-kernel
methods, given that the code that is specific to the kernel module
loader would be small.
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-25 19:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-25 19:16 Adam J. Richter [this message]
2002-11-25 23:34 ` Rusty Russell
-- strict thread matches above, loose matches on Subject: below --
2002-11-26 19:02 Adam J. Richter
2002-11-27 5:02 ` Rusty Russell
2002-11-27 23:17 ` Keith Owens
[not found] <200211252254.OAA04288@freya.yggdrasil.com>
2002-11-26 0:45 ` Rusty Russell
2002-11-21 15:39 Adam J. Richter
2002-11-25 5:47 ` Rusty Russell
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=200211251916.LAA01830@baldur.yggdrasil.com \
--to=adam@yggdrasil.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/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®