drm_kunit_he..._free_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_kunit_he..._free_device(9) πŸ’–

okay bestie, welcome to the Kernel API Manual ✨ β€” yes that's the manual name, and yes the page title got truncated to drm_kunit_he..._free_device(9) because apparently even kernel docs have a character limit, iykyk 😭


🌸 NAME 🌸

drm_kunit_helper_free_device β€” frees a mock device 🫢

like, it's the cleanup bestie. the "okay we're done here, bye" of mock devices πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void drm_kunit_helper_free_device (struct kunit *test , struct device
*dev );

that's the whole signature, no cap ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • test β€” the test context object πŸ§ͺ like, the vibe container for your whole test, fr fr
  • dev β€” the device to free πŸ—‘οΈ the mock device in question, the one that's about to be released into the wild

⭐ DESCRIPTION ⭐

Frees a device that was allocated with drm_kunit_helper_alloc_device. πŸ”₯

that's it. that's the whole thing. you allocated it, now you free it β€” the circle of life, main character energy πŸ‘‘

quick heads up bestie: this literally says it frees a device allocated with drm_kunit_helper_alloc_device, so pair it with that allocator and you're slaying πŸ’œ

🌈 SEE ALSO 🌈


and that's the page!! πŸŽ€βœ¨ this whole thing lives over in ./drivers/gpu/drm/tests, dated October 2026, and it's brought to you by the same truncated icon drm_kunit_he..._free_device(9) you saw at the top πŸ’€πŸ™ˆ β€” go free those mock devices, bestie, and remember: alloc responsibly πŸ’…πŸ’–

πŸ“¦ where this page comes from