drm_crtc_vbl...cancel_timer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_crtc_vblank_cancel_timer(9) β€” the kernel API manual, but make it make sense

okay so bestie, welcome to the glow-up edition of the kernel API manual page for drm_crtc_vblank_cancel_timer(9). yes that's a mouthful, no we're not renaming it, it's iconic as is. πŸŽ€


✨ NAME ✨

drm_crtc_vblank_cancel_timer β€” literally just cancels the given CRTC's vblank timer. that's the whole vibe. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void drm_crtc_vblank_cancel_timer (struct drm_crtc *crtc );

notice it returns void, so like… no return value to obsess over. she just does the thing and dips. 🫢


🌸 ARGUMENTS 🌸

  • crtc β€” the CRTC. that's it. that's the argument. the main character of this whole function, fr fr. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

so here's the tea: drivers should call this function from their CRTC's disable_vblank function to stop a vblank timer. πŸ›‘β±οΈ

like, the way that works is β€” you're already in disable_vblank, you don't want that timer running anymore, so you hit this function and she cancels it. no cap, that's the entire job. lowkey elegant honestly.


⭐ SEE ALSO ⭐

the whole friend group, in the order the manpage introduced them, because we do NOT do alphabetical erasure here:

(and yes, drm_crtc_vblank_start_timer(9) is literally her opposite-number counterpart β€” the "start" to her "cancel" β€” so if you're reading this one you probably want that one too. iykyk 🧚)


heads up bestie: the manpage is super chill about it, but it does say drivers should call this from disable_vblank β€” so like, that's the intended spot, not wherever you feel like it. πŸ™ˆ

and that's the page!! 🌈✨ this little gem lives in the kernel tree at ./drivers/gpu/drm, and the manual page is dated October 2026 β€” so if you're reading this from the future, hiii, you're doing amazing, hope your vblank timers are all cancelled πŸŽ€πŸ’œπŸ¦‹

πŸ“¦ where this page comes from