wait_for_completion_timeout(9)

wait_for_completion_timeout9

Waits for completion of a task (w/timeout)

Usage

unsigned long __sched wait_for_completion_timeout(struct completion * x, unsigned long timeout);

Arguments

x

holds the state of this particular completion

timeout

timeout value in jiffies

Overview

This waits for either a completion of a specific task to be signaled or for a specified timeout to expire. The timeout is in jiffies. It is not interruptible.

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

Releases

2 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7

From linux-manual-3.2 3.2.78-1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.