diff options
| author | Andreas Hindborg <a.hindborg@kernel.org> | 2026-09-29 17:18:24 +0200 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-09-29 21:05:08 +0200 |
| commit | 6e8339118040f24ebcc21db22c9c1b7398b7e39e (patch) | |
| tree | 27c9ba53d642a713daa280dc9f748130298d72b8 /tools/lib/python | |
| parent | d190aa209416f6d6d7bdaffffaaab2af5d3ccdec (diff) | |
| download | linux-next-6e8339118040f24ebcc21db22c9c1b7398b7e39e.tar.gz linux-next-6e8339118040f24ebcc21db22c9c1b7398b7e39e.zip | |
rust: alloc: add `NumaNode::id()` accessor
`NumaNode` wraps an `i32` but offers no way to read it back. Add a
trivial `id()` getter so callers that need to pass the node id to a
C binding can recover the underlying `c_int` without reaching into
the private field.
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://patch.msgid.link/20260929-numa-node-id-v2-1-fdd2c0a49412@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
