Name

wait_for_completion_timeout — waits for completion of a task (w/timeout)

Synopsis

unsigned long __sched fsfuncwait_for_completion_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. 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.