mirror of
https://github.com/gatieme/LDD-LinuxDeviceDrivers.git
synced 2026-08-19 01:22:36 +08:00
33 lines
864 B
C
33 lines
864 B
C
#include <linux/module.h>
|
|
#include <linux/vermagic.h>
|
|
#include <linux/compiler.h>
|
|
|
|
MODULE_INFO(vermagic, VERMAGIC_STRING);
|
|
|
|
__visible 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[]
|
|
__used
|
|
__attribute__((section("__versions"))) = {
|
|
{ 0x146be775, __VMLINUX_SYMBOL_STR(module_layout) },
|
|
{ 0x8e9cdd4c, __VMLINUX_SYMBOL_STR(find_vpid) },
|
|
{ 0x27e1a049, __VMLINUX_SYMBOL_STR(printk) },
|
|
{ 0x7344e2ef, __VMLINUX_SYMBOL_STR(pid_task) },
|
|
{ 0xa5cc83f6, __VMLINUX_SYMBOL_STR(init_task) },
|
|
{ 0x47c8baf4, __VMLINUX_SYMBOL_STR(param_ops_uint) },
|
|
};
|
|
|
|
static const char __module_depends[]
|
|
__used
|
|
__attribute__((section(".modinfo"))) =
|
|
"depends=";
|
|
|