Lines Matching full:module
2 /* Module internals
11 #include <linux/module.h>
66 /* pointer to module in temporary copy, freed at end of load_module() */
67 struct module *mod;
109 struct module *owner;
119 struct module *source, *target;
123 int try_to_force_load(struct module *mod, const char *reason);
125 struct module *find_module_all(const char *name, size_t len, bool even_unformed);
127 long module_get_offset_and_type(struct module *mod, enum mod_mem_type type,
129 char *module_flags(struct module *mod, char *buf, bool show_state);
147 int copy_module_elf(struct module *mod, struct load_info *info);
148 void free_module_elf(struct module *mod);
150 static inline int copy_module_elf(struct module *mod, struct load_info *info) in copy_module_elf()
155 static inline void free_module_elf(struct module *mod) { } in free_module_elf()
158 static inline bool set_livepatch_module(struct module *mod) in set_livepatch_module()
169 * enum fail_dup_mod_reason - state at which a duplicate module was detected
171 * @FAIL_DUP_MOD_BECOMING: the module is read properly, passes all checks but
172 * we've determined that another module with the same name is already loaded
175 * vmalloc()'d space for the entire module through finit_module(). If
177 * happen when userspace has not seen the module present on the kernel and
178 * tries to load the module multiple times at same time.
179 * @FAIL_DUP_MOD_LOAD: the module has been read properly, passes all validation
180 * checks and the kernel determines that the module was unique and because
181 * of this allocated yet another private kernel copy of the module space in
183 * that another module with the same name is already loaded or being processed.
185 * of really fast races in loading modules. Without module decompression
186 * they waste twice as much vmap space. With module decompression three
187 * times the module's size vmap space is wasted.
265 int try_add_tainted_module(struct module *mod);
268 static inline int try_add_tainted_module(struct module *mod) in try_add_tainted_module()
308 void mod_tree_insert(struct module *mod);
309 void mod_tree_remove_init(struct module *mod);
310 void mod_tree_remove(struct module *mod);
311 struct module *mod_find(unsigned long addr, struct mod_tree_root *tree);
314 static inline void mod_tree_insert(struct module *mod) { } in mod_tree_insert()
315 static inline void mod_tree_remove_init(struct module *mod) { } in mod_tree_remove_init()
316 static inline void mod_tree_remove(struct module *mod) { } in mod_tree_remove()
317 static inline struct module *mod_find(unsigned long addr, struct mod_tree_root *tree) in mod_find()
319 struct module *mod; in mod_find()
331 int module_enable_rodata_ro(const struct module *mod);
332 int module_enable_rodata_ro_after_init(const struct module *mod);
333 int module_enable_data_nx(const struct module *mod);
334 int module_enable_text_rox(const struct module *mod);
337 const struct module *mod);
351 void kmemleak_load_module(const struct module *mod, const struct load_info *info);
353 static inline void kmemleak_load_module(const struct module *mod, in kmemleak_load_module()
358 void init_build_id(struct module *mod, const struct load_info *info);
359 void layout_symtab(struct module *mod, struct load_info *info);
360 void add_kallsyms(struct module *mod, const struct load_info *info);
367 static inline void init_build_id(struct module *mod, const struct load_info *info) { } in init_build_id()
368 static inline void layout_symtab(struct module *mod, struct load_info *info) { } in layout_symtab()
369 static inline void add_kallsyms(struct module *mod, const struct load_info *info) { } in add_kallsyms()
373 int mod_sysfs_setup(struct module *mod, const struct load_info *info,
375 void mod_sysfs_teardown(struct module *mod);
376 void init_param_lock(struct module *mod);
378 static inline int mod_sysfs_setup(struct module *mod, in mod_sysfs_setup()
386 static inline void mod_sysfs_teardown(struct module *mod) { } in mod_sysfs_teardown()
387 static inline void init_param_lock(struct module *mod) { } in init_param_lock()
392 const char *symname, struct module *mod, const u32 *crc);
393 void module_layout(struct module *mod, struct modversion_info *ver, struct kernel_param *kp,
395 int check_modstruct_version(const struct load_info *info, struct module *mod);
409 struct module *mod, in check_version()
416 struct module *mod) in check_modstruct_version()