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

# mod\_delayed\_work\_on(9)

modify delay of or queue a delayed work on specific CPU

## NAME

mod\_delayed\_work\_on - modify delay of or queue a delayed work on specific CPU

## SYNOPSIS

**bool mod\_delayed\_work\_on(int** *cpu***, struct workqueue\_struct \*** *wq***, struct delayed\_work \*** *dwork***, unsigned long** *delay***);**

## ARGUMENTS

*cpu*

CPU number to execute work on

*wq*

workqueue to use

*dwork*

work to queue

*delay*

number of jiffies to wait before queueing

## DESCRIPTION

If *dwork* is idle, equivalent to **queue\_delayed\_work\_on**; otherwise, modify *dwork*'s timer so that it expires after *delay*. If *delay* is zero, *work* is guaranteed to be scheduled immediately regardless of its current state.

## RETURN

**false** if *dwork* was idle and queued, **true** if *dwork* was pending and its timer was modified.

This function is safe to call from any context including IRQ handler. See **try\_to\_grab\_pending** for details.

## COPYRIGHT
