drm_crtc_next_vblank_start(9)
π 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 π
- Kernel file
./drivers/gpu/drm/drm_vblank.cvblank handling(9) drm_crtc_accurate_vblank_count(9)drm_vblank_init(9)drm_dev_has_vblank(9)drm_crtc_vblank_waitqueue(9)drm_calc_timestamping_constants(9)drm_crtc_vblank_helper_get_vblank_timestamp_internal(9)drm_crtc_vblank_helper_get_vblank_timestamp(9)drm_crtc_get_last_vbltimestamp(9)drm_crtc_vblank_count(9)drm_vblank_count_and_time(9)drm_crtc_vblank_count_and_time(9)drm_crtc_arm_vblank_event(9)drm_crtc_send_vblank_event(9)drm_crtc_vblank_get(9)drm_crtc_vblank_put(9)drm_crtc_wait_one_vblank(9)drm_crtc_vblank_off(9)drm_crtc_vblank_reset(9)drm_crtc_set_max_vblank_count(9)drm_crtc_vblank_on_config(9)drm_crtc_vblank_on(9)drm_crtc_vblank_restore(9)drm_handle_vblank(9)drm_crtc_handle_vblank(9)drm_crtc_vblank_start_timer(9)drm_crtc_vblank_cancel_timer(9)drm_crtc_vblank_get_vblank_timeout(9)
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
- 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