Lines Matching refs:completion

1 completions - wait for completion handling
24 struct completion that tells the waiting threads of execution if they
28 kernel/sched/completion.c - for details on completion design and
36 struct completion, the waiting part through a call to one of the variants of
41 To use completions one needs to include <linux/completion.h> and
42 create a variable of type struct completion. The structure used for
45 struct completion {
76 wait queue. Calling init_completion() twice on the same completion object is
90 happy. Note also that one needs to make *sure* the completion passed to
96 additional synchronization to prevent the on-stack completion object in
106 calls wait_for_completion() on the initialized completion structure.
109 struct completion setup_done;
121 completion is signaled by complete().
130 void wait_for_completion(struct completion *done):
136 try_wait_for_completion() below for handling completion in atomic/interrupt
156 code path for successful completion and for the interrupted case - which is
159 int wait_for_completion_interruptible(struct completion *done)
164 unsigned long wait_for_completion_timeout(struct completion *done,
175 struct completion *done, unsigned long timeout)
179 otherwise it returns 0 if the completion timed out or the remaining time in
180 jiffies if completion occurred.
184 else 0 if completion was achieved. There is a _timeout variant as well:
186 long wait_for_completion_killable(struct completion *done)
187 long wait_for_completion_killable_timeout(struct completion *done,
194 void wait_for_completion_io(struct completion *done)
195 unsigned long wait_for_completion_io_timeout(struct completion *done
206 void complete(struct completion *done)
210 void complete_all(struct completion *done)
214 (decrementing) the done element of struct completion. Waiting threads
223 particular struct completion at any time - serialized through the wait
227 Signaling completion from hard-irq context is fine as it will appropriately
236 else it consumes one posted completion and returns true.
238 bool try_wait_for_completion(struct completion *done)
240 Finally, to check the state of a completion without changing it in any way,
245 bool completion_done(struct completion *done)