Lines Matching refs:cfi_shadow
43 struct cfi_shadow { struct
62 #define SHADOW_ARR_SIZE (SHADOW_SIZE - offsetof(struct cfi_shadow, shadow))
66 static struct cfi_shadow __rcu *cfi_shadow __read_mostly;
69 static inline int ptr_to_shadow(const struct cfi_shadow *s, unsigned long ptr) in ptr_to_shadow()
86 static inline unsigned long shadow_to_ptr(const struct cfi_shadow *s, in shadow_to_ptr()
96 static inline unsigned long shadow_to_check_fn(const struct cfi_shadow *s, in shadow_to_check_fn()
109 static void prepare_next_shadow(const struct cfi_shadow __rcu *prev, in prepare_next_shadow()
110 struct cfi_shadow *next) in prepare_next_shadow()
144 static void add_module_to_shadow(struct cfi_shadow *s, struct module *mod, in add_module_to_shadow()
172 static void remove_module_from_shadow(struct cfi_shadow *s, struct module *mod, in remove_module_from_shadow()
185 typedef void (*update_shadow_fn)(struct cfi_shadow *, struct module *,
191 struct cfi_shadow *prev; in update_shadow()
192 struct cfi_shadow *next; in update_shadow()
198 prev = rcu_dereference_protected(cfi_shadow, in update_shadow()
212 rcu_assign_pointer(cfi_shadow, next); in update_shadow()
232 static inline cfi_check_fn ptr_to_check_fn(const struct cfi_shadow __rcu *s, in ptr_to_check_fn()
252 fn = ptr_to_check_fn(rcu_dereference_sched(cfi_shadow), ptr); in find_shadow_check_fn()