Lines Matching refs:cfi_shadow
43 struct cfi_shadow {
56 /* The in-memory size of struct cfi_shadow, always at least one page */
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)
86 static inline unsigned long shadow_to_ptr(const struct cfi_shadow *s,
96 static inline unsigned long shadow_to_check_fn(const struct cfi_shadow *s,
109 static void prepare_next_shadow(const struct cfi_shadow __rcu *prev,
110 struct cfi_shadow *next)
144 static void add_module_to_shadow(struct cfi_shadow *s, struct module *mod,
172 static void remove_module_from_shadow(struct cfi_shadow *s, struct module *mod,
185 typedef void (*update_shadow_fn)(struct cfi_shadow *, struct module *,
191 struct cfi_shadow *prev;
192 struct cfi_shadow *next;
198 prev = rcu_dereference_protected(cfi_shadow,
212 rcu_assign_pointer(cfi_shadow, next);
232 static inline cfi_check_fn ptr_to_check_fn(const struct cfi_shadow __rcu *s,
252 fn = ptr_to_check_fn(rcu_dereference_sched(cfi_shadow), ptr);