#include <linux/export.h>
#include <linux/moduleloader.h>
#include <linux/ftrace_event.h>
#include <linux/init.h>
#include <linux/kallsyms.h>
#include <linux/fs.h>
#include <linux/sysfs.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/elf.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/syscalls.h>
#include <linux/fcntl.h>
#include <linux/rcupdate.h>
#include <linux/capability.h>
#include <linux/cpu.h>
#include <linux/moduleparam.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/vermagic.h>
#include <linux/notifier.h>
#include <linux/sched.h>
#include <linux/stop_machine.h>
#include <linux/device.h>
#include <linux/string.h>
#include <linux/mutex.h>
#include <linux/rculist.h>
#include <asm/uaccess.h>
#include <asm/cacheflush.h>
#include <asm/mmu_context.h>
#include <linux/license.h>
#include <asm/sections.h>
#include <linux/tracepoint.h>
#include <linux/ftrace.h>
#include <linux/async.h>
#include <linux/percpu.h>
#include <linux/kmemleak.h>
#include <linux/jump_label.h>
#include <linux/pfn.h>
#include <linux/bsearch.h>
#include <linux/fips.h>
#include "module-internal.h"
#include <trace/events/module.h>
Go to the source code of this file.
|
| DEFINE_MUTEX (module_mutex) |
|
| EXPORT_SYMBOL_GPL (module_mutex) |
|
| core_param (nomodule, modules_disabled, bint, 0) |
|
int | register_module_notifier (struct notifier_block *nb) |
|
| EXPORT_SYMBOL (register_module_notifier) |
|
int | unregister_module_notifier (struct notifier_block *nb) |
|
| EXPORT_SYMBOL (unregister_module_notifier) |
|
void | __module_put_and_exit (struct module *mod, long code) |
|
| EXPORT_SYMBOL (__module_put_and_exit) |
|
bool | each_symbol_section (bool(*fn)(const struct symsearch *arr, struct module *owner, void *data), void *data) |
|
| EXPORT_SYMBOL_GPL (each_symbol_section) |
|
struct kernel_symbol * | find_symbol (const char *name, struct module **owner, const unsigned long **crc, bool gplok, bool warn) |
|
| EXPORT_SYMBOL_GPL (find_symbol) |
|
struct module * | find_module (const char *name) |
|
| EXPORT_SYMBOL_GPL (find_module) |
|
bool | is_module_percpu_address (unsigned long addr) |
|
| MODINFO_ATTR (version) |
|
| MODINFO_ATTR (srcversion) |
|
int | ref_module (struct module *a, struct module *b) |
|
| EXPORT_SYMBOL_GPL (ref_module) |
|
void __weak | module_free (struct module *mod, void *module_region) |
|
void __weak | module_arch_cleanup (struct module *mod) |
|
void * | __symbol_get (const char *symbol) |
|
| EXPORT_SYMBOL_GPL (__symbol_get) |
|
unsigned int __weak | arch_mod_section_prepend (struct module *mod, unsigned int section) |
|
void *__weak | module_alloc (unsigned long size) |
|
int __weak | module_frob_arch_sections (Elf_Ehdr *hdr, Elf_Shdr *sechdrs, char *secstrings, struct module *mod) |
|
int __weak | module_finalize (const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *me) |
|
| SYSCALL_DEFINE3 (init_module, void __user *, umod, unsigned long, len, const char __user *, uargs) |
|
struct exception_table_entry * | search_module_extables (unsigned long addr) |
|
bool | is_module_address (unsigned long addr) |
|
struct module * | __module_address (unsigned long addr) |
|
| EXPORT_SYMBOL_GPL (__module_address) |
|
bool | is_module_text_address (unsigned long addr) |
|
struct module * | __module_text_address (unsigned long addr) |
|
| EXPORT_SYMBOL_GPL (__module_text_address) |
|
void | print_modules (void) |
|
#define CREATE_TRACE_POINTS |
#define debug_align |
( |
|
X | ) |
(X) |
#define INIT_OFFSET_MASK (1UL << (BITS_PER_LONG-1)) |
#define MOD_NUMBER_OF_PAGES |
( |
|
BASE, |
|
|
|
SIZE |
|
) |
| |
Value:
PFN_DOWN((
unsigned long)
BASE) + 1) \
Definition at line 86 of file module.c.
#define MODINFO_ATTR |
( |
|
field | ) |
|
Value:
{ \
} \
{ \
} \
{ \
} \
{ \
} \
.attr = { .name =
__stringify(field), .mode = 0444 }, \
.show = show_modinfo_##
field, \
.setup = setup_modinfo_##
field, \
.test = modinfo_##field##_exists, \
.free = free_modinfo_##
field, \
};
Definition at line 576 of file module.c.
DEFINE_MUTEX |
( |
module_mutex |
| ) |
|
EXPORT_SYMBOL_GPL |
( |
module_mutex |
| ) |
|
bool is_module_address |
( |
unsigned long |
addr | ) |
|
bool is_module_percpu_address |
( |
unsigned long |
addr | ) |
|
bool is_module_text_address |
( |
unsigned long |
addr | ) |
|
MODINFO_ATTR |
( |
srcversion |
| ) |
|
const unsigned long __start___kcrctab_gpl_future[] |