diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-16 17:00:02 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-16 17:17:23 -0500 |
commit | b5fd066153c40a70a29caa1ea7987723ab687763 (patch) | |
tree | 6d43a8b0a90d549a54c65565ac96c92b3e84b594 /c_src/include/linux/completion.h | |
parent | 06ff8b55b70fda44d91b31b5511fafd1680a8934 (diff) |
Move c_src dirs back to toplevel
We just wanted c sourcefiles out of the top level, not c source
directories.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'c_src/include/linux/completion.h')
-rw-r--r-- | c_src/include/linux/completion.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/c_src/include/linux/completion.h b/c_src/include/linux/completion.h deleted file mode 100644 index d11a8dd0..00000000 --- a/c_src/include/linux/completion.h +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef __LINUX_COMPLETION_H -#define __LINUX_COMPLETION_H - -/* - * (C) Copyright 2001 Linus Torvalds - * - * Atomic wait-for-completion handler data structures. - * See kernel/sched/completion.c for details. - */ - -#include <linux/wait.h> - -struct completion { - unsigned int done; - wait_queue_head_t wait; -}; - -#define DECLARE_COMPLETION(work) \ - struct completion work = { \ - .done = 0, \ - .wait = __WAIT_QUEUE_HEAD_INITIALIZER((work).wait) \ - } - -#define DECLARE_COMPLETION_ONSTACK(work) DECLARE_COMPLETION(work) - -static inline void init_completion(struct completion *x) -{ - x->done = 0; - init_waitqueue_head(&x->wait); -} - -static inline void reinit_completion(struct completion *x) -{ - x->done = 0; -} - -void complete(struct completion *); -void wait_for_completion(struct completion *); - -#define wait_for_completion_interruptible(x) (wait_for_completion(x), 0) - -#endif |