Lines Matching refs:module
115 static void mod_update_bounds(struct module *mod) in mod_update_bounds()
151 static inline int strong_try_module_get(struct module *mod) in strong_try_module_get()
162 static inline void add_taint_module(struct module *mod, unsigned flag, in add_taint_module()
173 void __noreturn __module_put_and_kthread_exit(struct module *mod, long code) in __module_put_and_kthread_exit()
276 struct module *owner, in find_exported_symbol_in_section()
310 struct module *mod; in find_symbol()
345 struct module *find_module_all(const char *name, size_t len, in find_module_all()
348 struct module *mod; in find_module_all()
362 struct module *find_module(const char *name) in find_module()
369 static inline void __percpu *mod_percpu(struct module *mod) in mod_percpu()
374 static int percpu_modalloc(struct module *mod, struct load_info *info) in percpu_modalloc()
398 static void percpu_modfree(struct module *mod) in percpu_modfree()
408 static void percpu_modcopy(struct module *mod, in percpu_modcopy()
419 struct module *mod; in __is_module_percpu_address()
465 static inline void __percpu *mod_percpu(struct module *mod) in mod_percpu()
469 static int percpu_modalloc(struct module *mod, struct load_info *info) in percpu_modalloc()
476 static inline void percpu_modfree(struct module *mod) in percpu_modfree()
483 static inline void percpu_modcopy(struct module *mod, in percpu_modcopy()
502 static void setup_modinfo_##field(struct module *mod, const char *s) \
511 static int modinfo_##field##_exists(struct module *mod) \
515 static void free_modinfo_##field(struct module *mod) \
545 static int module_unload_init(struct module *mod) in module_unload_init()
563 static int already_uses(struct module *a, struct module *b) in already_uses()
584 static int add_module_usage(struct module *a, struct module *b) in add_module_usage()
601 static int ref_module(struct module *a, struct module *b) in ref_module()
622 static void module_unload_free(struct module *mod) in module_unload_free()
628 struct module *i = use->target; in module_unload_free()
654 static int try_release_module_ref(struct module *mod) in try_release_module_ref()
668 static int try_stop_module(struct module *mod, int flags, int *forced) in try_stop_module()
691 int module_refcount(struct module *mod) in module_refcount()
698 static void free_module(struct module *mod);
703 struct module *mod; in SYSCALL_DEFINE2()
795 struct module *modaddr; in symbol_put_addr()
822 void __module_get(struct module *module) in __module_get() argument
824 if (module) { in __module_get()
826 atomic_inc(&module->refcnt); in __module_get()
827 trace_module_get(module, _RET_IP_); in __module_get()
833 bool try_module_get(struct module *module) in try_module_get() argument
837 if (module) { in try_module_get()
840 if (likely(module_is_live(module) && in try_module_get()
841 atomic_inc_not_zero(&module->refcnt) != 0)) in try_module_get()
842 trace_module_get(module, _RET_IP_); in try_module_get()
852 void module_put(struct module *module) in module_put() argument
856 if (module) { in module_put()
858 ret = atomic_dec_if_positive(&module->refcnt); in module_put()
860 trace_module_put(module, _RET_IP_); in module_put()
867 static inline void module_unload_free(struct module *mod) in module_unload_free()
871 static int ref_module(struct module *a, struct module *b) in ref_module()
876 static inline int module_unload_init(struct module *mod) in module_unload_init()
888 if (taint_flags[i].module && test_bit(i, &taints)) in module_flags_taint()
996 int try_to_force_load(struct module *mod, const char *reason) in try_to_force_load()
1014 struct module *mod) in verify_namespace_is_imported()
1042 static bool inherit_taint(struct module *mod, struct module *owner, const char *name) in inherit_taint()
1062 static const struct kernel_symbol *resolve_symbol(struct module *mod, in resolve_symbol()
1133 resolve_symbol_wait(struct module *mod, in resolve_symbol_wait()
1160 void __weak module_arch_cleanup(struct module *mod) in module_arch_cleanup()
1164 void __weak module_arch_freeing_init(struct module *mod) in module_arch_freeing_init()
1169 static void free_module(struct module *mod) in free_module()
1262 static int verify_exported_symbols(struct module *mod) in verify_exported_symbols()
1316 static int simplify_symbols(struct module *mod, const struct load_info *info) in simplify_symbols()
1393 static int apply_relocations(struct module *mod, const struct load_info *info) in apply_relocations()
1429 unsigned int __weak arch_mod_section_prepend(struct module *mod, in arch_mod_section_prepend()
1437 long module_get_offset(struct module *mod, unsigned int *size, in module_get_offset()
1463 static void layout_sections(struct module *mod, struct load_info *info) in layout_sections()
1555 static void set_license(struct module *mod, const char *license) in set_license()
1619 static void setup_modinfo(struct module *mod, struct load_info *info) in setup_modinfo()
1630 static void free_modinfo(struct module *mod) in free_modinfo()
1641 static void dynamic_debug_setup(struct module *mod, struct _ddebug_info *dyndbg) in dynamic_debug_setup()
1648 static void dynamic_debug_remove(struct module *mod, struct _ddebug_info *dyndbg) in dynamic_debug_remove()
1842 static int check_modinfo_livepatch(struct module *mod, struct load_info *info) in check_modinfo_livepatch()
1860 static void check_modinfo_retpoline(struct module *mod, struct load_info *info) in check_modinfo_retpoline()
1995 static int check_modinfo(struct module *mod, struct load_info *info, int flags) in check_modinfo()
2046 static int find_module_sections(struct module *mod, struct load_info *info) in find_module_sections()
2162 static int move_module(struct module *mod, struct load_info *info) in move_module()
2244 static int check_module_license_and_versions(struct module *mod) in check_module_license_and_versions()
2279 static void flush_module_icache(const struct module *mod) in flush_module_icache()
2297 struct module *mod) in module_frob_arch_sections()
2323 static struct module *layout_and_allocate(struct load_info *info, int flags) in layout_and_allocate()
2325 struct module *mod; in layout_and_allocate()
2385 static void module_deallocate(struct module *mod, struct load_info *info) in module_deallocate()
2400 struct module *me) in module_finalize()
2405 static int post_relocation(struct module *mod, const struct load_info *info) in post_relocation()
2424 struct module *mod; in finished_loading()
2443 static void do_mod_ctors(struct module *mod) in do_mod_ctors()
2487 static noinline int do_init_module(struct module *mod) in do_init_module()
2607 static int add_unformed_module(struct module *mod) in add_unformed_module()
2610 struct module *old; in add_unformed_module()
2656 static int complete_formation(struct module *mod, struct load_info *info) in complete_formation()
2695 static int prepare_coming_module(struct module *mod) in prepare_coming_module()
2716 struct module *mod = arg; in unknown_module_param_cb()
2739 struct module *mod; in load_module()
3025 char *module_flags(struct module *mod, char *buf, bool show_state) in module_flags()
3055 struct module *mod; in search_module_extables()
3103 struct module *__module_address(unsigned long addr) in __module_address()
3105 struct module *mod; in __module_address()
3154 struct module *__module_text_address(unsigned long addr) in __module_text_address()
3156 struct module *mod = __module_address(addr); in __module_text_address()
3169 struct module *mod; in print_modules()