我编了段程序用到了
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如何声明呢?