Lines Matching defs:completion
5 //! Reference: <https://docs.kernel.org/scheduler/completion.html>
7 //! C header: [`include/linux/completion.h`](srctree/include/linux/completion.h)
69 inner: Opaque<bindings::completion>,
82 inner <- Opaque::ffi_init(|slot: *mut bindings::completion| {
83 // SAFETY: `slot` is a valid pointer to an uninitialized `struct completion`.
89 fn as_raw(&self) -> *mut bindings::completion {
93 /// Signal all tasks waiting on this completion.
95 /// This method wakes up all tasks waiting on this completion; after this operation the
96 /// completion is permanently done, i.e. signals all current and future waiters.
99 // SAFETY: `self.as_raw()` is a pointer to a valid `struct completion`.
103 /// Wait for completion of a task.
105 /// This method waits for the completion of a task; it is not interruptible and there is no
111 // SAFETY: `self.as_raw()` is a pointer to a valid `struct completion`.