drm_atomic_h...epare_planes(9)
π drm_atomic_h...epare_planes(9) β Kernel API Manual, bestie edition β¨
okay so bestie, welcome to the kernel API manual for drm_atomic_h...epare_planes(9) β yes the title is truncated with those three dots, that's just how it's printed in the manual header, we don't question the kernel's choices π
πΈ NAME πΈ
drm_atomic_helper_prepare_planes β the function that gets your plane resources all prepped and cute before the commit happens π
β¨ SYNOPSIS β¨
int drm_atomic_helper_prepare_planes (struct drm_device *dev , struct
drm_atomic_commit *state );
like literally that's the whole signature, go off king π
π¦ ARGUMENTS π¦
devβ the DRM device. the main character of this whole operation πstateβ the atomic state object, and it's holding all the new state structures. fresh fits only, no hand-me-downs π
π§ DESCRIPTION π§
okay so here's the vibe: this function prepares plane state β and specifically framebuffers β for the new configuration β¨ it does this by calling drm_plane_helper_funcs.prepare_fb. that's the whole assignment, that's what she does π
but here's the part where she's actually a good friend π«Ά β if any failure happens along the way, she doesn't just bail and leave a mess everywhere. nope. she calls drm_plane_helper_funcs.cleanup_fb on any framebuffer that already got successfully prepared. so like, she cleans up after herself. growth. we love to see it. π₯
ngl this is the whole point β prepare everything, and if it goes sideways, undo the parts that already worked so you don't leak stuff everywhere π
β RETURN β
0on success π- a negative error code on failure π
π SEE ALSO π
bestie this list is long, but every single one of these is getting its moment, no skipping, no cap π
- the Kernel file
./drivers/gpu/drm/drm_atomic_helper.coverview(9) drm_atomic_helper_check_modeset(9)drm_atomic_helper_check_wb_connector_state(9)drm_atomic_helper_check_plane_state(9)drm_atomic_helper_check_crtc_primary_plane(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_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)
and that's the whole page, bestie π«Ά this one lives in ./drivers/gpu/drm, dated October 2026, and it's filed under the manual name drm_atomic_h...epare_planes(9) β go prep those planes, you absolute icon πβ¨
π¦ 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