/kernel/linux/linux-6.6/include/kunit/ |
H A D | resource.h | 19 struct kunit_resource; 21 typedef int (*kunit_resource_init_t)(struct kunit_resource *, void *); 22 typedef void (*kunit_resource_free_t)(struct kunit_resource *); 25 * struct kunit_resource - represents a *test managed resource* 32 * function. The struct kunit_resource itself is freed automatically with 51 * static int kunit_kmalloc_init(struct kunit_resource *res, void *context) 62 * static void kunit_kmalloc_free(struct kunit_resource *res) 83 struct kunit_resource { struct 100 static inline void kunit_get_resource(struct kunit_resource *res) in kunit_get_resource() 111 struct kunit_resource *re in kunit_release_resource() [all...] |
/kernel/linux/linux-5.10/lib/kunit/ |
H A D | kunit-test.c | 117 static int fake_resource_init(struct kunit_resource *res, void *context) in fake_resource_init() 126 static void fake_resource_free(struct kunit_resource *res) in fake_resource_free() 145 struct kunit_resource *res; in kunit_resource_test_alloc_resource() 175 struct kunit_resource *res = kunit_alloc_and_get_resource( in kunit_resource_test_destroy_resource() 197 struct kunit_resource *resources[5]; in kunit_resource_test_cleanup_resources() 230 static int fake_resource_2_init(struct kunit_resource *res, void *context) in fake_resource_2_init() 241 static void fake_resource_2_free(struct kunit_resource *res) in fake_resource_2_free() 248 static int fake_resource_1_init(struct kunit_resource *res, void *context) in fake_resource_1_init() 251 struct kunit_resource *res2; in fake_resource_1_init() 268 static void fake_resource_1_free(struct kunit_resource *re [all...] |
H A D | test.c | 400 * Used for static resources and when a kunit_resource * has been created by 408 struct kunit_resource *res, in kunit_add_resource() 436 struct kunit_resource *res, in kunit_add_named_resource() 440 struct kunit_resource *existing; in kunit_add_named_resource() 457 struct kunit_resource *kunit_alloc_and_get_resource(struct kunit *test, in kunit_alloc_and_get_resource() 463 struct kunit_resource *res; in kunit_alloc_and_get_resource() 483 void kunit_remove_resource(struct kunit *test, struct kunit_resource *res) in kunit_remove_resource() 495 struct kunit_resource *res = kunit_find_resource(test, match, in kunit_destroy_resource() 515 static int kunit_kmalloc_init(struct kunit_resource *res, void *context) in kunit_kmalloc_init() 526 static void kunit_kmalloc_free(struct kunit_resource *re [all...] |
H A D | string-stream.c | 21 static int string_stream_fragment_init(struct kunit_resource *res, in string_stream_fragment_init() 41 static void string_stream_fragment_free(struct kunit_resource *res) in string_stream_fragment_free() 172 static int string_stream_init(struct kunit_resource *res, void *context) in string_stream_init() 190 static void string_stream_free(struct kunit_resource *res) in string_stream_free()
|
/kernel/linux/linux-6.6/lib/kunit/ |
H A D | resource.c | 14 * Used for static resources and when a kunit_resource * has been created by 22 struct kunit_resource *res, in __kunit_add_resource() 48 void kunit_remove_resource(struct kunit *test, struct kunit_resource *res) in kunit_remove_resource() 66 struct kunit_resource *res = kunit_find_resource(test, match, in kunit_destroy_resource() 82 struct kunit_resource res; 87 static void __kunit_action_free(struct kunit_resource *res) in __kunit_action_free() 128 struct kunit_resource *res, void *match_data) in __kunit_action_match() 146 struct kunit_resource *res; in kunit_remove_action() 166 struct kunit_resource *res; in kunit_release_action()
|
H A D | static_stub.c | 20 static void __kunit_static_stub_resource_free(struct kunit_resource *res) in __kunit_static_stub_resource_free() 27 struct kunit_resource *res, in __kunit_static_stub_resource_match() 43 struct kunit_resource *res; in __kunit_get_static_stub_address_impl() 62 struct kunit_resource *res; in kunit_deactivate_static_stub() 92 struct kunit_resource *res; in __kunit_activate_static_stub()
|
H A D | kunit-test.c | 118 static int fake_resource_init(struct kunit_resource *res, void *context) in fake_resource_init() 127 static void fake_resource_free(struct kunit_resource *res) in fake_resource_free() 146 struct kunit_resource *res; in kunit_resource_test_alloc_resource() 166 struct kunit_resource *res, in kunit_resource_instance_match() 183 struct kunit_resource *res = kunit_alloc_and_get_resource( in kunit_resource_test_destroy_resource() 204 struct kunit_resource *res = kunit_alloc_and_get_resource( in kunit_resource_test_remove_resource() 239 struct kunit_resource *resources[5]; in kunit_resource_test_cleanup_resources() 272 static int fake_resource_2_init(struct kunit_resource *res, void *context) in fake_resource_2_init() 283 static void fake_resource_2_free(struct kunit_resource *res) in fake_resource_2_free() 290 static int fake_resource_1_init(struct kunit_resource *re [all...] |
H A D | test.c | 880 struct kunit_resource *res; in kunit_cleanup() 899 struct kunit_resource, in kunit_cleanup()
|
/kernel/linux/linux-5.10/include/kunit/ |
H A D | test.h | 20 struct kunit_resource; 22 typedef int (*kunit_resource_init_t)(struct kunit_resource *, void *); 23 typedef void (*kunit_resource_free_t)(struct kunit_resource *); 26 * struct kunit_resource - represents a *test managed resource* 50 * static int kunit_kmalloc_init(struct kunit_resource *res, void *context) 61 * static void kunit_kmalloc_free(struct kunit_resource *res) 82 struct kunit_resource { struct 324 * Like kunit_alloc_resource() below, but returns the struct kunit_resource 327 struct kunit_resource *kunit_alloc_and_get_resource(struct kunit *test, 339 static inline void kunit_get_resource(struct kunit_resource *re [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | slub_kunit.c | 10 static struct kunit_resource resource;
|
/kernel/linux/linux-5.10/mm/kasan/ |
H A D | report.c | 464 struct kunit_resource *resource; in kasan_update_kunit_status()
|
/kernel/linux/linux-5.10/lib/ |
H A D | test_kasan.c | 38 static struct kunit_resource resource;
|
/kernel/linux/linux-5.10/drivers/thunderbolt/ |
H A D | test.c | 15 static int __ida_init(struct kunit_resource *res, void *context) in __ida_init() 24 static void __ida_destroy(struct kunit_resource *res) in __ida_destroy()
|
/kernel/linux/linux-6.6/drivers/thunderbolt/ |
H A D | test.c | 15 static int __ida_init(struct kunit_resource *res, void *context) in __ida_init() 24 static void __ida_destroy(struct kunit_resource *res) in __ida_destroy()
|
/kernel/linux/linux-6.6/mm/ |
H A D | slub.c | 649 struct kunit_resource *resource; in slab_add_kunit_errors()
|