内核版本:2.6.10
在/home/tmp/下建立两个文件hello.c,Makefile
hello.c
------------
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
MODULE_LICENSE("GPL");
static int hello_init(void)
{
printk(KERN_ALERT "hello module init\n");
return 0;
}
static void hello_exit(void)
{
printk(KERN_ALERT "hello module exit\n");
}
module_init(hello_init);
module_exit(hello_exit);
--------------
......
点击查看原文:http://www.hzlitai.com.cn/article/ARM9-article/system/1773.html
发表评论 评论 (0 个评论)