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

# flush\_work\_sync(9)

wait until a work has finished execution

## NAME

flush\_work\_sync - wait until a work has finished execution

## SYNOPSIS

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

## ARGUMENTS

*work*

the work to flush

## DESCRIPTION

Wait until *work* has finished execution. On return, it's guaranteed that all queueing instances of *work* which happened before this function is called are finished. In other words, if *work* hasn't been requeued since this function was called, *work* is guaranteed to be idle on return.

## RETURNS

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

## COPYRIGHT
