hello.c

来自「linux driver develop(ldd3) sample code」· C语言 代码 · 共 21 行

C
21
字号
/*                                                      * $Id: hello.c,v 1.5 2004/10/26 03:32:21 corbet Exp $  */                                                    #include <linux/init.h>#include <linux/module.h>MODULE_LICENSE("Dual BSD/GPL");static int hello_init(void){	printk(KERN_ALERT "Hello, world\n");	return 0;}static void hello_exit(void){	printk(KERN_ALERT "Goodbye, cruel world\n");}module_init(hello_init);module_exit(hello_exit);

⌨️ 快捷键说明

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