drm_crtc_get...vbltimestamp(9)
π drm_crtc_get...vbltimestamp(9) π
okay so bestie, welcome to the Kernel API Manual for drm_crtc_get...vbltimestamp(9) β yes the double-dot name is a whole thing, we don't question it, we just vibe π«Ά
β¨ NAME β¨
drm_crtc_get_last_vbltimestamp β bestie this function retrieves the raw timestamp for the most recent vblank interval and it's lowkey iconic for it π
π SYNOPSIS π
bool drm_crtc_get_last_vbltimestamp (struct drm_crtc *crtc , ktime_t
*tvblank , bool in_vblank_irq );
π ARGUMENTS π
crtcβ the CRTC whose vblank timestamp you're trying to get, like it's the main character here frtvblankβ pointer to the target time that should receive the timestamp. it's giving "hand me the receipt, I'll fill it in" energy π§Ύin_vblank_irqβ set this to true when you're calling fromdrm_crtc_handle_vblank. some drivers gotta apply some workarounds for gpu-specific vblank irq quirks if this flag is set, so likeβ¦ respect the flag ok π
π¦ DESCRIPTION π¦
So what it does: it fetches the system timestamp corresponding to the time of the most recent vblank interval on the specified CRTC. May call into the kms-driver to compute the timestamp with a high-precision GPU-specific method β fancy, we love a high-precision era β¨
Heads up bestie: it returns zero if the timestamp originates from an uncorrected do_gettimeofday call, i.e., it isn't very precisely locked to the true vblank. No cap, that one's lowkey mid precision π
π RETURN π
True if the timestamp is considered to be very precise, false otherwise. A simple girlie. A yes-or-no queen π
πΈ SEE ALSO πΈ
Kernel file ./drivers/gpu/drm/drm_vblank.c and honestly the whole vblank friend group came through:
vblank 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_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 whole page bestie, you ate that reading session π
β¨ this one lives in ./drivers/gpu/drm, dated October 2026, and it's page drm_crtc_get...vbltimestamp(9) of the Kernel API Manual β go forth and timestamp accurately, mwah π«Άπ
π¦ 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