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

# queue\_work(9)

queue work on a workqueue

## NAME

queue\_work - queue work on a workqueue

## SYNOPSIS

**int queue\_work(struct workqueue\_struct \*** *wq***, struct work\_struct \*** *work***);**

## ARGUMENTS

*wq*

workqueue to use

*work*

work to queue

## DESCRIPTION

Returns 0 if *work* was already on a queue, non-zero otherwise.

We queue the work to the CPU on which it was submitted, but if the CPU dies it can be processed by another CPU.

## COPYRIGHT
