Searched refs:kunit_add_action (Results 1 – 7 of 7) sorted by relevance
/linux/lib/kunit/ |
H A D | resource.c | 95 int kunit_add_action(struct kunit *test, void (*action)(void *), void *ctx) in kunit_add_action() function 114 EXPORT_SYMBOL_GPL(kunit_add_action); 119 int res = kunit_add_action(test, action, ctx); in kunit_add_action_or_reset()
|
H A D | device.c | 21 /* Wrappers for use with kunit_add_action() */ 102 kunit_add_action(test, driver_unregister_wrapper, driver); in kunit_driver_create() 140 kunit_add_action(test, device_unregister_wrapper, &kunit_dev->dev); in kunit_device_register_internal()
|
H A D | string-stream-test.c | 25 /* Avoids a cast warning if kfree() is passed direct to kunit_add_action(). */ 28 /* Avoids a cast warning if string_stream_destroy() is passed direct to kunit_add_action(). */ 36 kunit_add_action(test, kfree_wrapper, (void *)str); in get_concatenated_string() 64 kunit_add_action(test, cleanup_raw_stream, stream); in string_stream_unmanaged_init_test()
|
H A D | assert_test.c | 46 kunit_add_action(test, kfree_wrapper, (void *)str); in get_str_from_stream()
|
/linux/drivers/of/ |
H A D | of_kunit_helpers.c | 84 if (kunit_add_action(test, of_node_put_wrapper, node)) { in of_node_put_kunit()
|
/linux/include/kunit/ |
H A D | resource.h | 390 /* A 'deferred action' function to be used with kunit_add_action. */ 401 * argument. This wrapper can then be passed to kunit_add_action() and 415 * kunit_add_action() - Call a function when the test ends. 422 * registered with kunit_add_action() will execute in the opposite order to that 434 int kunit_add_action(struct kunit *test, kunit_action_t *action, void *ctx); 444 * registered with kunit_add_action() will execute in the opposite order to that 468 * Prevent an action deferred via kunit_add_action() from executing when the 486 * Execute a function deferred via kunit_add_action()) immediately, rather than
|
/linux/Documentation/dev-tools/kunit/ |
H A D | usage.rst | 646 kunit_add_action(test, &cleanup_device, &dev); 656 kunit_add_action(test, &device_unregister_wrapper, &dev); 661 ``kunit_add_action`` can fail if, for example, the system is out of memory.
|