wait_for_completion_interruptible_timeout — waits for completion (w/(to,intr))
long __sched fsfuncwait_for_completion_interruptible_timeout ( | struct completion * x, |
unsigned long timeout) ; |
This waits for either a completion of a specific task to be signaled or for a specified timeout to expire. It is interruptible. 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.