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

# wait\_for\_completion\_killable\_timeout(9)

waits for completion of a task (w/(to,killable))

## NAME

wait\_for\_completion\_killable\_timeout - waits for completion of a task (w/(to,killable))

## SYNOPSIS

**long \_\_sched wait\_for\_completion\_killable\_timeout(struct completion \*** *x***, unsigned long** *timeout***);**

## ARGUMENTS

*x*

holds the state of this particular completion

*timeout*

timeout value in jiffies

## DESCRIPTION

This waits for either a completion of a specific task to be signaled or for a specified timeout to expire. It can be interrupted by a kill signal. The timeout is in jiffies.

The return value is -ERESTARTSYS if interrupted, 0 if timed out, positive (at least 1, or number of jiffies left till timeout) if completed.

## COPYRIGHT
