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

NAME

6       wait_for_completion_timeout - waits for completion of a task
7       (w/timeout)
8

SYNOPSIS

10       unsigned long __sched
11                                                         wait_for_completion_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. The timeout is in jiffies. It is not
24       interruptible.
25

RETURN

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