drm_handle_vblank(9)
π drm_handle_vblank(9) π
okay bestie, welcome to the Kernel API Manual β this one's a little cutie from the DRM world and honestly it's giving "small function, big responsibilities" β¨
πΈ NAME πΈ
drm_handle_vblank β handle a vblank event π
β¨ SYNOPSIS β¨
bool drm_handle_vblank (struct drm_device *dev , unsigned int pipe );
like, that's literally it. returns a bool, takes two args, slays π
π¦ ARGUMENTS π¦
devβ the DRM device, aka the main character of this whole operation πpipeβ the index of the CRTC where this event occurred π (yes, the CRTC. yes, the index. keep up bestie)
π DESCRIPTION π
okay so here's the tea π β drivers should call this routine in their vblank interrupt handlers to update the vblank counter and send any signals that may be pending. that's the whole job, and it's kind of iconic ngl π₯
and important lore: this is the legacy version of drm_crtc_handle_vblank π«Ά so like, it still works, it still does its thing, but just know that it's the older sibling in this family tree π
lowkey a reminder: interrupt handler context, bestie. this is not the place for a nap π
π SEE ALSO π
soooo many friends, fr fr. go say hi:
- 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_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_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 group chat right there ππ
okay that's the page!! π§ this lil gem lives in ./drivers/gpu/drm, dated October 2026, and it's filed under drm_handle_vblank(9) β mwah, go update that vblank counter bestie π
πΈβ¨
π¦ 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