📄 hello3.c
字号:
/* the program runing under kernel mod and it is a module*/ #define MODULE#include <linux/kernel.h> #include <linux/module.h> /* pross the CONFIG_MODVERSIONS*/ #if CONFIG_MODVERSIONS==1 #define MODVERSIONS #include <linux/modversions.h> #endif /*MODULE_LICENSE("GPL");*//* the init function*/ int init_module() { printk(" <0>hello, world !\n"); return 0; } /* the distory function*/ void cleanup_module() { printk(KERN_ALERT " I shut down myself from kernerl mod /n"); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -