Re: [PATCH v3 2/3] rust: add a wrapper for the `nr_online_nodes` C function
From: Gary Guo
Date: Wed Sep 30 2026 - 12:01:35 EST
On Tue Sep 29, 2026 at 6:56 PM BST, Andreas Hindborg wrote:
> This function returns the number of online NUMA nodes.
>
> The wrapper is needed by the Rust null block driver.
>
> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
It's fine to ignore Sashiko. Although, ideally we change C code to do
WRITE_ONCE().
Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>
Best,
Gary
> ---
> rust/kernel/lib.rs | 1 +
> rust/kernel/numa.rs | 29 +++++++++++++++++++++++++++++
> 2 files changed, 30 insertions(+)