?? hello.c
字號:
/*
* File Name: hello.c
*
* Descriptions:
* The simple example of kernel module code.
*
* Author:
* Mike Lee
* Kernel Version: 2.6.20
*
* Update:
* - 2007.07.13 Mike Lee Creat this file
*/
#include <linux/init.h>
#include <linux/module.h>
MODULE_LICENSE("Dual BSD/GPL");
char *who="world";
static int hello_init(void)
{
printk(KERN_ALERT "Hello, %s!\n", who);
return 0;
}
static void hello_exit(void)
{
printk(KERN_ALERT "Goodbye, %s!\n",who);
}
module_init(hello_init);
module_exit(hello_exit);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -