Lines Matching refs:mod

30 	struct module *mod;  member
138 static void *get_symbol(struct module *mod, const char *prefix, const char *name) in get_symbol() argument
150 ret = mod ? in get_symbol()
151 (void *)find_kallsyms_symbol_value(mod, buf) : in get_symbol()
158 static struct codetag_range get_section_range(struct module *mod, in get_section_range() argument
162 get_symbol(mod, CODETAG_SECTION_START_PREFIX, section), in get_section_range()
163 get_symbol(mod, CODETAG_SECTION_STOP_PREFIX, section), in get_section_range()
167 static const char *get_mod_name(__maybe_unused struct module *mod) in get_mod_name() argument
170 if (mod) in get_mod_name()
171 return mod->name; in get_mod_name()
176 static int codetag_module_init(struct codetag_type *cttype, struct module *mod) in codetag_module_init() argument
183 range = get_section_range(mod, cttype->desc.section); in codetag_module_init()
186 cttype->desc.section, get_mod_name(mod)); in codetag_module_init()
200 cmod->mod = mod; in codetag_module_init()
208 err = cttype->desc.module_load(mod, range.start, range.stop); in codetag_module_init()
234 bool codetag_needs_module_section(struct module *mod, const char *name, in codetag_needs_module_section() argument
252 ret = cttype->desc.needs_section_mem(mod, size); in codetag_needs_module_section()
262 void *codetag_alloc_module_section(struct module *mod, const char *name, in codetag_alloc_module_section() argument
277 ret = cttype->desc.alloc_section_mem(mod, size, prepend, align); in codetag_alloc_module_section()
287 void codetag_free_module_sections(struct module *mod) in codetag_free_module_sections() argument
297 cttype->desc.free_section_mem(mod, false); in codetag_free_module_sections()
303 void codetag_module_replaced(struct module *mod, struct module *new_mod) in codetag_module_replaced() argument
313 cttype->desc.module_replaced(mod, new_mod); in codetag_module_replaced()
319 int codetag_load_module(struct module *mod) in codetag_load_module() argument
324 if (!mod) in codetag_load_module()
329 ret = codetag_module_init(cttype, mod); in codetag_load_module()
338 void codetag_unload_module(struct module *mod) in codetag_unload_module() argument
342 if (!mod) in codetag_unload_module()
356 if (cmod->mod && cmod->mod == mod) { in codetag_unload_module()
363 cttype->desc.module_unload(cmod->mod, in codetag_unload_module()
372 cttype->desc.free_section_mem(mod, true); in codetag_unload_module()