drm_vblank_work_schedule(9)
π drm_vblank_work_schedule(9)
okay so bestie, welcome to the drm_vblank_work_schedule page β it lives in the Kernel API Manual, and honestly it's giving "tiny function, very important job" energy β¨
π NAME π
drm_vblank_work_schedule β schedule a vblank work. that's it. that's the whole job. she schedules, she slays π
β¨ SYNOPSIS β¨
int drm_vblank_work_schedule (struct drm_vblank_work *work , u64 count ,
bool nextonmiss );
literally just three args and an int coming back at you π«Ά
πΈ ARGUMENTS πΈ
workβ the vblank work you wanna schedule. this is your main character πcountβ the target vblank count. like, the finish line you're aiming for βnextonmissβ defer until the next vblank if the target vblank was missed. the "oops, missed it, try again" switch π
π¦ DESCRIPTION π¦
so what does it actually do? you schedule work for execution once the crtc vblank count reaches count. simple as that, no cap β¨
now here's where it gets spicy πΆοΈ there are two "you're already late" situations:
- if the crtc vblank count has already reached
countandnextonmissisfalse, the work starts to execute immediately. no waiting, no queue, she's up π₯ - if the crtc vblank count has already reached
countandnextonmissistrue, the work is deferred until the next vblank β as ifcounthad been specified as the crtc vblank count + 1. iykyk π
and the rearm tech, miss thing is self-rearming ready: if work is already scheduled, this function will reschedule said work using the new count. iconic behaviour honestly π
π RETURN π
1β ifworkwas successfully (re)scheduled. we love a win π0β if it was either already scheduled or cancelled. respectfully, nothing happened π- a negative error code β on failure. sad girl hours π
π SEE ALSO π
go read these too, bestie, they're the whole friend group:
- Kernel file
./drivers/gpu/drm/drm_vblank_work.c vblank works(9)drm_vblank_work_cancel_sync(9)drm_vblank_work_flush(9)drm_vblank_work_flush_all(9)drm_vblank_work_init(9)
πΈ reminder: nextonmiss genuinely changes when your work fires, so don't just pick one at random and hope for the best. vibe check your timing first π
and that's the page!! mwah π this one came from ./drivers/gpu/drm, dated October 2026, in the Kernel API Manual β go forth and schedule responsibly, 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