drm_crtc_next_vblank_start(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_crtc_next_vblank_start(9) β€” the kernel API manual, bestie edition πŸŽ€

okay so this one lives in the Kernel API Manual and it's literally all about predicting when your screen's next vblank moment is gonna hit. no cap, it's a glow-up for your timing math ✨


✨ NAME ✨

drm_crtc_next_vblank_start β€” calculate the time of the next vblank πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

int drm_crtc_next_vblank_start (struct drm_crtc *crtc , ktime_t
*vblanktime );

that's the whole vibe. two args, one int coming back at you 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • crtc β€” the crtc for which to calculate next vblank time. yes bestie, this is the display thing we're doing math for πŸ‘‘
  • vblanktime β€” pointer to time to receive the next vblank timestamp. it's a pointer, so it's gonna get written into. icon behaviour πŸ’…

🌸 DESCRIPTION 🌸

so basically this function calculates the expected time of the start of the next vblank period, based on the time of the previous vblank and the frame duration. that's it, that's the whole thing β€” previous vblank time plus one frame of duration = next vblank start, fr fr 🧚

lowkey simple, highkey useful, the way that it just does its little prediction and slays ⭐


🌈 SEE ALSO 🌈

okay this list is LONG, like main character energy long, but every single one of these is a real friend of the family so let's give them all their moment πŸ’œ

like, the whole vblank friend group showed up. iykyk πŸ¦‹


and that's the page!! ty for reading my little kernel moment πŸ’– this one's from ./drivers/gpu/drm, dated October 2026, and the title on the tin is drm_crtc_next_vblank_start(9) β€” periodt. πŸ‘‘βœ¨

πŸ“¦ where this page comes from