drm_crtc_vbl...p_from_timer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 show
  • max_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 from drm_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 from drm_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 🌈

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