1WAIT_FOR_COMPLETION_(9)          Driver Basics         WAIT_FOR_COMPLETION_(9)
2
3
4

NAME

6       wait_for_completion_interruptible_timeout - waits for completion
7       (w/(to,intr))
8

SYNOPSIS

10       long __sched
11                                                              wait_for_completion_interruptible_timeout(struct completion * x,
12                                                              unsigned long timeout);
13

ARGUMENTS

15       x
16           holds the state of this particular completion
17
18       timeout
19           timeout value in jiffies
20

DESCRIPTION

22       This waits for either a completion of a specific task to be signaled or
23       for a specified timeout to expire. It is interruptible. The timeout is
24       in jiffies.
25

RETURN

27       -ERESTARTSYS if interrupted, 0 if timed out, positive (at least 1, or
28       number of jiffies left till timeout) if completed.
29
31Kernel Hackers Manual 3.10         June 2019           WAIT_FOR_COMPLETION_(9)
Impressum