随笔分类 - 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
阅读全文

浙公网安备 33010602011771号