• Home
  • Raw
  • Download

Lines Matching refs:mod

133 static void add_module_to_shadow(struct cfi_shadow *s, struct module *mod)  in add_module_to_shadow()  argument
138 unsigned long check = (unsigned long)mod->cfi_check; in add_module_to_shadow()
147 min_page_addr = (unsigned long)mod->core_layout.base & PAGE_MASK; in add_module_to_shadow()
148 max_page_addr = (unsigned long)mod->core_layout.base + in add_module_to_shadow()
149 mod->core_layout.text_size; in add_module_to_shadow()
164 static void remove_module_from_shadow(struct cfi_shadow *s, struct module *mod) in remove_module_from_shadow() argument
170 min_page_addr = (unsigned long)mod->core_layout.base & PAGE_MASK; in remove_module_from_shadow()
171 max_page_addr = (unsigned long)mod->core_layout.base + in remove_module_from_shadow()
172 mod->core_layout.text_size; in remove_module_from_shadow()
185 static void update_shadow(struct module *mod, unsigned long min_addr, in update_shadow() argument
201 fn(next, mod); in update_shadow()
214 void cfi_module_add(struct module *mod, unsigned long min_addr, in cfi_module_add() argument
217 update_shadow(mod, min_addr, max_addr, add_module_to_shadow); in cfi_module_add()
221 void cfi_module_remove(struct module *mod, unsigned long min_addr, in cfi_module_remove() argument
224 update_shadow(mod, min_addr, max_addr, remove_module_from_shadow); in cfi_module_remove()
249 struct module *mod; in find_module_cfi_check() local
252 mod = __module_address((unsigned long)ptr); in find_module_cfi_check()
255 if (mod) in find_module_cfi_check()
256 return mod->cfi_check; in find_module_cfi_check()