rust: workqueue: implement `WorkItemPointer` for pointer types
authorAlice Ryhl <aliceryhl@google.com>
Mon, 28 Aug 2023 10:48:05 +0000 (10:48 +0000)
committerTejun Heo <tj@kernel.org>
Mon, 25 Sep 2023 19:46:42 +0000 (09:46 -1000)
commit47f0dbe8fdc28e6e79505b640619e0cbccb91cef
treee5c09abac48525d12becd5b1b8b9350a24ab588f
parent7324b88975c525a013ae0db747df97924ce80675
rust: workqueue: implement `WorkItemPointer` for pointer types

This implements the `WorkItemPointer` trait for the pointer types that
you are likely to use the workqueue with. The `Arc` type is for
reference counted objects, and the `Pin<Box<T>>` type is for objects
where the caller has exclusive ownership of the object.

Co-developed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Reviewed-by: "Andreas Hindborg (Samsung)" <nmi@metaspace.dk>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
rust/kernel/workqueue.rs