aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers
diff options
context:
space:
mode:
authorShankari Anand <[email protected]>2025-07-15 11:04:23 +0000
committerMiguel Ojeda <[email protected]>2025-07-22 11:52:14 +0000
commit07dad44aa9a93b16af19e8609a10b241c352b440 (patch)
tree70efc7595a7064c254f215b95207e0598a12c43b /rust/helpers
parentrust: sync: fix safety comment for `static_lock_class` (diff)
downloadkernel-07dad44aa9a93b16af19e8609a10b241c352b440.tar.gz
kernel-07dad44aa9a93b16af19e8609a10b241c352b440.zip
rust: kernel: move ARef and AlwaysRefCounted to sync::aref
Move the definitions of `ARef` and `AlwaysRefCounted` from `types.rs` to a new file `sync/aref.rs`. Define the corresponding `aref` module under `rust/kernel/sync.rs`. These types are better grouped in `sync`. To avoid breaking existing imports, they are re-exported from `types.rs`. Drop unused imports `mem::ManuallyDrop`, `ptr::NonNull` from `types.rs`, they are now only used in `sync/aref.rs`, where they are already imported. Suggested-by: Benno Lossin <[email protected]> Link: https://github.com/Rust-for-Linux/linux/issues/1173 Signed-off-by: Shankari Anand <[email protected]> Reviewed-by: Benno Lossin <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Added missing `///`. Changed module title. Reworded slightly. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions