---
name: "flush_delayed_work"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/flush_delayed_work"
---

# flush\_delayed\_work(9)

wait for a dwork to finish executing the last queueing

## 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

## DESCRIPTION

Delayed timer is cancelled and the pending work is queued for immediate execution. Like **flush\_work**, this function only considers the last queueing instance of *dwork*.

## RETURN

**true** if **flush\_work** waited for the work to finish execution, **false** if it was already idle.

## COPYRIGHT
