无法安装或使用内核间模块 [英] Not able to insmod or use inter-kernel module(s)
本文介绍了无法安装或使用内核间模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在内核驱动程序1(KD1.ko)中具有一个功能:
I have a function in kernel driver 1 (KD1.ko):
static void test (void);
EXPORT_SYMBOL(test);
static void test() {
printk("<<< MISSION DONE >>>.\n");
}
在内核驱动程序2(KD2.ko)中:
In Kernel driver 2 (KD2.ko):
extern static void test (void);
我试图称呼它.
我设法安装了KD1.ko,但无法安装KD2.ko. 我想念什么吗?
I managed to insmod KD1.ko, but I was not able to insmod KD2.ko. Am I missing something?
推荐答案
test()
是static
.
因此您不能导出静态函数.
so you cannot export static functions.
http://osdir.com/ml/linux. kernel.kernelnewbies/2003-02/msg00149.html
这篇关于无法安装或使用内核间模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文