drm_mm_initialized(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_mm_initialized ✨

okay bestie, welcome to this little slice of the Kernel API Manual β€” it's drm_mm_initialized, and it's literally exactly what it sounds like πŸ’…

🌸 NAME 🌸

drm_mm_initialized β€” the vibe check that tells you whether an allocator is, in fact, initialized 🫢

πŸŽ€ SYNOPSIS πŸŽ€

bool drm_mm_initialized (const struct drm_mm *mm );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • mm β€” the drm_mm you wanna check, bestie. that's it. that's the whole argument πŸŽ€

πŸ’– DESCRIPTION πŸ’–

so here's the tea: drivers should clear the struct drm_mm prior to initialisation if they want to use this function. like, actually clear it β€” don't be out here with stale garbage and then ask this helper if things are initialized, that's not giving what you think it's giving 😭

also, drivers should use this helper for proper encapsulation of drm_mm internals. yes queen, encapsulate! don't go poking at the guts of drm_mm yourself, that's not main character behaviour, that's just asking for a bad time 🧚

⭐ RETURN ⭐

True if the mm is initialized. no cap, that's the whole return value πŸ’€βœ¨

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/drm/drm_mm.h, plus the whole friend group:


okay that's the whole page, you ate that πŸ“ mwah πŸ’œ this little gem lives in ./include/drm and it's stamped October 2026 β€” catch you in the next one, bestie! πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from