Re: [PATCH v2 1/2] rust: add a wrapper for the `num_possible_cpus` C function

From: Gary Guo

Date: Mon Jun 08 2026 - 07:08:11 EST


On Fri Jun 5, 2026 at 1:54 PM BST, Andreas Hindborg wrote:
> This function returns the maximum number of CPUs that can be online.
>
> The wrapper is needed by the Rust null block driver.
>
> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>

Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>

> ---
> rust/helpers/helpers.c | 1 +
> rust/helpers/num_cpus.c | 8 ++++++++
> rust/kernel/cpu.rs | 7 +++++++
> 3 files changed, 16 insertions(+)