drm_crtc_vblank_reset(9)
β¨ drm_crtc_vblank_reset π
okay so bestie, welcome to the drm_crtc_vblank_reset page from the Kernel API Manual (that's the manpage name right there, iykyk) π β this one's short and sweet and honestly kind of a bop.
πΈ SYNOPSIS πΈ
void drm_crtc_vblank_reset (struct drm_crtc *crtc );
π¦ ARGUMENTS π¦
crtcβ the CRTC in question, aka the one we're doing this whole glow-up on β¨
π DESCRIPTION π
so here's the vibe: drivers can use this function to reset the vblank state to off at load time. that's the whole assignment, and it ate π₯
key thing though β drivers should use this together with drm_crtc_vblank_off and drm_crtc_vblank_on. they're a little trio, they go together π«Ά
now, the difference compared to drm_crtc_vblank_off? lowkey important: this function doesn't save the vblank counter, and because of that it doesn't need to call any driver hooks. no hooks, no drama, no extra calls. periodt π
and where does that actually come in handy? it's useful for recovering driver state, e.g. on driver load, or on resume π. like when your driver wakes up from its nap and needs to remember who it is π
ngl this is one of those functions that's tiny but you will be glad it exists when resume gets weird π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_vblank.cvblank 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_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_cancel_timer(9)drm_crtc_vblank_get_vblank_timeout(9)
and that's the whole page, bestie, you ate that reading assignment πβ¨ this one ships out of ./drivers/gpu/drm, dated October 2026 β mwah, go reset some vblank state, mwah ππ§
π¦ 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