自己的内核无法安装啊!?
我编了段程序用到了int init_module()
{
return proc_register(&proc_root, &my_mod_proc_file);
}
void cleanup_module()
{
proc_unregister(&proc_root, my_mod_proc_file.low_ino);
}
用
gcc -c -D__KERNEL__ -DMODULE-I/usr/src/linux-2.4.20-8/include my_module.c编译,安装时报错如下:
my_module.o: unresolved symbol proc_unregister
my_module.o: unresolved symbol proc_register
my_module.o:
Hint: You are trying to load a module without a GPL compatible license
and it has unresolved symbols.The module may be trying to access
GPLONLY symbols but the problem is more likely to be a coding or
user error.Contact the module supplier for assistance, only they
can help you.
请问在2.4内核中上段程序该怎么写啊?
GPL如何声明呢?:x 通常是头文件不够吧?看一下? 好像缺少一个宏
参数是GPL
页:
[1]