wait_for_completion_io_timeout - waits for completion of a task (w/timeout)
2. SYNOPSIS ▲
unsigned long __sched wait_for_completion_io_timeout(struct completion * x , unsigned long timeout );
3. ARGUMENTS ▲
holds the state of this particular completion
timeout value in jiffies
4. 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 caller is accounted as waiting for IO.
The return value is 0 if timed out, and positive (at least 1, or number of jiffies left till timeout) if completed.
5. COPYRIGHT ▲