drm_atomic_...create_state(9)
π 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_PTRon 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.catomic 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms