drm_vblank_work_cancel_sync(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ¦‹

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