2013年10月10日星期四

linux kernel module loading order

Hi,
I now have two character device module , how to set the load order through code ?
------ Solution ---------------------------------------- ----
What code? shell or ? Inside the shell is simple, in order to , you can only be a judge one finished loading .

If you want maybe a dependent relationship with the device , the driver code which add dependencies , so dependent on the other one , so that you can certainly ensure that even after the first load , the load will go by dependencies front .
------ For reference only -------------------------------------- -
not a shell, is the C code, driver code inside how to achieve load dependencies it ?
------ For reference only -------------------------------------- -
study, study, observe , observe.
------ For reference only -------------------------------------- -

driver code dependencies are added refers to the use of the kernel's symbol table each call different functions within a module , but how to achieve control module probe order it ?
------ For reference only -------------------------------------- -

my side of the logical relationship between the two modules by the kernel symbol table calling each function to solve , but to say to you in this way is still very interested in , forget pointing ! !

没有评论:

发表评论