kunit_put_resource(9)

📦 version 7.3.1, in nixpkgs unstable

🌸 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 🌈

🫶 Okay bye bestie! Footer tea: source/version ./include/kunit · date October 2026 · page kunit_put_resource(9). Mwah 💜
📦 where this page comes from