我在内核驱动程序 1 (KD1.ko) 中有一个函数:
static void test (void);
EXPORT_SYMBOL(test);
static void test() {
printk("<<< MISSION DONE >>>.\n");
}
在内核驱动程序 2 (KD2.ko) 中:
extern static void test (void);
我试着这样调用它。
我设法 insmod KD1.ko,但我无法 insmod KD2.ko。 我错过了什么吗?
最佳答案
关于c - 无法 insmod 或使用内核间模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21746378/