MODPROBE: modules.dep with bundled aliases

Bernhard Fischer rep.dot.nop at gmail.com
Tue Jun 17 15:49:31 UTC 2008


On Tue, Jun 17, 2008 at 03:33:39PM +0000, Vladimir Dronnikov wrote:
>I would go further, Bernhard. Look. I added bundling modules.symbols
>to depmod. Modules.dep became beyond 100Kb in size. Parsing it every
>time modprobe is invoked is a pain for system. Moreover, we have to
>"encrypt" dependencies and aliases in one place (depmod) and then
>"decrypt" them in the other (modprobe).
>I suggest to invent some kind of binary representation of modules.dep
>for BB. That way we could get rid of a lot of weird code both in
>depmod and in modprobe, shrink them and make them much faster. The
>rationale is that a user can edit /etc/modprobe.d/* for customization,
>then run depmod to compile binary modules.dep. Since intrinsic
>dependencies and aliases are hardly a subject to edit, this sounds
>reasonable. I suggest to make in FEATUREd so that one can choose
>modules.dep at configuration time.
>
>Would you rephrase the idea in better English and post to the list, Bernhard?

Your english is perfectly fine, let's see what other people think about
the idea.

Yann, vda, ping?
>
>TIA,
>--
>Vladimir
>
>
>2008/6/17, Bernhard Fischer <rep.dot.nop at gmail.com>:
>> On Mon, Jun 16, 2008 at 12:39:03PM -0700, dronnikov at gmail.com wrote:
>>>Hello!
>>
>> hi
>>>
>>>IMHO it is a fruitful idea to keep all intrinsic module info in just one
>>> file: modules.dep.
>>>Attached patch frees 300 bytes if we employ this idea.
>>
>> Sounds promising.
>> I think that p = skip_whitespace(p); is just fine, no?
>>
>>>Could you apply it so I could use vanilla svn version for my system nightly
>>> build?
>>
>> Please send your patch to the list and CC Yann (the modprobe maintainer)
>> so he can comment on it.
>>>
>>>TIA,
>>>
>>>--
>>>Vladimir
>>>
>>>P.S. TODO file states we still have no depmod in BB...
>>
>> Ah, thanks for the hint, i'll remove it in a minute.
>> cheers,
>>



More information about the busybox mailing list