drm_vblank_work_cancel_sync(9)
π drm_vblank_work_cancel_sync(9) β like, the Kernel API Manual page, bestie
okay so this is the page for drm_vblank_work_cancel_sync from the Kernel API Manual, and honestly? she's a little baddie with one job and she does it. let's get into it β¨
π NAME π
drm_vblank_work_cancel_sync β cancel a vblank work and wait for it to finish executing
like. that's it. that's the whole vibe. you cancel the thing, you wait for the thing. no cap π
β¨ SYNOPSIS β¨
bool drm_vblank_work_cancel_sync (struct drm_vblank_work *work );
she returns a bool, she takes exactly one pointer, and she is not complicated. main character energy, zero β¨dramaβ¨ π¦
π«Ά ARGUMENTS π«Ά
workβ the vblank work to cancel. that's the one, bestie. the specific vblank work you want to β¨cancelβ¨. point at her and she's done for π
πΈ DESCRIPTION πΈ
okay so picture this: a vblank work is already scheduled. it's on the calendar. it has a little outfit picked out. and you're like... no. not today.
that's this function. it cancels an already scheduled vblank work and then waits for its execution to finish. so it's not just "cancel and dip" β she cancels and she stays until it's actually over. iconic, honestly π
and the important part β the part that matters, lowkey the whole point:
on return, work is guaranteed to no longer be scheduled or running, even if it's self-arming.
read that again. even if it's self-arming. like even the work that keeps re-scheduling itself? handled. she does not miss. periodt π₯
π RETURN π
trueβ the work was cancelled before it started to execute πfalseβ otherwise π
so the return value is basically telling you "did I catch her before she got on stage, or did I have to wait backstage?" either way she's handled, the answer's just for your info bestie π
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/drm_vblank_work.c vblank works(9)drm_vblank_work_schedule(9)drm_vblank_work_flush(9)drm_vblank_work_flush_all(9)drm_vblank_work_init(9)
the whole friend group fr fr, go say hi π
and that's the page, bestie π she lives in ./drivers/gpu/drm, she's dated October 2026, and her full government name is drm_vblank_work_cancel_sync(9) β go off, cancel that work, wait for it to finish, slay πΈπ
β¨
π¦ 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