Lines Matching refs:module

126 	struct module *mod = mtn->mod;  in __mod_tree_val()
137 struct module *mod = mtn->mod; in __mod_tree_size()
198 static void mod_tree_insert(struct module *mod) in mod_tree_insert()
208 static void mod_tree_remove_init(struct module *mod) in mod_tree_remove_init()
214 static void mod_tree_remove(struct module *mod) in mod_tree_remove()
220 static struct module *mod_find(unsigned long addr) in mod_find()
235 static void mod_tree_insert(struct module *mod) { } in mod_tree_insert()
236 static void mod_tree_remove_init(struct module *mod) { } in mod_tree_remove_init()
237 static void mod_tree_remove(struct module *mod) { } in mod_tree_remove()
239 static struct module *mod_find(unsigned long addr) in mod_find()
241 struct module *mod; in mod_find()
268 static void mod_update_bounds(struct module *mod) in mod_update_bounds()
340 static inline int strong_try_module_get(struct module *mod) in strong_try_module_get()
351 static inline void add_taint_module(struct module *mod, unsigned flag, in add_taint_module()
362 void __module_put_and_exit(struct module *mod, long code) in __module_put_and_exit()
431 struct module *owner, in each_symbol_in_section()
433 struct module *owner, in each_symbol_in_section()
449 struct module *owner, in each_symbol_section()
453 struct module *mod; in each_symbol_section()
518 struct module *owner;
524 struct module *owner, in check_symbol()
566 struct module *owner, in find_symbol_in_section()
584 struct module **owner, in find_symbol()
612 static struct module *find_module_all(const char *name, size_t len, in find_module_all()
615 struct module *mod; in find_module_all()
628 struct module *find_module(const char *name) in find_module()
637 static inline void __percpu *mod_percpu(struct module *mod) in mod_percpu()
642 static int percpu_modalloc(struct module *mod, struct load_info *info) in percpu_modalloc()
666 static void percpu_modfree(struct module *mod) in percpu_modfree()
676 static void percpu_modcopy(struct module *mod, in percpu_modcopy()
696 struct module *mod; in is_module_percpu_address()
723 static inline void __percpu *mod_percpu(struct module *mod) in mod_percpu()
727 static int percpu_modalloc(struct module *mod, struct load_info *info) in percpu_modalloc()
734 static inline void percpu_modfree(struct module *mod) in percpu_modfree()
741 static inline void percpu_modcopy(struct module *mod, in percpu_modcopy()
755 static void setup_modinfo_##field(struct module *mod, const char *s) \
764 static int modinfo_##field##_exists(struct module *mod) \
768 static void free_modinfo_##field(struct module *mod) \
794 static int module_unload_init(struct module *mod) in module_unload_init()
812 static int already_uses(struct module *a, struct module *b) in already_uses()
833 static int add_module_usage(struct module *a, struct module *b) in add_module_usage()
852 int ref_module(struct module *a, struct module *b) in ref_module()
874 static void module_unload_free(struct module *mod) in module_unload_free()
880 struct module *i = use->target; in module_unload_free()
906 static int try_release_module_ref(struct module *mod) in try_release_module_ref()
920 static int try_stop_module(struct module *mod, int flags, int *forced) in try_stop_module()
944 int module_refcount(struct module *mod) in module_refcount()
951 static void free_module(struct module *mod);
956 struct module *mod; in SYSCALL_DEFINE2()
1023 static inline void print_unload_info(struct seq_file *m, struct module *mod) in print_unload_info()
1050 struct module *owner; in __symbol_put()
1063 struct module *modaddr; in symbol_put_addr()
1090 void __module_get(struct module *module) in __module_get() argument
1092 if (module) { in __module_get()
1094 atomic_inc(&module->refcnt); in __module_get()
1095 trace_module_get(module, _RET_IP_); in __module_get()
1101 bool try_module_get(struct module *module) in try_module_get() argument
1105 if (module) { in try_module_get()
1108 if (likely(module_is_live(module) && in try_module_get()
1109 atomic_inc_not_zero(&module->refcnt) != 0)) in try_module_get()
1110 trace_module_get(module, _RET_IP_); in try_module_get()
1120 void module_put(struct module *module) in module_put() argument
1124 if (module) { in module_put()
1126 ret = atomic_dec_if_positive(&module->refcnt); in module_put()
1128 trace_module_put(module, _RET_IP_); in module_put()
1135 static inline void print_unload_info(struct seq_file *m, struct module *mod) in print_unload_info()
1141 static inline void module_unload_free(struct module *mod) in module_unload_free()
1145 int ref_module(struct module *a, struct module *b) in ref_module()
1151 static inline int module_unload_init(struct module *mod) in module_unload_init()
1157 static size_t module_flags_taint(struct module *mod, char *buf) in module_flags_taint()
1264 static int try_to_force_load(struct module *mod, const char *reason) in try_to_force_load()
1279 const struct module *crc_owner) in maybe_relocated()
1291 struct module *mod, in check_version()
1293 const struct module *crc_owner) in check_version()
1332 struct module *mod) in check_modstruct_version()
1366 struct module *mod, in check_version()
1368 const struct module *crc_owner) in check_version()
1375 struct module *mod) in check_modstruct_version()
1388 static const struct kernel_symbol *resolve_symbol(struct module *mod, in resolve_symbol()
1393 struct module *owner; in resolve_symbol()
1431 resolve_symbol_wait(struct module *mod, in resolve_symbol_wait()
1489 static void add_sect_attrs(struct module *mod, const struct load_info *info) in add_sect_attrs()
1543 static void remove_sect_attrs(struct module *mod) in remove_sect_attrs()
1588 static void add_notes_attrs(struct module *mod, const struct load_info *info) in add_notes_attrs()
1647 static void remove_notes_attrs(struct module *mod) in remove_notes_attrs()
1655 static inline void add_sect_attrs(struct module *mod, in add_sect_attrs()
1660 static inline void remove_sect_attrs(struct module *mod) in remove_sect_attrs()
1664 static inline void add_notes_attrs(struct module *mod, in add_notes_attrs()
1669 static inline void remove_notes_attrs(struct module *mod) in remove_notes_attrs()
1674 static void add_usage_links(struct module *mod) in add_usage_links()
1689 static void del_usage_links(struct module *mod) in del_usage_links()
1701 static int module_add_modinfo_attrs(struct module *mod) in module_add_modinfo_attrs()
1728 static void module_remove_modinfo_attrs(struct module *mod) in module_remove_modinfo_attrs()
1744 static void mod_kobject_put(struct module *mod) in mod_kobject_put()
1752 static int mod_sysfs_init(struct module *mod) in mod_sysfs_init()
1785 static int mod_sysfs_setup(struct module *mod, in mod_sysfs_setup()
1827 static void mod_sysfs_fini(struct module *mod) in mod_sysfs_fini()
1834 static void init_param_lock(struct module *mod) in init_param_lock()
1840 static int mod_sysfs_setup(struct module *mod, in mod_sysfs_setup()
1848 static void mod_sysfs_fini(struct module *mod) in mod_sysfs_fini()
1852 static void module_remove_modinfo_attrs(struct module *mod) in module_remove_modinfo_attrs()
1856 static void del_usage_links(struct module *mod) in del_usage_links()
1860 static void init_param_lock(struct module *mod) in init_param_lock()
1865 static void mod_sysfs_teardown(struct module *mod) in mod_sysfs_teardown()
1919 static void unset_module_core_ro_nx(struct module *mod) in unset_module_core_ro_nx()
1929 static void unset_module_init_ro_nx(struct module *mod) in unset_module_init_ro_nx()
1942 struct module *mod; in set_all_modules_text_rw()
1965 struct module *mod; in set_all_modules_text_ro()
1986 static void unset_module_core_ro_nx(struct module *mod) { } in unset_module_core_ro_nx()
1987 static void unset_module_init_ro_nx(struct module *mod) { } in unset_module_init_ro_nx()
1995 void __weak module_arch_cleanup(struct module *mod) in module_arch_cleanup()
1999 void __weak module_arch_freeing_init(struct module *mod) in module_arch_freeing_init()
2004 static void free_module(struct module *mod) in free_module()
2060 struct module *owner; in __symbol_get()
2079 static int verify_export_symbols(struct module *mod) in verify_export_symbols()
2082 struct module *owner; in verify_export_symbols()
2111 static int simplify_symbols(struct module *mod, const struct load_info *info) in simplify_symbols()
2174 static int apply_relocations(struct module *mod, const struct load_info *info) in apply_relocations()
2204 unsigned int __weak arch_mod_section_prepend(struct module *mod, in arch_mod_section_prepend()
2212 static long get_offset(struct module *mod, unsigned int *size, in get_offset()
2227 static void layout_sections(struct module *mod, struct load_info *info) in layout_sections()
2303 static void set_license(struct module *mod, const char *license) in set_license()
2350 static void setup_modinfo(struct module *mod, struct load_info *info) in setup_modinfo()
2361 static void free_modinfo(struct module *mod) in free_modinfo()
2384 const struct module *mod) in is_exported()
2463 static void layout_symtab(struct module *mod, struct load_info *info) in layout_symtab()
2513 static void add_kallsyms(struct module *mod, const struct load_info *info) in add_kallsyms()
2550 static inline void layout_symtab(struct module *mod, struct load_info *info) in layout_symtab()
2554 static void add_kallsyms(struct module *mod, const struct load_info *info) in add_kallsyms()
2582 static void kmemleak_load_module(const struct module *mod, in kmemleak_load_module()
2588 kmemleak_scan_area(mod, sizeof(struct module), GFP_KERNEL); in kmemleak_load_module()
2602 static inline void kmemleak_load_module(const struct module *mod, in kmemleak_load_module()
2812 static struct module *setup_load_info(struct load_info *info, int flags) in setup_load_info()
2816 struct module *mod; in setup_load_info()
2860 static int check_modinfo(struct module *mod, struct load_info *info, int flags) in check_modinfo()
2894 static int find_module_sections(struct module *mod, struct load_info *info) in find_module_sections()
2980 static int move_module(struct module *mod, struct load_info *info) in move_module()
3043 static int check_module_license_and_versions(struct module *mod) in check_module_license_and_versions()
3079 static void flush_module_icache(const struct module *mod) in flush_module_icache()
3105 struct module *mod) in module_frob_arch_sections()
3110 static struct module *layout_and_allocate(struct load_info *info, int flags) in layout_and_allocate()
3113 struct module *mod; in layout_and_allocate()
3151 static void module_deallocate(struct module *mod, struct load_info *info) in module_deallocate()
3161 struct module *me) in module_finalize()
3166 static int post_relocation(struct module *mod, const struct load_info *info) in post_relocation()
3185 struct module *mod; in finished_loading()
3204 static void do_mod_ctors(struct module *mod) in do_mod_ctors()
3233 static noinline int do_init_module(struct module *mod) in do_init_module()
3345 static int add_unformed_module(struct module *mod) in add_unformed_module()
3348 struct module *old; in add_unformed_module()
3380 static int complete_formation(struct module *mod, struct load_info *info) in complete_formation()
3423 struct module *mod = arg; in unknown_module_param_cb()
3443 struct module *mod; in load_module()
3672 static const char *get_ksymbol(struct module *mod, in get_ksymbol()
3726 struct module *mod; in module_address_lookup()
3747 struct module *mod; in lookup_module_symbol_name()
3772 struct module *mod; in lookup_module_symbol_attrs()
3800 struct module *mod; in module_get_kallsym()
3824 static unsigned long mod_find_symname(struct module *mod, const char *name) in mod_find_symname()
3839 struct module *mod; in module_kallsyms_lookup_name()
3861 struct module *, unsigned long), in module_kallsyms_on_each_symbol() argument
3864 struct module *mod; in module_kallsyms_on_each_symbol()
3887 static char *module_flags(struct module *mod, char *buf) in module_flags()
3930 struct module *mod = list_entry(p, struct module, list); in m_show()
3993 struct module *mod; in search_module_extables()
4040 struct module *__module_address(unsigned long addr) in __module_address()
4042 struct module *mod; in __module_address()
4085 struct module *__module_text_address(unsigned long addr) in __module_text_address()
4087 struct module *mod = __module_address(addr); in __module_text_address()
4101 struct module *mod; in print_modules()
4121 void module_layout(struct module *mod, in module_layout()