SORA

 

2011年5月12日

linux 内核模块的helloWorld

摘要: 我的linux版本是Fedora14。 要进行下面步骤之前请保证你的系统安装了内核的devel包和header包, 命令是: yum install kernel-headers-$(uname -r) yum install kernel-devel-$(uname -r) helloWorldLKM.c代码: #include <linux/init.h>#include <linux/module.h> MODULE_LICENSE("GPL"); static int hello_init(void){ printk(KERN_ALERT & 阅读全文

posted @ 2011-05-12 23:58 晴空AIR 阅读(1049) 评论(0) 推荐(0) 编辑

linux 内核模块的helloWorld

摘要: 我的linux版本是Fedora14。 要进行下面步骤之前请保证你的系统安装了内核的devel包和header包, 命令是: yum install kernel-headers-$(uname -r) yum install kernel-devel-$(uname -r) helloWorldLKM.c代码: #include <linux/init.h>#include <linux/mod... 阅读全文

posted @ 2011-05-12 23:50 晴空AIR 阅读(360) 评论(0) 推荐(0) 编辑

导航