drm_crtc_vblank_get(9)
π drm_crtc_vblank_get β get a reference count on vblank events π
Okay bestie, so this little function lives in the Kernel API Manual and honestly? It's giving "tiny function, big responsibilities." It's drm_crtc_vblank_get, and it's about to be your new fave.
β¨ SYNOPSIS β¨
int drm_crtc_vblank_get (struct drm_crtc *crtc );
π ARGUMENTS π
crtcβ which CRTC to own. Yes, own. Claim your CRTC, bestie, it's yours now π
πΈ DESCRIPTION πΈ
So what it actually does: it acquires a reference count on vblank events π¦ β the whole point being to avoid having them disabled while in use. Like, you're holding the door open so vblank doesn't dip out on you mid-job. No cap, that's the entire vibe. Keep that ref count alive and the events stay alive with you π«Ά
β RETURN β
Zero on success, or a negative error code on failure π β so like, check it, fr fr. Zero? Slay, you're good. Negative? That's the universe telling you something went sideways.
π SEE ALSO π
- 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_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_cancel_timer(9)drm_crtc_vblank_get_vblank_timeout(9)
Like, that's a whole friend group right there β a whole era of vblank functions π§ Go read them, iykyk π
β¨ and that's the whole page, bestie β¨ This icon was brought to you by ./drivers/gpu/drm, dated October 2026, straight from the Kernel API Manual β drm_crtc_vblank_get(9), periodt π
π
π¦ 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