Lines Matching refs:module

118 static void mod_update_bounds(struct module *mod)  in mod_update_bounds()
182 static inline int strong_try_module_get(struct module *mod) in strong_try_module_get()
193 static inline void add_taint_module(struct module *mod, unsigned flag, in add_taint_module()
228 void __noreturn __module_put_and_kthread_exit(struct module *mod, long code) in __module_put_and_kthread_exit()
363 struct module *owner, in find_exported_symbol_in_section()
397 struct module *mod; in find_symbol()
430 struct module *find_module_all(const char *name, size_t len, in find_module_all()
433 struct module *mod; in find_module_all()
445 struct module *find_module(const char *name) in find_module()
452 static inline void __percpu *mod_percpu(struct module *mod) in mod_percpu()
457 static int percpu_modalloc(struct module *mod, struct load_info *info) in percpu_modalloc()
481 static void percpu_modfree(struct module *mod) in percpu_modfree()
491 static void percpu_modcopy(struct module *mod, in percpu_modcopy()
502 struct module *mod; in __is_module_percpu_address()
544 static inline void __percpu *mod_percpu(struct module *mod) in mod_percpu()
548 static int percpu_modalloc(struct module *mod, struct load_info *info) in percpu_modalloc()
555 static inline void percpu_modfree(struct module *mod) in percpu_modfree()
562 static inline void percpu_modcopy(struct module *mod, in percpu_modcopy()
581 static void setup_modinfo_##field(struct module *mod, const char *s) \
590 static int modinfo_##field##_exists(struct module *mod) \
594 static void free_modinfo_##field(struct module *mod) \
623 static int module_unload_init(struct module *mod) in module_unload_init()
641 static int already_uses(struct module *a, struct module *b) in already_uses()
660 static int add_module_usage(struct module *a, struct module *b) in add_module_usage()
677 static int ref_module(struct module *a, struct module *b) in ref_module()
698 static void module_unload_free(struct module *mod) in module_unload_free()
704 struct module *i = use->target; in module_unload_free()
730 static int try_release_module_ref(struct module *mod) in try_release_module_ref()
744 static int try_stop_module(struct module *mod, int flags, int *forced) in try_stop_module()
767 int module_refcount(struct module *mod) in module_refcount()
774 static void free_module(struct module *mod);
779 struct module *mod; in SYSCALL_DEFINE2()
872 struct module *modaddr; in symbol_put_addr()
898 void __module_get(struct module *module) in __module_get() argument
900 if (module) { in __module_get()
901 atomic_inc(&module->refcnt); in __module_get()
902 trace_module_get(module, _RET_IP_); in __module_get()
907 bool try_module_get(struct module *module) in try_module_get() argument
911 if (module) { in try_module_get()
913 if (likely(module_is_live(module) && in try_module_get()
914 atomic_inc_not_zero(&module->refcnt) != 0)) in try_module_get()
915 trace_module_get(module, _RET_IP_); in try_module_get()
923 void module_put(struct module *module) in module_put() argument
927 if (module) { in module_put()
928 ret = atomic_dec_if_positive(&module->refcnt); in module_put()
930 trace_module_put(module, _RET_IP_); in module_put()
936 static inline void module_unload_free(struct module *mod) in module_unload_free()
940 static int ref_module(struct module *a, struct module *b) in ref_module()
945 static inline int module_unload_init(struct module *mod) in module_unload_init()
957 if (taint_flags[i].module && test_bit(i, &taints)) in module_flags_taint()
1078 int try_to_force_load(struct module *mod, const char *reason) in try_to_force_load()
1182 struct module *mod) in verify_namespace_is_imported()
1211 static bool inherit_taint(struct module *mod, struct module *owner, const char *name) in inherit_taint()
1231 static const struct kernel_symbol *resolve_symbol(struct module *mod, in resolve_symbol()
1287 resolve_symbol_wait(struct module *mod, in resolve_symbol_wait()
1304 void __weak module_arch_cleanup(struct module *mod) in module_arch_cleanup()
1308 void __weak module_arch_freeing_init(struct module *mod) in module_arch_freeing_init()
1312 static int module_memory_alloc(struct module *mod, enum mod_mem_type type) in module_memory_alloc()
1351 static void module_memory_restore_rox(struct module *mod) in module_memory_restore_rox()
1361 static void module_memory_free(struct module *mod, enum mod_mem_type type) in module_memory_free()
1368 static void free_mod_mem(struct module *mod) in free_mod_mem()
1388 static void free_module(struct module *mod) in free_module()
1467 static int verify_exported_symbols(struct module *mod) in verify_exported_symbols()
1513 static int simplify_symbols(struct module *mod, const struct load_info *info) in simplify_symbols()
1584 static int apply_relocations(struct module *mod, const struct load_info *info) in apply_relocations()
1626 unsigned int __weak arch_mod_section_prepend(struct module *mod, in arch_mod_section_prepend()
1633 long module_get_offset_and_type(struct module *mod, enum mod_mem_type type, in module_get_offset_and_type()
1656 static void __layout_sections(struct module *mod, struct load_info *info, bool is_init) in __layout_sections()
1728 static void layout_sections(struct module *mod, struct load_info *info) in layout_sections()
1742 static void module_license_taint_check(struct module *mod, const char *license) in module_license_taint_check()
1756 static int setup_modinfo(struct module *mod, struct load_info *info) in setup_modinfo()
1782 static void free_modinfo(struct module *mod) in free_modinfo()
2095 if (shdr->sh_size != sizeof(struct module)) { in elf_validity_cache_index_mod()
2407 static int check_modinfo_livepatch(struct module *mod, struct load_info *info) in check_modinfo_livepatch()
2421 static void check_modinfo_retpoline(struct module *mod, struct load_info *info) in check_modinfo_retpoline()
2510 static void module_augment_kernel_taints(struct module *mod, struct load_info *info) in module_augment_kernel_taints()
2573 static int check_modinfo(struct module *mod, struct load_info *info, int flags) in check_modinfo()
2599 static int find_module_sections(struct module *mod, struct load_info *info) in find_module_sections()
2724 static int move_module(struct module *mod, struct load_info *info) in move_module()
2785 (WARN_ON_ONCE(shdr->sh_size != sizeof(struct module)))) { in move_module()
2813 static int check_export_symbol_versions(struct module *mod) in check_export_symbol_versions()
2825 static void flush_module_icache(const struct module *mod) in flush_module_icache()
2850 struct module *mod) in module_frob_arch_sections()
2876 static struct module *layout_and_allocate(struct load_info *info, int flags) in layout_and_allocate()
2878 struct module *mod; in layout_and_allocate()
2924 static void module_deallocate(struct module *mod, struct load_info *info) in module_deallocate()
2935 struct module *me) in module_finalize()
2940 static int post_relocation(struct module *mod, const struct load_info *info) in post_relocation()
2957 static void do_mod_ctors(struct module *mod) in do_mod_ctors()
3010 static noinline int do_init_module(struct module *mod) in do_init_module()
3152 struct module *mod; in finished_loading()
3174 struct module *old; in module_patient_check_exists()
3215 static int add_unformed_module(struct module *mod) in add_unformed_module()
3236 static int complete_formation(struct module *mod, struct load_info *info) in complete_formation()
3277 static int prepare_coming_module(struct module *mod) in prepare_coming_module()
3298 struct module *mod = arg; in unknown_module_param_cb()
3354 struct module *mod; in load_module()
3743 char *module_flags(struct module *mod, char *buf, bool show_state) in module_flags()
3772 struct module *mod; in search_module_extables()
3811 struct module *__module_address(unsigned long addr) in __module_address()
3813 struct module *mod; in __module_address()
3849 void module_for_each_mod(int(*func)(struct module *mod, void *data), void *data) in module_for_each_mod()
3851 struct module *mod; in module_for_each_mod()
3869 struct module *__module_text_address(unsigned long addr) in __module_text_address()
3871 struct module *mod = __module_address(addr); in __module_text_address()
3884 struct module *mod; in print_modules()