linux_module_learn/hellow/hello.mod.c

37 lines
765 B
C
Raw Permalink Normal View History

2023-07-22 13:42:32 +08:00
#include <linux/module.h>
#define INCLUDE_VERMAGIC
#include <linux/build-salt.h>
#include <linux/vermagic.h>
#include <linux/compiler.h>
BUILD_SALT;
MODULE_INFO(vermagic, VERMAGIC_STRING);
MODULE_INFO(name, KBUILD_MODNAME);
__visible struct module __this_module
__section(.gnu.linkonce.this_module) = {
.name = KBUILD_MODNAME,
.init = init_module,
#ifdef CONFIG_MODULE_UNLOAD
.exit = cleanup_module,
#endif
.arch = MODULE_ARCH_INIT,
};
#ifdef CONFIG_RETPOLINE
MODULE_INFO(retpoline, "Y");
#endif
static const struct modversion_info ____versions[]
__used __section(__versions) = {
{ 0x9de7765d, "module_layout" },
{ 0xc5850110, "printk" },
{ 0xbdfb6dbb, "__fentry__" },
};
MODULE_INFO(depends, "");
MODULE_INFO(srcversion, "551436A789D4DFB9D4B008E");