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

📄 chardriver.mod.c

📁 reading a char driver
💻 C
字号:
#include <linux/module.h>#include <linux/vermagic.h>#include <linux/compiler.h>MODULE_INFO(vermagic, VERMAGIC_STRING);struct module __this_module__attribute__((section(".gnu.linkonce.this_module"))) = { .name = KBUILD_MODNAME, .init = init_module,#ifdef CONFIG_MODULE_UNLOAD .exit = cleanup_module,#endif .arch = MODULE_ARCH_INIT,};static const struct modversion_info ____versions[]__attribute_used____attribute__((section("__versions"))) = {	{ 0xe189b8a7, "struct_module" },	{ 0xd5976294, "kmem_cache_alloc" },	{ 0xcba6c63f, "kmalloc_caches" },	{ 0xced3d2d8, "register_chrdev" },	{ 0x1b7d4074, "printk" },	{ 0x37a0cba, "kfree" },	{ 0xc192d491, "unregister_chrdev" },	{ 0x2f287f0d, "copy_to_user" },	{ 0xd6c963c, "copy_from_user" },};static const char __module_depends[]__attribute_used____attribute__((section(".modinfo"))) ="depends=";MODULE_INFO(srcversion, "6B1F35DC097AA1E833270F7");

⌨️ 快捷键说明

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