drm_crtc_acc...vblank_count(9)
π drm_crtc_acc...vblank_count(9) π
okay so this is a page straight out of the Kernel API Manual, bestie β the whole title is drm_crtc_acc...vblank_count(9) (yes it's truncated, no I can't fix it, that's just how it's printed π
). it's about counting vblanks accurately, and honestly? it ate.
β¨ NAME β¨
drm_crtc_accurate_vblank_count β retrieve the master vblank counter π
πΈ SYNOPSIS πΈ
u64 drm_crtc_accurate_vblank_count (struct drm_crtc *crtc );
π¦ ARGUMENTS π¦
crtcβ which counter to retrieve, babes. that's the whole vibe check right there β¨
π DESCRIPTION π
so this function is lowkey a cousin of drm_crtc_vblank_count β same energy, but this one interpolates to handle a race with vblank interrupts, using the high precision timestamping support. no cap, that's the whole flex π₯
it's mostly useful for hardware that can obtain the scanout position but doesn't have a hardware frame counter. like, it's giving "i can see where we are but i can't count" and this function is the main character that steps in π«Ά
ngl the interpolation is the entire point here β don't sleep on it.
π SEE ALSO π
the whole friend group π (kernel file ./drivers/gpu/drm/drm_vblank.c, and yes, all of these):
vblank handling(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_next_vblank_start(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)
okay that's the page!! π
this came from ./drivers/gpu/drm and it's dated October 2026 β periodt, go read the whole vblank saga, ily, 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