Lines Matching full:mod

24 	struct module *mod;  member
128 static void *get_symbol(struct module *mod, const char *prefix, const char *name) in get_symbol() argument
140 ret = mod ? in get_symbol()
141 (void *)find_kallsyms_symbol_value(mod, buf) : in get_symbol()
148 static struct codetag_range get_section_range(struct module *mod, in get_section_range() argument
152 get_symbol(mod, CODETAG_SECTION_START_PREFIX, section), in get_section_range()
153 get_symbol(mod, CODETAG_SECTION_STOP_PREFIX, section), in get_section_range()
157 static const char *get_mod_name(__maybe_unused struct module *mod) in get_mod_name() argument
160 if (mod) in get_mod_name()
161 return mod->name; in get_mod_name()
166 static int codetag_module_init(struct codetag_type *cttype, struct module *mod) in codetag_module_init() argument
172 range = get_section_range(mod, cttype->desc.section); in codetag_module_init()
175 cttype->desc.section, get_mod_name(mod)); in codetag_module_init()
189 cmod->mod = mod; in codetag_module_init()
197 cttype->desc.module_load(mod, range.start, range.stop); in codetag_module_init()
213 bool codetag_needs_module_section(struct module *mod, const char *name, in codetag_needs_module_section() argument
231 ret = cttype->desc.needs_section_mem(mod, size); in codetag_needs_module_section()
241 void *codetag_alloc_module_section(struct module *mod, const char *name, in codetag_alloc_module_section() argument
256 ret = cttype->desc.alloc_section_mem(mod, size, prepend, align); in codetag_alloc_module_section()
266 void codetag_free_module_sections(struct module *mod) in codetag_free_module_sections() argument
276 cttype->desc.free_section_mem(mod, false); in codetag_free_module_sections()
282 void codetag_module_replaced(struct module *mod, struct module *new_mod) in codetag_module_replaced() argument
292 cttype->desc.module_replaced(mod, new_mod); in codetag_module_replaced()
298 void codetag_load_module(struct module *mod) in codetag_load_module() argument
302 if (!mod) in codetag_load_module()
307 codetag_module_init(cttype, mod); in codetag_load_module()
311 void codetag_unload_module(struct module *mod) in codetag_unload_module() argument
315 if (!mod) in codetag_unload_module()
329 if (cmod->mod && cmod->mod == mod) { in codetag_unload_module()
336 cttype->desc.module_unload(cmod->mod, in codetag_unload_module()
345 cttype->desc.free_section_mem(mod, true); in codetag_unload_module()