__drm_atomic...estroy_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ __drm_atomic...estroy_state(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual β€” this one is about a little cleanup function and it's genuinely so important, so let's get into it πŸ’…


✨ NAME ✨

__drm_atomic_helper_crtc_destroy_state β€” release CRTC state 🧹


🌸 SYNOPSIS 🌸

void __drm_atomic_helper_crtc_destroy_state (struct drm_crtc_state
*state );

like, that's the whole signature. short and iconic, as she should be ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • state β€” the CRTC state object to release πŸŽ€ aka the thing you're saying bye to

πŸ’– DESCRIPTION πŸ’–

so here's the vibe: this function releases all resources stored in the CRTC state β€” but, and this is the key part, without actually freeing the memory of the CRTC state itself. ngl that distinction is everything πŸ’€

it's useful for drivers that subclass the CRTC state, iykyk. like, if you've got your own fancy extended struct wrapping the CRTC state, this lets you clean out the innards without yeeting the whole allocation out of existence. main character energy for the teardown path, truly πŸ‘‘

fr fr, remember: resources go poof, the memory stays put. don't mix those two up πŸ™ˆ

🫢 SEE ALSO 🫢

Kernel file ./drivers/gpu/drm/drm_atomic_state_helper.c β€” atomic state reset and initialization(9), and honestly the whole extended friend group πŸ’œ:

like, that's the whole group chat, go read them all bestie 🫢


🌈 that's the page!! this little icon lives over in ./drivers/gpu/drm, and she's dated October 2026 β€” slay, see you in the next one πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from