Linux
内核模块编译(hello.c) 模块文件hello.c代码
#include <linux/kernel.h> #ifdef MODEVERSIONS int init_module() int cleanup_module() makefile文件 CC = gcc |
Linux
内核模块编译(hello.c) 模块文件hello.c代码
#include <linux/kernel.h> #ifdef MODEVERSIONS int init_module() int cleanup_module() makefile文件 CC = gcc |