drm_atomic_h...create_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_atomic_h...create_state(9) β€” Kernel API Manual

okay so bestie, welcome to the kernel API manual, this one's all about drm_atomic_helper_plane_create_state and honestly it's a little cutie. let's get into it πŸŽ€


✨ NAME ✨

drm_atomic_helper_plane_create_state β€” the default &drm_plane_funcs.atomic_create_state hook for planes. that's it, that's the vibe πŸ¦‹


🌸 SYNOPSIS 🌸

struct drm_plane_state * drm_atomic_helper_plane_create_state (struct drm_plane *plane );

πŸŽ€ ARGUMENTS πŸŽ€

  • plane β€” the plane object. that's the whole argument, she's low maintenance πŸ’…

πŸ’– DESCRIPTION πŸ’–

so what does she do? she allocates and initializes a pristine drm_plane_state. pristine. brand new. no notes. ✨

and this is genuinely useful for drivers that don't subclass drm_plane_state β€” like if you're not doing the whole custom-struct thing, this hook has your back fr fr 🫢


⭐ RETURN ⭐

a pointer to the new plane state πŸ’« β€” or, if things go sideways, an ERR_PTR on failure. no cap, check it.


🌈 SEE ALSO 🌈

bestie this list is long, but every single one of these is iconic in her own way, so here we go πŸ‘‘


and that's the whole page bestie, you ate that πŸ’…βœ¨

this lil masterpiece lives at ./drivers/gpu/drm, dated October 2026 β€” mwah, go read the source, ily πŸ“πŸ’œ
πŸ“¦ where this page comes from