March 9, 2019
5 p.m.
On Sat, 09 Mar 2019 13:04:44 +0300, Lev Olshvang said:
There is also modulus.dep file which depmod builds. You can just grep to find which modulus depends.
Note that the modules.dep file only tells modprobe "If you're loading module A, you need to load B first to get some symbols registered". If B is built-in to the kernel, its EXPORT_SYMBOLS are already available, so it doesn't need to be listed in modules.dep. Also, it doesn't record build-time dependencies - it totally assumes that A and B were built against the same source tree and that Kbuild took care of making sure that any source code changes to B that affect A caused a rebuild of A to happen.