Re: [PATCH v3 1/3] rust: add a wrapper for the `num_possible_cpus` C function
From: Miguel Ojeda
Date: Thu Oct 01 2026 - 16:15:44 EST
On Wed, Sep 30, 2026 at 1:38 PM Miguel Ojeda
<miguel.ojeda.sandonis@xxxxxxxxx> wrote:
>
> I can do it.
Actually, `cpumask.c` may be better -- that is where C defines it and
that helper has the right `#include`.
Which in turn makes me wonder if we should also put the Rust one in
`cpumask.rs` instead, rather than `cpu.rs`.
However, we do already have `nr_cpu_ids()` in `cpu.rs`, though, which
is however in `cpumask.h` in C.
What do you think?
Cc'ing cpumask.
Cheers,
Miguel