Home
last modified time | relevance | path

Searched refs:action_ctx (Results 1 – 1 of 1) sorted by relevance

/linux-6.6.21/lib/kunit/
Dresource.c89 struct kunit_action_ctx *action_ctx = container_of(res, struct kunit_action_ctx, res); in __kunit_action_free() local
91 action_ctx->func(action_ctx->ctx); in __kunit_action_free()
97 struct kunit_action_ctx *action_ctx; in kunit_add_action() local
101 action_ctx = kzalloc(sizeof(*action_ctx), GFP_KERNEL); in kunit_add_action()
102 if (!action_ctx) in kunit_add_action()
105 action_ctx->func = action; in kunit_add_action()
106 action_ctx->ctx = ctx; in kunit_add_action()
108 action_ctx->res.should_kfree = true; in kunit_add_action()
110 __kunit_add_resource(test, NULL, __kunit_action_free, &action_ctx->res, action_ctx); in kunit_add_action()