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

📄 short.mod.c

📁 Linux Device Driver 3 的例子程序
💻 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};static const struct modversion_info ____versions[]__attribute_used____attribute__((section("__versions"))) = {	{ 0x52f6ba, "struct_module" },	{ 0x53a21daf, "param_get_long" },	{ 0x1992a2ba, "param_set_long" },	{ 0x89b301d4, "param_get_int" },	{ 0x98bd6f46, "param_set_int" },	{ 0xa3fa85c, "schedule_work" },	{ 0x4292364c, "schedule" },	{ 0x7d1ed1f2, "prepare_to_wait" },	{ 0x2a7b11d4, "finish_wait" },	{ 0xc8b57c27, "autoremove_wake_function" },	{ 0x9eac042a, "__ioremap" },	{ 0x463e37ad, "init_timer" },	{ 0x107d6ba3, "__get_free_pages" },	{ 0x76d34143, "register_chrdev" },	{ 0x1a1a4f09, "__request_region" },	{ 0xc281c899, "__wake_up" },	{ 0x1d26aa98, "sprintf" },	{ 0x2da418b5, "copy_to_user" },	{ 0x389e200f, "ioread8" },	{ 0x375bf494, "iowrite8" },	{ 0x37a0cba, "kfree" },	{ 0xf2a644fb, "copy_from_user" },	{ 0x12da5bb2, "__kmalloc" },	{ 0xed5c73bf, "__tasklet_schedule" },	{ 0x72270e35, "do_gettimeofday" },	{ 0xab600421, "probe_irq_off" },	{ 0xb121390a, "probe_irq_on" },	{ 0x1b7d4074, "printk" },	{ 0xeae3dfd6, "__const_udelay" },	{ 0x26e96637, "request_irq" },	{ 0x801678, "flush_scheduled_work" },	{ 0x9941ccb8, "free_pages" },	{ 0x865ebccd, "ioport_resource" },	{ 0xd49501d4, "__release_region" },	{ 0x9efed5af, "iomem_resource" },	{ 0xedc03953, "iounmap" },	{ 0xc192d491, "unregister_chrdev" },	{ 0xf20dabd8, "free_irq" },};static const char __module_depends[]__attribute_used____attribute__((section(".modinfo"))) ="depends=";MODULE_INFO(srcversion, "95B74A4B295C173DFB83A12");

⌨️ 快捷键说明

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