友情链接:飘渺阁、Ubuntu修炼地

随笔分类 -  Linux模块编译

linux驱动和相关模块的编译
摘要:1、先编写一个简单的hello模块,hello.c 源码如下: 1 #ifndef __KERNEL__ 2 # define __KERNEL__ 3 #endif 4 #ifndef MODULE 5 # define MODULE 6 #endif 7 8 // 下面的是主要的内容 9 #include <linux/kernel.h>10 #include <linux/module.h>11 #include <linux/init.h>12 13 MODULE_LICENSE("GPL");14 15 static int y 阅读全文
posted @ 2012-10-23 22:35 Neo Nengrong Qu 阅读(21908) 评论(0) 推荐(1)

我思故我在、身在尘嚣中、思飞九天外 ...