LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to find module dependencies for initrd? depmod? (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-module-dependencies-for-initrd-depmod-685620/)

newtovanilla 11-23-2008 05:38 PM

How to find module dependencies for initrd? depmod?
 
Linux 2.6.22

From the man pages for the command "depmod", "These dependencies can get quite complex." What I am trying to figure out, is if there is a command that I can run to tell me what dependencies a module has, one at a time. For example, if I want to find out what dependencies the module "mymodule.ko" has, what command can I use to find out?

Second question, how can I find out what order to load modules so that the dependencies get worked out? Or, does it not matter what order I load modules in, because Linux can figure it out?

jcliburn 11-23-2008 06:42 PM

The command "modinfo" will provide *some* dependency information, but it won't produce a handy dependency chain, if that's what you're looking for.

The few times I spun my own initrd, the module order didn't seem to matter.


All times are GMT -5. The time now is 02:43 AM.