📄 simple.mod.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" }, { 0x89b301d4, "param_get_int" }, { 0x98bd6f46, "param_set_int" }, { 0x1139ffc, "max_mapnr" }, { 0x84498fe6, "mem_map" }, { 0x29537c9e, "alloc_chrdev_region" }, { 0xd8e484f0, "register_chrdev_region" }, { 0x88e101fc, "cdev_add" }, { 0x2333c217, "cdev_init" }, { 0xf30627cb, "remap_pfn_range" }, { 0x8a7d1c31, "high_memory" }, { 0x1b7d4074, "printk" }, { 0x7485e15e, "unregister_chrdev_region" }, { 0x6269bcfc, "cdev_del" },};static const char __module_depends[]__attribute_used____attribute__((section(".modinfo"))) ="depends=";MODULE_INFO(srcversion, "F714C72C57D2912B7D7B957");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -