Lines Matching refs:mod

48 	struct module *mod;  member
317 struct module *mod; member
554 static inline bool module_is_live(struct module *mod) in module_is_live() argument
556 return mod->state != MODULE_STATE_GOING; in module_is_live()
567 const struct module *mod) in within_module_core() argument
569 return (unsigned long)mod->core_layout.base <= addr && in within_module_core()
570 addr < (unsigned long)mod->core_layout.base + mod->core_layout.size; in within_module_core()
574 const struct module *mod) in within_module_init() argument
576 return (unsigned long)mod->init_layout.base <= addr && in within_module_init()
577 addr < (unsigned long)mod->init_layout.base + mod->init_layout.size; in within_module_init()
580 static inline bool within_module(unsigned long addr, const struct module *mod) in within_module() argument
582 return within_module_init(addr, mod) || within_module_core(addr, mod); in within_module()
611 extern void __noreturn __module_put_and_exit(struct module *mod,
616 int module_refcount(struct module *mod);
648 #define module_name(mod) \ argument
650 struct module *__mod = (mod); \
655 void *dereference_module_function_descriptor(struct module *mod, void *ptr);
679 static inline bool is_livepatch_module(struct module *mod) in is_livepatch_module() argument
681 return mod->klp; in is_livepatch_module()
684 static inline bool is_livepatch_module(struct module *mod) in is_livepatch_module() argument
726 const struct module *mod) in within_module_core() argument
732 const struct module *mod) in within_module_init() argument
737 static inline bool within_module(unsigned long addr, const struct module *mod) in within_module() argument
760 #define module_name(mod) "kernel" argument
835 void *dereference_module_function_descriptor(struct module *mod, void *ptr) in dereference_module_function_descriptor() argument
863 struct module *mod) in module_bug_finalize() argument
866 static inline void module_bug_cleanup(struct module *mod) {} in module_bug_cleanup() argument