Man Page: wait_for_completion_interruptible_timeout
Operating Environment: centos
Section: 9
WAIT_FOR_COMPLETION_(9) Driver Basics WAIT_FOR_COMPLETION_(9)NAMEwait_for_completion_interruptible_timeout - waits for completion (w/(to,intr))SYNOPSISlong __sched wait_for_completion_interruptible_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. It is interruptible. The timeout is in jiffies.RETURN-ERESTARTSYS if interrupted, 0 if timed out, positive (at least 1, or number of jiffies left till timeout) if completed.COPYRIGHTKernel Hackers Manual 3.10 June 2014 WAIT_FOR_COMPLETION_(9)