linux/rust/kernel/sync/atomic
Andreas Hindborg b91d5d4bcf rust: atomic: Update a safety comment in impl of `fetch_add()`
The safety comment used in the implementation of `fetch_add()` could be
read as just saying something it is true without justifying it. Update
the safety comment to include justification.

Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: Boqun Feng <boqun@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20260220-atomic-sub-v3-3-e63cbed1d2aa@kernel.org
Link: https://patch.msgid.link/20260303201701.12204-14-boqun@kernel.org
2026-03-08 11:06:51 +01:00
..
internal.rs rust: atomic: Update a safety comment in impl of `fetch_add()` 2026-03-08 11:06:51 +01:00
ordering.rs
predefine.rs rust: sync: atomic: Add atomic operation helpers over raw pointers 2026-03-08 11:06:50 +01:00