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

# queue\_work\_on(9)

queue work on specific cpu

## NAME

queue\_work\_on - queue work on specific cpu

## SYNOPSIS

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

## ARGUMENTS

*cpu*

CPU number to execute work on

*wq*

workqueue to use

*work*

work to queue

## DESCRIPTION

We queue the work to a specific CPU, the caller must ensure it can't go away.

## RETURN

**false** if *work* was already on a queue, **true** otherwise.

## COPYRIGHT
