drm_crtc_vblank_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ‘‘


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