kunit_resource_name_match(9)
π kunit_resource_name_match(9) π
okay bestie, welcome to the Kernel API Manual β yes that's the whole manual name, we're fancy like that β¨ this page is literally all about kunit_resource_name_match, and it's giving "tiny function, very specific job" energy.
πΈ NAME πΈ
kunit_resource_name_match β match a resource with the same name. that's it, that's the whole vibe π
β SYNOPSIS β
bool kunit_resource_name_match (struct kunit *test , struct
kunit_resource *res , void *match_name );
she's a bool, she takes three things, she returns an answer. iconic behaviour tbh π
π ARGUMENTS π
testβ the test case this resource belongs to. like, who does this resource even belong to?? this one. π«Άresβ the resource itself. the main character of this whole operation ngl.match_nameβ the name you're matching against. it's avoid *, which is lowkey unhinged but that's not our business π
π₯ SEE ALSO π₯
fr fr, go read these next β the whole squad is here:
- the 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_find_resource(9)kunit_find_named_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 seventeen cross-references, we ate and left no crumbs π
π reminder: the synopsis above is verbatim, so if you're copying it, copy it exactly β no "fixing" the weird spacing, bestie. the manpage said what it said.
and that's the page!! this little beauty lives in ./include/kunit, dated October 2026, and that's the Kernel API Manual signing off ππ mwah, go match some names, you got this π§ββοΈβ¨
π¦ 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