---
name: "flush_delayed_work_sync"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/flush_delayed_work_sync"
---

# flush\_delayed\_work\_sync(9)

wait for a dwork to finish

## NAME

flush\_delayed\_work\_sync - wait for a dwork to finish

## SYNOPSIS

**bool flush\_delayed\_work\_sync(struct delayed\_work \*** *dwork***);**

## ARGUMENTS

*dwork*

the delayed work to flush

## DESCRIPTION

Delayed timer is cancelled and the pending work is queued for execution immediately. Other than timer handling, its behavior is identical to **flush\_work\_sync**.

## RETURNS

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

## COPYRIGHT
