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

NAME

6       wait_for_completion_killable_timeout - waits for completion of a task
7       (w/(to,killable))
8

SYNOPSIS

10       long __sched
11                                                         wait_for_completion_killable_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 can be interrupted by a kill
24       signal. The timeout is 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