modprobe: rework module insertion without tree traversing
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 12 Jan 2012 04:21:26 +0000 (02:21 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 12 Jan 2012 16:34:19 +0000 (14:34 -0200)
commit0cf2832a31b8c6d7b42def2edfac929863c180d2
treeda929eadc369a35c96df4c5ed1bd16c0a6a4b24d
parent9f11c43d8dcc6274f06fd0091fefaef557a86bfd
modprobe: rework module insertion without tree traversing

The dependencies line that comes from modules.dep already contains all
the dependencies necessary to insert that module. Therefore modprobe
doesn't have to do the recursion between the modules in order to load a
module. All we have to do is to load in order:

For the module being loaded:
----------------------------

1. softdeps
2. deps
3. module
4. postdeps

For any of the dependencies:
----------------------------

1. softdeps
2. module
3. softdeps
tools/kmod-modprobe.c