Lines Matching defs:run
62 //! fn run(this: Arc<MyStruct>) {
110 //! fn run(this: Arc<MyStruct>) {
118 //! fn run(this: Arc<MyStruct>) {
166 //! fn run(this: Arc<MyStruct>) {
239 /// It allows work items to be queued to run on thread pools managed by the kernel. Several are
362 fn run(mut this: Pin<KBox<Self>>) {
430 /// instead. The [`run`] method on this trait will usually just perform the appropriate
431 /// `container_of` translation and then call into the [`run`][WorkItem::run] method from the
438 /// Implementers must ensure that [`__enqueue`] uses a `work_struct` initialized with the [`run`]
442 /// [`run`]: WorkItemPointer::run
452 unsafe extern "C" fn run(ptr: *mut bindings::work_struct);
464 fn run(this: Self::Pointer);
469 /// This struct contains a function pointer to the [`run`] function from the [`WorkItemPointer`]
476 /// [`run`]: WorkItemPointer::run
503 // SAFETY: The `WorkItemPointer` implementation promises that `run` can be used as
508 Some(T::Pointer::run),
636 /// This struct contains a function pointer to the [`run`] function from the [`WorkItemPointer`]
644 /// [`run`]: WorkItemPointer::run
676 // SAFETY: The `WorkItemPointer` implementation promises that `run` can be used as
681 Some(T::Pointer::run),
690 // the core workqueue code, and configured to run in irqsafe context.
807 // `run` method of this trait as the function pointer because:
810 // - `Work::new` makes sure that `T::Pointer::run` is passed to `init_work_with_key`.
820 unsafe extern "C" fn run(ptr: *mut bindings::work_struct) {
828 T::run(arc)
836 // points to, and only reclaim it if the closure returns false, or in `WorkItemPointer::run`, which
883 unsafe extern "C" fn run(ptr: *mut bindings::work_struct) {
893 T::run(pinned)
942 /// Callers shouldn't queue work items which can run for too long.
1011 /// need to run from a softirq context.