Query: wait_for_completion_timeout
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
WAIT_FOR_COMPLETION_(9) Driver Basics WAIT_FOR_COMPLETION_(9)NAMEwait_for_completion_timeout - waits for completion of a task (w/timeout)SYNOPSISunsigned long __sched wait_for_completion_timeout(struct completion * x, unsigned long timeout);ARGUMENTSx holds the state of this particular completion timeout timeout value in jiffiesDESCRIPTIONThis 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.RETURN0 if timed out, and positive (at least 1, or number of jiffies left till timeout) if completed.COPYRIGHTKernel Hackers Manual 3.10 June 2014 WAIT_FOR_COMPLETION_(9)