drm_kunit_he..._free_device(9)
π 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 frdevβ 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 π
- the kernel file itself:
./drivers/gpu/drm/tests/drm_kunit_helpers.cπ iconic source material drm_kunit_helper_alloc_device(9)β the allocator bestie to this freer, they come as a set π«Άdrm_kunit_helper_atomic_state_alloc(9)drm_kunit_helper_create_primary_plane(9)drm_kunit_helper_create_crtc(9)drm_kunit_helper_enable_crtc_connector(9)drm_kunit_add_mode_destroy_action(9)drm_kunit_display_mode_from_cea_vic(9)
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
- 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