[PATCH 0/2] rust: add a few helpers

From: Andreas Hindborg

Date: Sun Feb 15 2026 - 15:11:26 EST


This series adds two helpers for obtaining information about the number
of numa domans and cpu count of the system.

Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
---
Andreas Hindborg (2):
rust: add a wrapper for the `num_possible_cpus` C function
rust: add a wrapper for the `nr_online_nodes` C function

rust/helpers/helpers.c | 1 +
rust/helpers/num_cpus.c | 8 ++++++++
rust/kernel/lib.rs | 17 +++++++++++++++++
3 files changed, 26 insertions(+)
---
base-commit: 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b
change-id: 20260215-cpu-helpers-08efb2572487

Best regards,
--
Andreas Hindborg <a.hindborg@xxxxxxxxxx>