]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: sync: atomic: Update documentation for `fetch_add()`
authorAndreas Hindborg <a.hindborg@kernel.org>
Tue, 3 Mar 2026 20:17:00 +0000 (12:17 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Sun, 8 Mar 2026 10:06:51 +0000 (11:06 +0100)
commit0b864375d93d1509821def9c4b15f845d314a5d2
treed3b40c8e34ca91351c574fb1b7bc21225ea9ea04
parentc49cf341090b53d2afa4dc7c8007ddeefbb3b37f
rust: sync: atomic: Update documentation for `fetch_add()`

The documentation for `fetch_add()` does not indicate that the original
value is returned by `fetch_add()`. Update the documentation so this is
clear.

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-2-e63cbed1d2aa@kernel.org
Link: https://patch.msgid.link/20260303201701.12204-13-boqun@kernel.org
rust/kernel/sync/atomic.rs