__drm_atomi...c_state_init(9)
π
__drm_atomi...c_state_init(9) π
okay so first things first β welcome to the Kernel API Manual, bestie. we're reading a page called __drm_atomi...c_state_init(9) and honestly the name alone is giving "my mom named me and then the terminal cut me off". but it's fine, we're gonna get through it together π«Ά
β¨ NAME β¨
__drm_atomic_helper_crtc_state_init β literally just Initialize the CRTC state π
πΈ SYNOPSIS πΈ
void __drm_atomic_helper_crtc_state_init (struct drm_crtc_state
*crtc_state , struct drm_crtc *crtc );
no cap, that's the whole function signature. it returns void, so it's not handing you back anything β it's out here doing the work and then just... leaving. main character energy tbh π
π ARGUMENTS π
crtc_stateβ the atomic CRTC state. this one must not be NULL. like, must not. don't play with it πcrtcβ the CRTC object. also must not be NULL. also not a suggestion. same rules, bestie β¨
both of these are hard must not be NULL situations, okay? that's not me being dramatic, that's the manual π
π¦ DESCRIPTION π¦
so what does it actually do? it initializes the newly allocated crtc_state with default values. that's it. that's the vibe.
and why would anyone care? because it's useful for drivers that subclass the CRTC state β iykyk. like, if you're a driver and you're extending the CRTC state with your own little extras, this is the mf function that gets your fresh state looking correct from the jump instead of you hand-rolling defaults like some kind of goblin π§
lowkey iconic. it's the "setting up your desk before you start working" of DRM states π
π SEE ALSO π
bestie, buckle in, this list is long. like, long long. every single one of these is fam and every single one is staying. no editing, no cutting, we respect the whole roster π
Kernel file ./drivers/gpu/drm/drm_atomic_state_helper.c atomic state reset and initialization(9)__drm_atomic_helper_crtc_reset(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)
and that's the page! π this little gem lives over in ./drivers/gpu/drm, and it's dated October 2026 β yes, the future, she's ahead of her time π the manual label up top is the Kernel API Manual, and honestly? she ate. periodt. π
β¨
π¦ 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