rust: sync: extend module documentation of aref
authorBenno Lossin <lossin@kernel.org>
Tue, 22 Jul 2025 12:14:38 +0000 (14:14 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 14 Sep 2025 22:02:22 +0000 (00:02 +0200)
commita15d12c24fa790533c8c133e84a8bf23777a7a43
tree9de0e2cdd89820938a3b32bb1cf159e56e97eb2a
parent67ff56cecc8701665ec137e5f151a7a7b2c37329
rust: sync: extend module documentation of aref

Commit 07dad44aa9a9 ("rust: kernel: move ARef and AlwaysRefCounted to
sync::aref") moved `ARef` and `AlwaysRefCounted` into their own module.
In that process only a short, single line description of the module was
added. Extend the description by explaining what is meant by "internal
reference counting", the two items in the trait & the difference to
`Arc`.

Signed-off-by: Benno Lossin <lossin@kernel.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/sync/aref.rs