⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testmodule.c

📁 在Linux下实现文件的拷贝
💻 C
字号:
#ifndef __KERNEL__#define __KERNEL__ #endif#ifndef MODULE#define MODULE     #endif#include </home/zhangjian/ostask/linux-2.6.18/include/asm/module.h>#include <linux/init.h>#include <linux/fs.h>#include <linux/kernel.h>#include <asm/uaccess.h>int init_module(){       printk("Hello!This is a testing module!\n");       return 0;}void cleanup_module(){      printk("Sorry!The testing module is unloading now!\n"); }

⌨️ 快捷键说明

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