linux设备驱动学习(一)——简单的helloworld模块

在内核驱动中新建hello文件夹 1.须要.c文件与Makefile文件 在..../drivers/hello目录下新建xxx.c 和Makefile文件 .c文件样例: #include <linux/module.h> #include <linux/kernel.h> static char *name="likui"; module_param(name,charp,S_IRUGO);
相关文章
相关标签/搜索