为什么我的驱动程序模块编译时候通过了,并生产了.ko文件,当我加载到系统上时不能出现我想要的结果,我是初学者,
#include <linux/init.h>
#include <linux/module.h>
MODULE_LICENSE("Dual BSD/GPL");
static int hello_init(void)
{
printk(KERN_ALERT "hello, world\n");
return 0;
}
static void hello_exit(void)
{
printk(KERN_ALERT "Goodbye, cruel world\n");
}
module_init(hello_init);
module_exit(hello_exit);
应该出现的结果是在加载的时候出现hello,wrold,在卸载模块的时候出现Goodbye,cruel wrold,但是我加载后卸载了什么都没出现。请问各位高手这个可能是哪点出错了?