drm_crtc_vbl...p_from_timer(9)
π drm_crtc_vbl...p_from_timer(9) β Kernel API Manual
okay so bestie, welcome to the Kernel API Manual β¨ this one is about drm_crtc_vbl...p_from_timer(9) and honestly it's a whole vibe β it's the timer-flavoured way to answer "when's the next vblank, queen?" ππ
πΈ NAME πΈ
drm_crtc_vblank_helper_get_vblank_timestamp_from_timer β the helper that implements struct &drm_crtc_funcs.get_vblank_timestamp π
β¨ SYNOPSIS β¨
bool drm_crtc_vblank_helper_get_vblank_timestamp_from_timer (struct crtc *crtc, int *max_error, ktime_t *vblank_time, bool in_vblank_irq);
okay wait, the actual signature up there is literally struct drm_crtc *crtc β the manpage just wrapped it weirdly across lines. no cap, that's the real type π
π«Ά ARGUMENTS π«Ά
crtcβ the CRTC in question π like, the display pipeline star of the showmax_errorβ maximum acceptable error, i.e. how sloppy we're allowed to be before it's a problem πvblank_timeβ where the next vblank timestamp gets returned π«in_vblank_irqβ "True is called fromdrm_crtc_handle_vblank" β that's the literal wording from the page, and yes, it's a little cursed grammatically, but it means: this is true when you're being called fromdrm_crtc_handle_vblankπ§
π¦ DESCRIPTION π¦
so the helper drm_crtc_helper_get_vblank_timestamp_from_timer implements get_vblank_timestamp of struct drm_crtc_funcs β but specifically for CRTCs that require a VBLANK timer π― it's giving "I don't have a hardware timestamp, so I'm using the timer instead" energy, and honestly? iconic.
it returns the timestamp according to the timer's expiry time β°β¨ periodt.
also see struct drm_crtc_funcs.get_vblank_timestamp β that's the field this whole thing is filling in, iykyk π
π₯ RETURN π₯
True on success, or false otherwise π (yes that's the whole thing, no dramatic twist, bless)
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_vblank_helper.c overview(9)drm_crtc_vblank_atomic_flush(9)drm_crtc_vblank_atomic_enable(9)drm_crtc_vblank_atomic_disable(9)drm_crtc_vblank_helper_enable_vblank_timer(9)drm_crtc_vblank_helper_disable_vblank_timer(9)
like, go read those too bestie, the whole squad is there π«ΆπΈ
and that's the page!! π brought to you from ./drivers/gpu/drm, dated October 2026, under the header drm_crtc_vbl...p_from_timer(9) β slay, go timestamp something πβ¨π¦
π¦ 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