Lines Matching refs:mod
18 int copy_module_elf(struct module *mod, struct load_info *info) in copy_module_elf() argument
23 size = sizeof(*mod->klp_info); in copy_module_elf()
24 mod->klp_info = kmalloc(size, GFP_KERNEL); in copy_module_elf()
25 if (!mod->klp_info) in copy_module_elf()
29 size = sizeof(mod->klp_info->hdr); in copy_module_elf()
30 memcpy(&mod->klp_info->hdr, info->hdr, size); in copy_module_elf()
34 mod->klp_info->sechdrs = kmemdup(info->sechdrs, size, GFP_KERNEL); in copy_module_elf()
35 if (!mod->klp_info->sechdrs) { in copy_module_elf()
42 mod->klp_info->secstrings = kmemdup(info->secstrings, size, GFP_KERNEL); in copy_module_elf()
43 if (!mod->klp_info->secstrings) { in copy_module_elf()
50 mod->klp_info->symndx = symndx; in copy_module_elf()
58 mod->klp_info->sechdrs[symndx].sh_addr = (unsigned long)mod->core_kallsyms.symtab; in copy_module_elf()
63 kfree(mod->klp_info->sechdrs); in copy_module_elf()
65 kfree(mod->klp_info); in copy_module_elf()
69 void free_module_elf(struct module *mod) in free_module_elf() argument
71 kfree(mod->klp_info->sechdrs); in free_module_elf()
72 kfree(mod->klp_info->secstrings); in free_module_elf()
73 kfree(mod->klp_info); in free_module_elf()