---
name: "destroy_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/destroy_workqueue"
---

# destroy\_workqueue(9)

safely terminate a workqueue

## NAME

destroy\_workqueue - safely terminate a workqueue

## SYNOPSIS

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

## ARGUMENTS

*wq*

target workqueue

## DESCRIPTION

Safely destroy a workqueue. All work currently pending will be done first.

## COPYRIGHT
