drm_mm_clean(9)
π drm_mm_clean(9) β the Kernel API Manual, but make it cute
okay so bestie, welcome to drm_mm_clean(9) β¨ this is a lil function from the Kernel API Manual and it's literally just a vibe check for your allocator. yes, that's it. that's the whole thing. and honestly? iconic.
β¨ NAME β¨
drm_mm_clean β checks whether an allocator is clean π§Ό
like, is it fresh? is it pristine? is it that girl? let's find out.
πΈ SYNOPSIS πΈ
bool drm_mm_clean (const struct drm_mm *mm );
that's the whole signature, no cap. it returns a bool and takes one const struct drm_mm * named mm. short, sweet, slays.
π ARGUMENTS π
mmβ thedrm_mmallocator you wanna check π like, hand me the allocator and i'll tell you if it's clean.
π¦ RETURN π¦
Trueβ the allocator is completely free π nothing in it. empty. immaculate. a clean slate, fr fr.falseβ there's still a node allocated in it π so like, not clean. there's leftovers. somebody left a node in there.
no in-between bestie, it's giving binary. true or false, clean or not-clean, that's the whole menu π
π SEE ALSO π
bestie the cross-references go crazy here, buckle up π«Ά
- Kernel file
./include/drm/drm_mm.hβ the house where all of this lives π enum drm_mm_insert_mode(9)struct drm_mm_node(9)struct drm_mm(9)struct drm_mm_scan(9)drm_mm_node_allocated(9)drm_mm_initialized(9)drm_mm_hole_follows(9)drm_mm_hole_node_start(9)drm_mm_hole_node_end(9)drm_mm_nodes(9)drm_mm_for_each_node(9)drm_mm_for_each_node_safe(9)drm_mm_for_each_hole(9)drm_mm_insert_node_generic(9)drm_mm_insert_node(9)drm_mm_for_each_node_in_range(9)drm_mm_scan_init(9)
like i said β the whole friend group π
okay that's the page, you ate that honestly π and for the cute sign-off: this one's brought to you by the source/version vibes of ./include/drm, dated October 2026, and yes it's drm_mm_clean(9) again because we always come back to her π mwah, go check your allocators bestie π§
π¦ 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