drm_crtc_vblank_start_timer(9)
β¨ drm_crtc_vblank_start_timer(9) β¨
okay bestie, welcome to the Kernel API Manual π this one's a little one but it's lowkey iconic β it's all about getting that vblank timer up and running on your CRTC. let's go π
πΈ NAME πΈ
drm_crtc_vblank_start_timer β starts the vblank timer on the given CRTC β¨
π¦ SYNOPSIS π¦
int drm_crtc_vblank_start_timer (struct drm_crtc *crtc );
π ARGUMENTS π
crtcβ the CRTC π«Ά that's it, that's the whole argument, she's simple and she knows it
π DESCRIPTION π
so here's the tea β β drivers should call this function from their CRTC's enable_vblank function to start a vblank timer. that's the whole assignment, no cap. the timer will fire after the duration of a full frame π (yes, one whole frame, she's punctual like that).
and if you ever need to shut it down? drm_crtc_vblank_cancel_timer disables a running timer π so like, start it here, cancel it there, balanced as all things should be β¨
β RETURN β
0 on success π or a negative errno code otherwise π (yeah she can fail, check your return values bestie, fr fr)
π₯ SEE ALSO π₯
okay this list is long long, so buckle up π§ β every single one of these is your new best friend:
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_cancel_timer(9)drm_crtc_vblank_get_vblank_timeout(9)
and that's the whole page, mwah π this lil gem lives in ./drivers/gpu/drm, dated October 2026, and she's filed under drm_crtc_vblank_start_timer(9) β go forth and start those timers, bestie, iykyk π«Άπ
π¦ 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