Lines Matching defs:completion

8  * Atomic wait-for-completion handler data structures.
9 * See kernel/sched/completion.c for details.
15 * struct completion - structure used to maintain state for a "completion"
17 * This is the opaque structure used to maintain the state for a "completion".
19 * the "completion" event.
26 struct completion {
32 static inline void complete_acquire(struct completion *x) {}
33 static inline void complete_release(struct completion *x) {}
45 * DECLARE_COMPLETION - declare and initialize a completion structure
46 * @work: identifier for the completion structure
48 * This macro declares and initializes a completion structure. Generally used
53 struct completion work = COMPLETION_INITIALIZER(work)
61 * DECLARE_COMPLETION_ONSTACK - declare and initialize a completion structure
62 * @work: identifier for the completion structure
64 * This macro declares and initializes a completion structure on the kernel
69 struct completion work = COMPLETION_INITIALIZER_ONSTACK(work)
71 struct completion work = COMPLETION_INITIALIZER_ONSTACK_MAP(work, map)
78 * init_completion - Initialize a dynamically allocated completion
79 * @x: pointer to completion structure that is to be initialized
81 * This inline function will initialize a dynamically created completion
84 static inline void init_completion(struct completion *x)
91 * reinit_completion - reinitialize a completion structure
92 * @x: pointer to completion structure that is to be reinitialized
94 * This inline function should be used to reinitialize a completion structure so it can
97 static inline void reinit_completion(struct completion *x)
102 extern void wait_for_completion(struct completion *);
103 extern void wait_for_completion_io(struct completion *);
104 extern int wait_for_completion_interruptible(struct completion *x);
105 extern int wait_for_completion_killable(struct completion *x);
106 extern int wait_for_completion_state(struct completion *x, unsigned int state);
107 extern unsigned long wait_for_completion_timeout(struct completion *x,
109 extern unsigned long wait_for_completion_io_timeout(struct completion *x,
112 struct completion *x, unsigned long timeout);
114 struct completion *x, unsigned long timeout);
115 extern bool try_wait_for_completion(struct completion *x);
116 extern bool completion_done(struct completion *x);
118 extern void complete(struct completion *);
119 extern void complete_on_current_cpu(struct completion *x);
120 extern void complete_all(struct completion *);