---
name: "flush_workqueue"
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_workqueue"
---

# flush\_workqueue(9)

ensure that any scheduled work has run to completion.

## NAME

flush\_workqueue - ensure that any scheduled work has run to completion.

## SYNOPSIS

**void flush\_workqueue(struct workqueue\_struct \*** *wq***);**

## ARGUMENTS

*wq*

workqueue to flush

## DESCRIPTION

This function sleeps until all work items which were queued on entry have finished execution, but it is not livelocked by new incoming ones.

## COPYRIGHT
