特牛生活网

Linux内核模块HelloWorld_fs4412中的helloworld内核模块-CSDN博客

网友收藏
文章浏览阅读770次。内核模块内核整体架构非常庞大,编译时只把需要的功能编译到内核,其他部分可以编译成模块(.ko文件),在内核运行时,可动态注册模块到内核,也可卸载模块。本文代码:https://github.com/mxxlei/kernel_demo/tree/master/1-module-hello1. 内核模块hello world#include <linux/init.h>#include <linux/module.h>static int __init hello_ini_fs4412中的helloworld内核模块