Ubuntu12.10 内核源码外编译 linux模块--编译驱动模块的基本方法
1、先编写一个简单的hello模块,hello.c 源码如下:
#ifndef __KERNEL__
# define __KERNEL__
#endif
#ifndef MODULE
# define MODULE
#endif
// 下面的是主要的内容
#include
#include
#include
MODULE_LICENSE("GPL");
static int
转载
2014-02-15 11:02:55 ·
2331 阅读 ·
0 评论