kthread_canc...ed_work_sync(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hey bestie, you're on the kthread_canc...ed_work_sync(9) page in the Kernel API Manual πŸ’–

🌸 NAME 🌸

kthread_cancel_delayed_work_sync β€” cancel a kthread delayed work and wait for it to finish. periodt.

✨ SYNOPSIS ✨

bool kthread_cancel_delayed_work_sync (struct kthread_delayed_work *dwork );

that's the whole signature, no cap.

πŸŽ€ ARGUMENTS πŸŽ€

  • dwork β€” the kthread delayed work to cancel. that's the one, bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture kthread_cancel_work_sync, right? this function is literally that exact same energy, but for delayed works. it's giving "cancel a kthread delayed work and wait for it to finish," and the waiting part is highkey part of the deal. no skipping ahead πŸ’…

⭐ RETURN ⭐

true if dwork was pending, false otherwise. that's it. no mystery, no extra lore.

🌈 SEE ALSO 🌈

the kernel file ./kernel/kthread.c is where this whole situation lives, and these are the related pages you might wanna peek at:


okay bye bestie 🫢 β€” this page comes from ./kernel, dated October 2026, and it's literally kthread_canc...ed_work_sync(9). mwah πŸ’‹

πŸ“¦ where this page comes from