Lines Matching full:free
28 * @free: a user supplied function to free the resource.
31 * cleaned up at the end of a test case. This cleanup is performed by the 'free'
86 kunit_resource_free_t free; member
114 if (res->free) in kunit_release_resource()
115 res->free(res); in kunit_release_resource()
117 /* 'res' is valid here, as if should_kfree is set, res->free may not free in kunit_release_resource()
131 * associated free function (if any). Only
149 * @free: a user-supplied function to free the resource (if needed).
155 kunit_resource_free_t free,
165 * @free: a user-supplied function to free the resource (if needed).
171 kunit_resource_free_t free, in kunit_add_resource() argument
176 return __kunit_add_resource(test, init, free, res, data); in kunit_add_resource()
186 * @free: a user-supplied function to free the resource data, if needed.
193 kunit_resource_free_t free, in kunit_add_named_resource() argument
212 return __kunit_add_resource(test, init, free, res, data); in kunit_add_named_resource()
219 * @free: a user supplied function to free the resource (if needed).
239 kunit_resource_free_t free, in kunit_alloc_and_get_resource() argument
252 ret = __kunit_add_resource(test, init, free, res, context); in kunit_alloc_and_get_resource()
268 * @free: a user supplied function to free the resource (if needed).
282 kunit_resource_free_t free, in kunit_alloc_resource() argument
293 if (!__kunit_add_resource(test, init, free, res, context)) in kunit_alloc_resource()