]> git.ipfire.org Git - thirdparty/kmod.git/commit
kmod-module: lookup: search modules.builtin file too
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 16 Feb 2012 22:43:16 +0000 (20:43 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 16 Feb 2012 23:18:00 +0000 (21:18 -0200)
commit3805274bf5e1e0acbd072ac7d523db8c8057130c
treed76e86a4042b6514782bc8edb8dff67c30f56467
parenta7f5300d50b7a45667322877132f7c321cd9ac35
kmod-module: lookup: search modules.builtin file too

Search modules.builtin file before saying the module was not found.
Note: these "modules" should not appear as dependencies of other modules
(in modules.dep) even if they appear in modinfo. This fixes the return
code of modprobe with builtin modules.

Also fixes a small coding style issue in module_is_inkernel().
TODO
libkmod/libkmod-module.c
libkmod/libkmod-private.h
libkmod/libkmod.c
libkmod/libkmod.h
testsuite/test-modprobe.c