drm_crtc_vbl...cancel_timer(9)
π 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:
- Kernel file
./drivers/gpu/drm/drm_vblank.c 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_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_get_vblank_timeout(9)
(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
- 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