我有一个专有的Linux模块,它可以在包含函数foo的第二个专有模块之前或之后加载。
在配置动态时,我希望我的第一个模块能够查找第二个模块的符号foo,如果发现调用它的话。
总的思想(在松散语法中)是这样的:
/* check if the module/symbol can be found */
module, foo_cb = lookup_for_a_symbol("foo");
if (foo_cb && module) {
/* increment the refcnt to make sure the module will no