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);
相關文章
相關標籤/搜索