]> git.ipfire.org Git - thirdparty/kmod.git/commit
Add implementation of modprobe's insertion
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 27 Dec 2011 13:40:10 +0000 (11:40 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 27 Dec 2011 13:55:22 +0000 (11:55 -0200)
commitddbda02286f3b8fa58fb587403f2f9f0e9b4a147
tree17569e6ec3143172be776959a12ccd357e4a0507
parent2bd7cbf64409f11497a6bfb6d1d998a869783a95
Add implementation of modprobe's insertion

Treat module insertion as modprobe does: look for (soft-)dependencies, run
install commands, apply blacklist.

The difference with the blacklist is that it's applied to all modules,
including the dependencies. If you want to apply a blacklist only on the
module it's better to call the filter function by yourself.

This implementation detects loops caused by poorly written
soft-dependencies and fail gracefully, printing the loop to the log.
libkmod/libkmod-module.c
libkmod/libkmod.h
libkmod/libkmod.sym