• Home
  • Raw
  • Download

Lines Matching refs:obj

61 static void *shadow_get(void *obj, unsigned long id)  in shadow_get()  argument
63 void *ret = klp_shadow_get(obj, id); in shadow_get()
66 __func__, ptr_id(obj), id, ptr_id(ret)); in shadow_get()
71 static void *shadow_alloc(void *obj, unsigned long id, size_t size, in shadow_alloc() argument
75 void *ret = klp_shadow_alloc(obj, id, size, gfp_flags, ctor, in shadow_alloc()
78 __func__, ptr_id(obj), id, size, &gfp_flags, ptr_id(ctor), in shadow_alloc()
83 static void *shadow_get_or_alloc(void *obj, unsigned long id, size_t size, in shadow_get_or_alloc() argument
87 void *ret = klp_shadow_get_or_alloc(obj, id, size, gfp_flags, ctor, in shadow_get_or_alloc()
90 __func__, ptr_id(obj), id, size, &gfp_flags, ptr_id(ctor), in shadow_get_or_alloc()
95 static void shadow_free(void *obj, unsigned long id, klp_shadow_dtor_t dtor) in shadow_free() argument
97 klp_shadow_free(obj, id, dtor); in shadow_free()
99 __func__, ptr_id(obj), id, ptr_id(dtor)); in shadow_free()
111 static int shadow_ctor(void *obj, void *shadow_data, void *ctor_data) in shadow_ctor() argument
121 static void shadow_dtor(void *obj, void *shadow_data) in shadow_dtor() argument
124 __func__, ptr_id(obj), ptr_id(shadow_data)); in shadow_dtor()
129 void *obj = THIS_MODULE; in test_klp_shadow_vars_init() local
149 ret = shadow_get(obj, id); in test_klp_shadow_vars_init()
156 sv1 = shadow_alloc(obj, id, size, gfp_flags, shadow_ctor, &var1); in test_klp_shadow_vars_init()
160 sv2 = shadow_alloc(obj + 1, id, size, gfp_flags, shadow_ctor, &var2); in test_klp_shadow_vars_init()
164 sv3 = shadow_alloc(obj, id + 1, size, gfp_flags, shadow_ctor, &var3); in test_klp_shadow_vars_init()
172 ret = shadow_get(obj, id); in test_klp_shadow_vars_init()
179 ret = shadow_get(obj + 1, id); in test_klp_shadow_vars_init()
185 ret = shadow_get(obj, id + 1); in test_klp_shadow_vars_init()
196 sv4 = shadow_get_or_alloc(obj + 2, id, size, gfp_flags, shadow_ctor, &var4); in test_klp_shadow_vars_init()
200 ret = shadow_get_or_alloc(obj + 2, id, size, gfp_flags, shadow_ctor, &var4); in test_klp_shadow_vars_init()
211 shadow_free(obj, id, shadow_dtor); /* sv1 */ in test_klp_shadow_vars_init()
212 ret = shadow_get(obj, id); in test_klp_shadow_vars_init()
216 shadow_free(obj + 1, id, shadow_dtor); /* sv2 */ in test_klp_shadow_vars_init()
217 ret = shadow_get(obj + 1, id); in test_klp_shadow_vars_init()
221 shadow_free(obj + 2, id, shadow_dtor); /* sv4 */ in test_klp_shadow_vars_init()
222 ret = shadow_get(obj + 2, id); in test_klp_shadow_vars_init()
229 ret = shadow_get(obj, id + 1); in test_klp_shadow_vars_init()
240 ret = shadow_get(obj, id); in test_klp_shadow_vars_init()