flush_delayed_work(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the Kernel API Manual page for flush_delayed_work(9) β€” yes, the (9) is part of the whole name, we love a consistent brand. This is the little function that handles a delayed work item’s last queueing and tells you whether it actually had to wait. Cute, useful, lowkey iconic. πŸŽ€

🌸 NAME 🌸

flush_delayed_work β€” wait for a dwork to finish executing the last queueing. πŸ’…

✨ SYNOPSIS ✨

bool flush_delayed_work (struct delayed_work *dwork );

πŸŽ€ ARGUMENTS πŸŽ€

  • dwork β€” the delayed work to flush. That’s the one, bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

So here’s the vibe: Delayed timer is cancelled, and the pending work is queued for immediate execution. Slay. Like flush_work, this function only considers the last queueing instance of dwork β€” it’s not doing a whole history deep dive, just the most recent queueing. Periodt. ✨

πŸ’– RETURN πŸ’–

It gives you true if flush_work waited for the work to finish execution, and false if it was already idle. No cap. 🫢

πŸ”₯ SEE ALSO πŸ”₯

Home base is the Kernel file ./kernel/workqueue.c, and then there’s this whole ensemble cast β€” every single one of these legends:

peace, love, and workqueues β€” this page’s source/version is ./kernel, dated October 2026, signing off for flush_delayed_work(9) πŸ’–

πŸ“¦ where this page comes from