Ubuntu编译内核模块,内容体现系统日志中

Ubuntu编译内核模块,内容体现系统日志中

1.Linux登陆界面 1.检查当前文件目录: 通过Xshell连接Linux系统后 输入命令:ls 2.新建code/kernel文件夹 2.编写代码 1.创建hello_module.c 指令:vimhello_module.c 2.按i进入编辑模式,并输入以下代码 //hello_module.c#include<linux/module.h>#incl

1253067 TFnetwork_cn