Lines Matching refs:module
40 struct module;
45 struct module *mod;
57 void (*setup)(struct module *, const char *);
58 int (*test)(struct module *);
59 void (*free)(struct module *);
293 struct module *source, *target;
304 struct module *mod;
348 struct module { struct
534 static inline bool module_is_live(struct module *mod) in module_is_live()
539 struct module *__module_text_address(unsigned long addr);
540 struct module *__module_address(unsigned long addr);
547 const struct module *mod) in within_module_core()
554 const struct module *mod) in within_module_init()
560 static inline bool within_module(unsigned long addr, const struct module *mod) in within_module()
566 struct module *find_module(const char *name);
585 struct module **owner,
596 struct module *owner,
608 struct module *, unsigned long),
611 extern void __noreturn __module_put_and_exit(struct module *mod,
616 int module_refcount(struct module *mod);
623 extern void __module_get(struct module *module);
627 extern bool try_module_get(struct module *module);
629 extern void module_put(struct module *module);
632 static inline bool try_module_get(struct module *module) in try_module_get() argument
634 return !module || module_is_live(module); in try_module_get()
636 static inline void module_put(struct module *module) in module_put() argument
639 static inline void __module_get(struct module *module) in __module_get() argument
646 int ref_module(struct module *a, struct module *b);
651 struct module *__mod = (mod); \
656 void *dereference_module_function_descriptor(struct module *mod, void *ptr);
674 static inline bool module_requested_async_probing(struct module *module) in module_requested_async_probing() argument
676 return module && module->async_probe_requested; in module_requested_async_probing()
680 static inline bool is_livepatch_module(struct module *mod) in is_livepatch_module()
685 static inline bool is_livepatch_module(struct module *mod) in is_livepatch_module()
696 static inline struct module *__module_address(unsigned long addr) in __module_address()
701 static inline struct module *__module_text_address(unsigned long addr) in __module_text_address()
727 const struct module *mod) in within_module_core()
733 const struct module *mod) in within_module_init()
738 static inline bool within_module(unsigned long addr, const struct module *mod) in within_module()
748 static inline void __module_get(struct module *module) in __module_get() argument
752 static inline bool try_module_get(struct module *module) in try_module_get() argument
757 static inline void module_put(struct module *module) in module_put() argument
796 struct module *, in module_kallsyms_on_each_symbol() argument
820 static inline bool module_requested_async_probing(struct module *module) in module_requested_async_probing() argument
836 void *dereference_module_function_descriptor(struct module *mod, void *ptr) in dereference_module_function_descriptor()
858 extern void module_enable_ro(const struct module *mod, bool after_init);
859 extern void module_disable_ro(const struct module *mod);
863 static inline void module_enable_ro(const struct module *mod, bool after_init) { } in module_enable_ro()
864 static inline void module_disable_ro(const struct module *mod) { } in module_disable_ro()
869 struct module *);
870 void module_bug_cleanup(struct module *);
876 struct module *mod) in module_bug_finalize()
879 static inline void module_bug_cleanup(struct module *mod) {} in module_bug_cleanup()
892 static inline bool module_sig_ok(struct module *module) in module_sig_ok() argument
894 return module->sig_ok; in module_sig_ok()
897 static inline bool module_sig_ok(struct module *module) in module_sig_ok() argument