[PATCH V3 0/2] Rust: Add cpumask abstractions

Viresh Kumar posted 2 patches 9 months ago
There is a newer version of this series
MAINTAINERS            |   6 +
rust/kernel/cpumask.rs | 301 +++++++++++++++++++++++++++++++++++++++++
rust/kernel/lib.rs     |   1 +
3 files changed, 308 insertions(+)
create mode 100644 rust/kernel/cpumask.rs
[PATCH V3 0/2] Rust: Add cpumask abstractions
Posted by Viresh Kumar 9 months ago
Hello,

This series adds initial cpumask Rust abstractions and adds a new maintenance
entry for the same.

This was earlier sent as part of a larger series [1] and it was suggested to
send these separately.

Depends on: [2].

V2->V3:
- Improved comments, SAFETY, Invariants, and INVARIANT blocks.
- Add examples.
- Inline few methods.

V1->V2:
- Add Yury's Reviewed-by tag in 2/2.

- Implemented two different structures, Cpumask (corresponds to struct
  cpumask) and CpumaskBox (corresponds to cpumask_var_t). Thanks Alice for
  helping out.

--
Viresh

[1] https://lore.kernel.org/all/cover.1738832118.git.viresh.kumar@linaro.org/
[2] https://lore.kernel.org/all/20250224233938.3158-1-yury.norov@gmail.com/

Viresh Kumar (2):
  rust: Add initial cpumask abstractions
  MAINTAINERS: Add entry for Rust bitmap API

 MAINTAINERS            |   6 +
 rust/kernel/cpumask.rs | 301 +++++++++++++++++++++++++++++++++++++++++
 rust/kernel/lib.rs     |   1 +
 3 files changed, 308 insertions(+)
 create mode 100644 rust/kernel/cpumask.rs

-- 
2.31.1.272.g89b43f80a514