kunit_put_resource(9)
🌸 NAME 🌸
Okay so bestie, welcome to kunit_put_resource(9) from the Kernel API Manual — and the vibe is literally this: when the caller is done with a retrieved resource, kunit_put_resource() should be called to drop the reference count. The resource list maintains a reference count on resources, so if no users are utilizing a resource and it is removed from the resource list, it will be freed via the associated free function (if any). Only needs to be used if we alloc_and_get() or find() resource. Periodt. 💅
✨ SYNOPSIS ✨
void kunit_put_resource (struct kunit_resource *res );
That's the whole signature, no cap. 🫶
🦋 ARGUMENTS 🦋
res— resource. That's the resource bestie. 🎀
🌈 SEE ALSO 🌈
- Kernel file
./include/kunit/resource.h struct kunit_resource(9)kunit_get_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_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)
🫶 Okay bye bestie! Footer tea: source/version./include/kunit· date October 2026 · pagekunit_put_resource(9). Mwah 💜
📦 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