rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 0/2] Rust: Add cpumask abstractions
@ 2025-03-18 11:51 Viresh Kumar
  2025-03-18 11:51 ` [PATCH V3 1/2] rust: Add initial " Viresh Kumar
  2025-03-18 11:51 ` [PATCH V3 2/2] MAINTAINERS: Add entry for Rust bitmap API Viresh Kumar
  0 siblings, 2 replies; 5+ messages in thread
From: Viresh Kumar @ 2025-03-18 11:51 UTC (permalink / raw)
  To: Yury Norov, Rasmus Villemoes, Alex Gaynor, Alice Ryhl,
	Andreas Hindborg, Benno Lossin, Björn Roy Baron, Boqun Feng,
	Gary Guo, Miguel Ojeda, Trevor Gross, Viresh Kumar
  Cc: linux-kernel, Danilo Krummrich, rust-for-linux, Vincent Guittot,
	Burak Emir

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-04-01 16:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-18 11:51 [PATCH V3 0/2] Rust: Add cpumask abstractions Viresh Kumar
2025-03-18 11:51 ` [PATCH V3 1/2] rust: Add initial " Viresh Kumar
2025-03-18 11:51 ` [PATCH V3 2/2] MAINTAINERS: Add entry for Rust bitmap API Viresh Kumar
2025-04-01 11:23   ` Viresh Kumar
2025-04-01 16:01     ` Yury Norov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).