__drm_atomi...estroy_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __drm_atomi...estroy_state β€” wait no, bestie, it's __drm_atomic_helper_plane_destroy_state ✨

okay so this page lives in the Kernel API Manual (section 9, kernel-space girlies only πŸ’–) and the title got truncated by the manpage renderer into __drm_atomi...estroy_state(9) which is genuinely so rude of it. The full name is right down there πŸ‘‡ no cap.


πŸŽ€ NAME πŸŽ€

__drm_atomic_helper_plane_destroy_state β€” the function that releases your plane state, it does not free it, and that distinction is the whole entire point, iykyk πŸ”₯


✨ SYNOPSIS ✨

void __drm_atomic_helper_plane_destroy_state (struct drm_plane_state *state);

like, it returns void. nothing comes back. it just does the thing and dips 🫢


🌸 ARGUMENTS 🌸

  • state β€” the plane state object you're releasing πŸ’… this is the one getting its resources yeeted (but again, NOT its memory, we're not monsters)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so listen. this function releases all the resources stored in the plane state β€” like, every bit of stuff it's holding onto β€” but it does not actually free the memory of the plane state itself. πŸ§šβ€β™€οΈ

and that is not a bug, that is the vibe. it's genuinely useful for drivers that subclass the plane state πŸ‘‘ because if you've got your own fancy struct wrapping this one, you want the inner resources cleaned up without the outer memory getting destroyed from under you. main character energy for the subclass, honestly.

fr fr: release β‰  free. do not conflate them or your driver will have a bad time 😭

πŸ’œ SEE ALSO πŸ’œ

buckle up bestie, this list is long long. but every single one of these is a real reference, so here we go 🌈


mwah πŸ’‹ this lil page ships from ./drivers/gpu/drm, stamped October 2026 β€” go forth and release your resources without freeing your memory, bestie, I believe in you 🫢✨

πŸ“¦ where this page comes from