|
|
Subscribe / Log in / New account

Rust: Add cpumask abstractions

From:  Viresh Kumar <viresh.kumar-AT-linaro.org>
To:  Yury Norov <yury.norov-AT-gmail.com>, Rasmus Villemoes <linux-AT-rasmusvillemoes.dk>, Alex Gaynor <alex.gaynor-AT-gmail.com>, Alice Ryhl <aliceryhl-AT-google.com>, Andreas Hindborg <a.hindborg-AT-kernel.org>, Benno Lossin <benno.lossin-AT-proton.me>, Björn Roy Baron <bjorn3_gh-AT-protonmail.com>, Boqun Feng <boqun.feng-AT-gmail.com>, Gary Guo <gary-AT-garyguo.net>, Miguel Ojeda <ojeda-AT-kernel.org>, Trevor Gross <tmgross-AT-umich.edu>, Viresh Kumar <viresh.kumar-AT-linaro.org>
Subject:  [PATCH V2 0/2] Rust: Add cpumask abstractions
Date:  Fri, 28 Feb 2025 13:26:45 +0530
Message-ID:  <cover.1740726226.git.viresh.kumar@linaro.org>
Cc:  linux-kernel-AT-vger.kernel.org, Danilo Krummrich <dakr-AT-redhat.com>, rust-for-linux-AT-vger.kernel.org, Vincent Guittot <vincent.guittot-AT-linaro.org>, Burak Emir <bqe-AT-google.com>
Archive-link:  Article

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].

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.k...
[2] https://lore.kernel.org/all/20250224233938.3158-1-yury.no...

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

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

-- 
2.31.1.272.g89b43f80a514




Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds