drm_crtc_vblank_on_config(9)
π drm_crtc_vblank_on_config(9) π
okay bestie, so this is a page straight out of the Kernel API Manual, and it's about drm_crtc_vblank_on_config(9) β which is lowkey the fancy version of turning vblank events on for a CRTC. yes, the name is a mouthful. no, we're not skipping it. let's get into it β¨
πΈ SYNOPSIS πΈ
void drm_crtc_vblank_on_config (struct drm_crtc *crtc , const struct
drm_vblank_crtc_config *config );
literally the whole signature, character for character, because i would never do you dirty like that π«Ά
π ARGUMENTS π
crtcβ the CRTC in question. like, the one we're talking about. that one πconfigβ the vblank configuration value. this is your custom vibe check for how vblank should behave on this CRTC.
π¦ DESCRIPTION π¦
so here's the tea: check out drm_crtc_vblank_on. that's the base function. this one does all that and lets you hand over a custom vblank configuration for a given CRTC. highkey a glow-up π
important note, bestie β config gets copied. so that pointer does not need to stay valid past this function call. you can let it go, it's fine, it's already been screenshotted π
for the deets on what all those parameters actually are, go look at struct drm_vblank_crtc_config. that's where the full rundown lives π
β 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_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(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, the entire vblank friend group. no cap, that's the full list β every single one of them π
okay and that's the page!! before you go, the source lives at ./drivers/gpu/drm and this version is dated October 2026 π tysm for reading, go forth and enable those vblank events with your custom config, 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