Lines Matching refs:module

39 struct module;
44 struct module *mod;
56 void (*setup)(struct module *, const char *);
57 int (*test)(struct module *);
58 void (*free)(struct module *);
292 struct module *source, *target;
303 struct module *mod;
347 struct module { struct
527 static inline bool module_is_live(struct module *mod) in module_is_live()
532 struct module *__module_text_address(unsigned long addr);
533 struct module *__module_address(unsigned long addr);
540 const struct module *mod) in within_module_core()
547 const struct module *mod) in within_module_init()
553 static inline bool within_module(unsigned long addr, const struct module *mod) in within_module()
559 struct module *find_module(const char *name);
578 struct module **owner,
589 struct module *owner,
601 struct module *, unsigned long),
604 extern void __noreturn __module_put_and_exit(struct module *mod,
609 int module_refcount(struct module *mod);
616 extern void __module_get(struct module *module);
620 extern bool try_module_get(struct module *module);
622 extern void module_put(struct module *module);
625 static inline bool try_module_get(struct module *module) in try_module_get() argument
627 return !module || module_is_live(module); in try_module_get()
629 static inline void module_put(struct module *module) in module_put() argument
632 static inline void __module_get(struct module *module) in __module_get() argument
639 int ref_module(struct module *a, struct module *b);
644 struct module *__mod = (mod); \
649 void *dereference_module_function_descriptor(struct module *mod, void *ptr);
667 static inline bool module_requested_async_probing(struct module *module) in module_requested_async_probing() argument
669 return module && module->async_probe_requested; in module_requested_async_probing()
673 static inline bool is_livepatch_module(struct module *mod) in is_livepatch_module()
678 static inline bool is_livepatch_module(struct module *mod) in is_livepatch_module()
689 static inline struct module *__module_address(unsigned long addr) in __module_address()
694 static inline struct module *__module_text_address(unsigned long addr) in __module_text_address()
720 const struct module *mod) in within_module_core()
726 const struct module *mod) in within_module_init()
731 static inline bool within_module(unsigned long addr, const struct module *mod) in within_module()
741 static inline void __module_get(struct module *module) in __module_get() argument
745 static inline bool try_module_get(struct module *module) in try_module_get() argument
750 static inline void module_put(struct module *module) in module_put() argument
789 struct module *, in module_kallsyms_on_each_symbol() argument
813 static inline bool module_requested_async_probing(struct module *module) in module_requested_async_probing() argument
829 void *dereference_module_function_descriptor(struct module *mod, void *ptr) in dereference_module_function_descriptor()
851 extern void module_enable_ro(const struct module *mod, bool after_init);
852 extern void module_disable_ro(const struct module *mod);
856 static inline void module_enable_ro(const struct module *mod, bool after_init) { } in module_enable_ro()
857 static inline void module_disable_ro(const struct module *mod) { } in module_disable_ro()
862 struct module *);
863 void module_bug_cleanup(struct module *);
869 struct module *mod) in module_bug_finalize()
872 static inline void module_bug_cleanup(struct module *mod) {} in module_bug_cleanup()
885 static inline bool module_sig_ok(struct module *module) in module_sig_ok() argument
887 return module->sig_ok; in module_sig_ok()
890 static inline bool module_sig_ok(struct module *module) in module_sig_ok() argument