kunit_find_named_resource(9)
π kunit_find_named_resource(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one's a little function with main character energy β it's literally just here to find your resource by name, and honestly? we stan a straightforward queen π
πΈ NAME πΈ
kunit_find_named_resource β find a resource using match name π
lowkey iconic, highkey useful. that's it. that's the whole vibe check.
β¨ SYNOPSIS β¨
struct kunit_resource * kunit_find_named_resource (struct kunit *test ,
const char *name );
look at her go π«Ά she takes two things and hands you back a struct kunit_resource * β not me being obsessed with a return type fr fr
π¦ ARGUMENTS π¦
testβ the test case to which the resource belongs. like, whose resource is this anyway?? this param knows πnameβ the match name. the name you're matching on. the β¨nameβ¨ in question. iykyk π
π SEE ALSO π
bestie, the friend group is large and honestly every single one of them ate π₯ go say hi:
- Kernel file
./include/kunit/resource.h struct kunit_resource(9)kunit_get_resource(9)kunit_put_resource(9)__kunit_add_resource(9)kunit_add_resource(9)kunit_add_named_resource(9)kunit_alloc_and_get_resource(9)kunit_alloc_resource(9)kunit_resource_name_match(9)kunit_find_resource(9)kunit_destroy_resource(9)kunit_remove_resource(9)KUNIT_DEFINE_ACTION_WRAPPER(9)kunit_add_action(9)kunit_add_action_or_reset(9)kunit_remove_action(9)kunit_release_action(9)
that's the whole squad, no cap π
ngl there's not a ton of drama in this page β no scary warnings, no deprecated nonsense, no "undefined behaviour, don't do it" moment π just a clean little finder. enjoy the peace while it lasts π
and that's a wrap, bestie π this page came from ./include/kunit, dated October 2026 β periodt, go find your named resource, slay πβ¨π§
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms