打印

编译linux最简单的模块的问题,帮帮忙!!

[复制链接]
1233|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
jyz1117|  楼主 | 2007-3-8 18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
#include <linux/module.h>  
#include <linux/init.h> 

MODULE_LICENSE("GPL"); 

static int hello_init(void) 

       printk(KERN_ALERT“ Hello world.n"); 
       return 0; 


static void hello_exit(void) 

       printk("KERN_ALERT Goodbye world.n"); 


module_init(hello_init); 
module_exit(hello_exit);  
请问这个最小模块,我在linux下用gcc编译时提示KERN_ALERT ,printk等找不到, 
是什么问题,   

相关帖子

沙发
jyz1117|  楼主 | 2007-3-8 21:50 | 只看该作者

请问需要配置什么东东?能说得详细点吗?

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

8

主题

12

帖子

0

粉丝