__drm_atomic...r_crtc_reset(9)
π
__drm_atomic_helper_crtc_reset β the unofficial group chat edition
okay so real talk, this is a page from the Kernel API Manual (yes, the Kernel API Manual, we're fancy now β¨) and it's about resetting state on a CRTC. buckle up bestie, it's shorter than you'd think but every word matters π
β¨ NAME β¨
__drm_atomic_helper_crtc_reset β reset state on CRTC π¦
πΈ SYNOPSIS πΈ
void __drm_atomic_helper_crtc_reset (struct drm_crtc *crtc , struct
drm_crtc_state *crtc_state );
π ARGUMENTS π
crtcβ the drm CRTC. that's the thing you're resetting, the main character of this whole operation πcrtc_stateβ the CRTC state to assign. this is the fresh little state you're handing over π«Ά
π₯ DESCRIPTION π₯
So what does it do? It initializes the newly allocated crtc_state and assigns it to the drm_crtc->state pointer of crtc. literally that's the whole vibe β¨
When do you need it? usually when initializing the drivers, or when it gets called from the drm_crtc_funcs.reset hook. so like, two very real situations ngl.
And why does this exist? it's useful for drivers that subclass the CRTC state π β if your driver is doing the subclass thing, this helper is your bestie fr fr.
lowkey important: this is the double-underscore version, the internal-ish one. it's not doing the full song and dance, it's just doing the init-and-assign part π
π SEE ALSO π
okay this list is long long, but we're not skipping it, we don't do that here π everything gets its moment:
- 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_create_state(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β¦ crtc, plane, connector, private_obj, bridge β the whole atomic helper family reunion π§
anyway that's the page!! go reset some CRTC state, you got this π
this little broadcast came from ./drivers/gpu/drm, dated October 2026, and it's filed under __drm_atomic...r_crtc_reset(9) in the Kernel API Manual β bye bestie, drink water πβ¨
π¦ 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