[PATCH v2 0/2] rust: atomic: add `fetch_sub` and update docs

Andreas Hindborg posted 2 patches 1 month, 3 weeks ago
There is a newer version of this series
rust/kernel/sync/atomic.rs          | 52 +++++++++++++++++++++++++++++++++----
rust/kernel/sync/atomic/internal.rs |  5 ++++
2 files changed, 52 insertions(+), 5 deletions(-)
[PATCH v2 0/2] rust: atomic: add `fetch_sub` and update docs
Posted by Andreas Hindborg 1 month, 3 weeks ago
Add `fetch_sub` and improve documentation of `fetch_add`.

Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
---
Changes in v2:
- Update example to be more clear.
- Add a patch that updates documentation for `fetch_add`.
- Link to v1: https://lore.kernel.org/r/20260128-atomic-sub-v1-1-f8c6abcbb067@kernel.org

---
Andreas Hindborg (2):
      rust: atomic: add fetch_sub
      rust: atomic: update documentation for `fetch_add`

 rust/kernel/sync/atomic.rs          | 52 +++++++++++++++++++++++++++++++++----
 rust/kernel/sync/atomic/internal.rs |  5 ++++
 2 files changed, 52 insertions(+), 5 deletions(-)
---
base-commit: 63804fed149a6750ffd28610c5c1c98cce6bd377
change-id: 20260128-atomic-sub-2ff15962df12

Best regards,
-- 
Andreas Hindborg <a.hindborg@kernel.org>