Lines Matching defs:init
115 * with a &struct kunit_suite and will be run after the suite's init
170 * @init: called before every test case.
175 * @init is called before every test case and @exit is called after every
184 int (*init)(struct kunit *test);
197 * created in the init function (see &struct kunit_suite).
268 * module_{init|exit} functions for the builtin case when registering
328 kunit_resource_init_t init,
380 * @init: a user-supplied function to initialize the result (if needed). If
382 * If an init function is supplied, @data is passed to it instead.
385 * @data: value to pass to init function or set in resource data field.
388 kunit_resource_init_t init,
396 * @init: a user-supplied function to initialize the resource data, if needed.
400 * @data: value to pass to init function or set in resource data field.
403 kunit_resource_init_t init,
412 * @init: a user supplied function to initialize the resource.
415 * @context: for the user to pass in arbitrary data to the init function.
426 kunit_resource_init_t init,
437 if (!kunit_add_resource(test, init, free, res, context))