drm_atomic_...create_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

drm_atomic_helper_crtc_create_state β€” the default &drm_crtc_funcs.atomic_create_state hook for crtcs, no cap ✨

Ok so real talk, this is a page from the Kernel API Manual, and honestly? It's a little gem πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct drm_crtc_state * drm_atomic_helper_crtc_create_state (struct
       drm_crtc *crtc );

That's the whole vibe. One argument, one return, iconic behavior πŸ’…


🌸 ARGUMENTS 🌸

  • crtc β€” the crtc object, bestie. That's it. That's the argument. She's the main character here πŸ‘‘

✨ DESCRIPTION ✨

So what does she do? She allocates and initializes a pristine drm_crtc_state πŸ’– Like, fresh out the box, untouched, immaculate. Pristine. We love a clean slate.

This is useful for drivers that don't subclass drm_crtc_state 🫢

Basically if your driver is out here living that simple life and not subclassing drm_crtc_state, this helper is literally made for you. She handles the whole create-state thing so you don't have to 😌 periodt.


πŸ”₯ RETURN πŸ”₯

  • Pointer to the new crtc state πŸŽ€
  • or ERR_PTR on failure 😭 (so like… check that before you go dereferencing, bestie, fr fr)

🌈 SEE ALSO 🌈

Ok buckle up, this list is LONG and honestly it ate πŸ‘‘

  • Kernel file ./drivers/gpu/drm/drm_atomic_state_helper.c atomic state reset and initialization(9)
  • __drm_atomic_helper_crtc_state_init(9)
  • __drm_atomic_helper_crtc_reset(9)
  • drm_atomic_helper_crtc_reset(9)
  • __drm_atomic_helper_crtc_duplicate_state(9)
  • drm_atomic_helper_crtc_duplicate_state(9)
  • __drm_atomic_helper_crtc_destroy_state(9)
  • drm_atomic_helper_crtc_destroy_state(9)
  • __drm_atomic_helper_plane_state_init(9)
  • __drm_atomic_helper_plane_reset(9)
  • drm_atomic_helper_plane_reset(9)
  • drm_atomic_helper_plane_create_state(9)
  • __drm_atomic_helper_plane_duplicate_state(9)
  • drm_atomic_helper_plane_duplicate_state(9)
  • __drm_atomic_helper_plane_destroy_state(9)
  • drm_atomic_helper_plane_destroy_state(9)
  • __drm_atomic_helper_connector_state_init(9)
  • __drm_atomic_helper_connector_reset(9)
  • drm_atomic_helper_connector_reset(9)
  • drm_atomic_helper_connector_create_state(9)
  • drm_atomic_helper_connector_tv_margins_reset(9)
  • drm_atomic_helper_connector_tv_reset(9)
  • drm_atomic_helper_connector_tv_check(9)
  • __drm_atomic_helper_connector_duplicate_state(9)
  • drm_atomic_helper_connector_duplicate_state(9)
  • __drm_atomic_helper_connector_destroy_state(9)
  • drm_atomic_helper_connector_destroy_state(9)
  • __drm_atomic_helper_private_obj_create_state(9)
  • __drm_atomic_helper_private_obj_duplicate_state(9)
  • __drm_atomic_helper_bridge_duplicate_state(9)
  • drm_atomic_helper_bridge_duplicate_state(9)
  • drm_atomic_helper_bridge_destroy_state(9)
  • __drm_atomic_helper_bridge_state_init(9)
  • drm_atomic_helper_bridge_create_state(9)

Like, every single state helper in the family reunion 🧚 go read them all, iykyk πŸ’œ


k bye bestie, this page lives in ./drivers/gpu/drm and it's dated October 2026 β€” she's from the future, we stan πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from