---
name: "flush_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_work"
---

# flush\_work(9)

wait for a work to finish executing the last queueing instance

## NAME

flush\_work - wait for a work to finish executing the last queueing instance

## SYNOPSIS

**bool flush\_work(struct work\_struct \*** *work***);**

## ARGUMENTS

*work*

the work to flush

## DESCRIPTION

Wait until *work* has finished execution. *work* is guaranteed to be idle on return if it hasn't been requeued since flush started.

## RETURN

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

## COPYRIGHT
