drm_atomic_...create_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_atomic_...create_state(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” yes we're reading kernel docs for fun now, that's the vibe, that's the era πŸŽ€


✨ NAME ✨

drm_atomic_helper_bridge_create_state β€” the default &drm_bridge_funcs.atomic_create_state hook for bridges 🫢


✨ SYNOPSIS ✨

struct drm_bridge_state * drm_atomic_helper_bridge_create_state (struct
drm_bridge *bridge );

✨ ARGUMENTS ✨

  • bridge β€” the bridge object, your main character for this whole function πŸ¦‹

✨ DESCRIPTION ✨

okay so what this does is literally allocate and initialize a pristine drm_bridge_state. brand new, untouched, fresh out the box ✨

and like… when is this useful? bestie it's for drivers that don't subclass drm_bridge_state. that's it, that's the whole vibe. if you're not subclassing, this hook is your girl πŸ’…


✨ RETURN ✨

it hands you back a pointer to the new bridge state πŸŽ€ β€” or, if things go sideways, an ERR_PTR on failure 😭 no cap, check that pointer.


✨ SEE ALSO ✨

like… that's a whole friend group right there, go say hi πŸ‘‘


lowkey the whole list above is your reading list. not me making homework sound cute πŸ™ˆ

kay that's the page!! this little beauty lives in ./drivers/gpu/drm, it's dated October 2026, and it answers to the name drm_atomic_...create_state(9) β€” slay, bye bestie πŸ’–πŸ¦‹

πŸ“¦ where this page comes from