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
浙公网安备 33010602011771号