wait_for_completion_killable_timeout(9)

wait_for_completion_killable_timeout9

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

Usage

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

Overview

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.

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