hello.c

来自「linux device drive II 的示例移植到2.6.x内核」· C语言 代码 · 共 20 行

C
20
字号
#include <linux/kernel.h>#include <linux/init.h>#include <linux/module.h>MODULE_LICENSE("GPL");static int __init hello_init(){	printk("<3>hello 2.6 kernel!\n");	return 0;}static void __exit hello_exit(){	printk("<3>exit 2.6 kernel!\n");}module_init(hello_init);module_exit(hello_exit);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?