摘要: #include<linux/init.h>#include<linux/module.h>//MODULE_LICNESE("Dual BSD/GPL");static int hello_init(void){printk(KERN_ALERT " hello fish!\n");return 0;}static void hello_exit(void){printk(KERN_ALERT " bye fish!\n");}module_init(hello_init);module_exit(hello 阅读全文
posted @ 2012-09-16 12:48 爱喝可乐 阅读(387) 评论(0) 推荐(0) 编辑
摘要: linux编译的时候,会出现 3:16: 错误: expected declaration specifiers or ‘...’ before string constant,网上的说是头文件没有安装,我这里删除了MODULE_LICNESE("Dual BSD/GPL");这一句就可以了,具体什么原因不是很清楚,以后如果知道了再继续写 阅读全文
posted @ 2012-09-16 12:44 爱喝可乐 阅读(15608) 评论(1) 推荐(1) 编辑
摘要: 试一试用vim命令,或者装 sudo apt-get install vim 阅读全文
posted @ 2012-09-16 12:02 爱喝可乐 阅读(1026) 评论(0) 推荐(0) 编辑