drm_atomic_h...or_flip_done(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_atomic_h...or_flip_done(9) β€” bestie edition

okay so this is a page from the Kernel API Manual, and it's about drm_atomic_helper_wait_for_flip_done β€” yes the title up there is truncated with ... and no we did not do that, that's just how it's printed, iykyk πŸŽ€


✨ NAME ✨

drm_atomic_helper_wait_for_flip_done β€” literally just wait for all page flips to be done. that's the whole vibe. it waits. for flips. until they're done. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void drm_atomic_helper_wait_for_flip_done (struct drm_device *dev ,
struct drm_atomic_commit *state );

it returns void btw, so like… it's not gonna hand you back a result. it just does the thing and dips. πŸ’€


🌸 ARGUMENTS 🌸

  • dev β€” the DRM device. the main character, the hardware baddie in question πŸ–₯️
  • state β€” the atomic state object that's being committed. this is the glow-up plan your driver is currently serving ✨

πŸŽ€ DESCRIPTION πŸŽ€

okay so picture this: your atomic commit just happened, right? and now this helper is the one that's like "girl. hold on. let's wait for the page flips on all the affected crtcs before we go touching anything." and by "touching anything" we mean β€” before cleaning up old framebuffers using drm_atomic_helper_cleanup_planes. so like, it's the responsible friend who makes sure the leftovers are actually cool to toss 🫢

compared to drm_atomic_helper_wait_for_vblanks, this one is the thorough icon πŸ‘‘ β€” it waits for the completion on all CRTCs, and it does that based on the assumption that cursors-only updates are signalling their completion immediately (or that they're using a different path entirely). not me explaining that like it's drama, but it kind of is πŸ’…

⚠️ real talk though β€” this requires that drivers use the nonblocking commit tracking support, and that support has to be initialized using drm_atomic_helper_setup_commit. if you skipped that step, this is not gonna slay, it's gonna be a whole situation 😭 don't say we didn't warn you.

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, all invited to the group chat, no one left out fr fr πŸ’–:


🌈 a lil sign-off 🌈

this page lives in ./drivers/gpu/drm, dated October 2026, and it's filed under the manual name Kernel API Manual β€” and the title at the very top, drm_atomic_h...or_flip_done(9), is just the truncation girlie doing her thing, she didn't choose that life πŸ™ˆ

go forth, wait for your flips, and remember: drm_atomic_helper_setup_commit first, vibes second. periodt. πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from