libnvme_ctrl_get_numa_node(9)
π libnvme_ctrl_get_numa_node β from the libnvme API manual, bestie
okay so this is libnvme_ctrl_get_numa_node(9), and before you ask β yes, it's exactly as niche and exactly as iconic as it sounds. we're getting the numa_node. that's the whole gig. let's go π¦
β¨ NAME β¨
libnvme_ctrl_get_numa_node β get numa_node. that's it, that's the function, no cap π
πΈ SYNOPSIS πΈ
int libnvme_ctrl_get_numa_node (const struct libnvme_ctrl *p , const
char **numa_node , const char *dflt );
literally copy that signature exactly, don't get cute with it π
π«Ά ARGUMENTS π«Ά
pβ yourstruct libnvme_ctrlinstance, aka the thing you're querying. the main character of this operation πnuma_nodeβ where you store the value on success. it's aconst char **, so you're handing it a pointer to a pointer to write into. yes, double pointer, yes it's giving pointer-to-pointer energy πdfltβ the value to store innuma_nodeon failure. your fallback bestie, there for you when things go sideways π
β RETURN β
0on success β slay, we got it π-ENOENTif the attribute does not exist β it's just not there, not a whole crisis π- or a negative
errnoon failure
lowkey important: successes are 0, failures are negative. keep your vibe check on the sign of that return value, fr fr π₯
and that's the whole page bestie, you ate it up. this was libnvme_ctrl_get_numa_node(9) from the libnvme API manual, dated October 2026 β mwah, go get those NUMA nodes π§π
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms