drm_atomic_h...rimary_plane(9)
π NAME π
okay so welcome to the Kernel API Manual bestie π today's main character is drm_atomic_helper_check_crtc_primary_plane β and her whole job is checking CRTC state for the primary plane. that's it. that's the gig. π
β¨ SYNOPSIS β¨
int drm_atomic_helper_check_crtc_primary_plane (struct drm_crtc_state
*crtc_state );
like yes she's a function, yes she returns an int, no she's not complicated π«Ά
π«Ά ARGUMENTS π«Ά
crtc_stateβ the CRTC state you want her to check, that's literally it, hand it over and let her cook π
π DESCRIPTION π
so what she does is she checks that a CRTC has at least one primary plane attached to it β which, fun fact, is a whole actual requirement on some hardware π like some hardware simply will not function without it, no cap.
but here's the thing, and this is the important part bestie: this only involves the CRTC side of the test. that's all she does. she is not out here checking everything for you π
so if you actually want to test if the primary plane is visible, or if it can be updated without the CRTC being enabled, you gotta use drm_atomic_helper_check_plane_state in the plane's atomic check instead. different function, different vibe, iykyk π
πΈ RETURN πΈ
0if a primary plane is attached to the CRTC π (slay)- an error code otherwise π (not slay, but at least you know)
π¦ SEE ALSO π¦
okay this list is LONG but every single one of them showed up so we're listing every single one of them, no skipping, we don't do that here β¨
Kernel file ./drivers/gpu/drm/drm_atomic_helper.c overview(9)β the source file itself, go read it, it's iconicdrm_atomic_helper_check_modeset(9)drm_atomic_helper_check_wb_connector_state(9)drm_atomic_helper_check_plane_state(9)drm_atomic_helper_check_planes(9)drm_atomic_helper_check(9)drm_atomic_helper_commit_encoder_bridge_disable(9)drm_atomic_helper_commit_crtc_disable(9)drm_atomic_helper_commit_encoder_bridge_post_disable(9)drm_atomic_helper_update_legacy_modeset_state(9)drm_atomic_helper_calc_timestamping_constants(9)drm_atomic_helper_commit_crtc_set_mode(9)drm_atomic_helper_commit_modeset_disables(9)drm_atomic_helper_commit_writebacks(9)drm_atomic_helper_commit_encoder_bridge_pre_enable(9)drm_atomic_helper_commit_crtc_enable(9)drm_atomic_helper_commit_encoder_bridge_enable(9)drm_atomic_helper_commit_modeset_enables(9)drm_atomic_helper_wait_for_fences(9)drm_atomic_helper_wait_for_vblanks(9)drm_atomic_helper_wait_for_flip_done(9)drm_atomic_helper_commit_tail(9)drm_atomic_helper_commit_tail_rpm(9)drm_atomic_helper_async_check(9)drm_atomic_helper_async_commit(9)drm_atomic_helper_commit(9)implementing nonblocking commit(9)drm_atomic_helper_setup_commit(9)drm_atomic_helper_wait_for_dependencies(9)drm_atomic_helper_fake_vblank(9)drm_atomic_helper_commit_hw_done(9)drm_atomic_helper_commit_cleanup_done(9)drm_atomic_helper_prepare_planes(9)drm_atomic_helper_unprepare_planes(9)drm_atomic_helper_commit_planes(9)drm_atomic_helper_commit_planes_on_crtc(9)drm_atomic_helper_disable_planes_on_crtc(9)drm_atomic_helper_cleanup_planes(9)drm_atomic_helper_swap_state(9)drm_atomic_helper_update_plane(9)drm_atomic_helper_disable_plane(9)drm_atomic_helper_set_config(9)drm_atomic_helper_disable_all(9)drm_atomic_helper_reset_crtc(9)drm_atomic_helper_shutdown(9)drm_atomic_helper_duplicate_state(9)drm_atomic_helper_suspend(9)drm_atomic_helper_commit_duplicated_state(9)drm_atomic_helper_resume(9)drm_atomic_helper_page_flip(9)drm_atomic_helper_page_flip_target(9)drm_atomic_helper_bridge_propagate_bus_fmt(9)drm_atomic_helper_bridge_get_hdmi_output_bus_fmts(9)
yeah that's all of them. every single reference. we ate that list and left no crumbs π₯
and that's the whole page bestie!! π§ this little gem lives over in ./drivers/gpu/drm, dated October 2026, and it goes by the very dramatic name drm_atomic_h...rimary_plane(9) β yes the abbreviation is doing the most, no we don't know why, but she's iconic for it π mwah, bye!! π
π¦ 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