twx-linux/rust/kernel/debugfs
Boqun Feng 37d0472c8a rust: debugfs: Implement Reader for Mutex<T> only when T is Unpin
Since we are going to make `Mutex<T>` structurally pin the data (i.e.
`T`), therefore `.lock()` function only returns a `Guard` that can
dereference a mutable reference to `T` if only `T` is `Unpin`, therefore
restrict the impl `Reader` block of `Mutex<T>` to that.

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20251022034237.70431-1-boqun.feng@gmail.com
2025-10-22 15:21:51 +02:00
..
callback_adapters.rs rust: debugfs: Add support for callback-based files 2025-09-10 18:58:21 +02:00
entry.rs rust: debugfs: Add support for scoped directories 2025-09-10 18:58:29 +02:00
file_ops.rs rust: debugfs: Add support for callback-based files 2025-09-10 18:58:21 +02:00
traits.rs rust: debugfs: Implement Reader for Mutex<T> only when T is Unpin 2025-10-22 15:21:51 +02:00