test1.c

来自「makefile wenjian ,编写的是对实例程序的编写makefile」· C语言 代码 · 共 46 行

C
46
字号
#include<linux/config.h>#include<linux/module.h>#include<linux/kernel.h>#include<linux/init.h>#include<asm/hardware.h>#include<asm/delay.h>#include<asm/uaccess.h>static ssize_t test_write(struct file *file,const char *buffer,size_t count,loff_t ppos){return 0;}static int test_open(struct inode *inode,struct file *file){return 0;}static int test_release(struct inode *inode,struct file *file){return 0;}static struct file_operations test_fops ={};static int __init test_init(void){return 0;}static void __exit test_exit(void){}module_init(test_init);noduel_exit(test_exit);MODULE_LICENSE("GPL");MODULE_AUTHOR("BG");MODULE_DESCRIPTION("2007");

⌨️ 快捷键说明

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