LIBNVME_PATH_GET_NUMA_NODES-LIBNVME3(2)
π NAME π
libnvme_path_get_numa_nodes β bestie, this is the one that goes and gets your numa_nodes for you β¨
So this little icon lives in the libnvme API manual, section 9, and honestly? She's a vibe. You hand her a path, she hands you back the numa nodes. That's it. That's the whole gig π«Ά
π¦ SYNOPSIS π¦
int libnvme_path_get_numa_nodes (const struct libnvme_path *p , const
char **numa_nodes , const char *dflt );
Like, look at her. Three args, one int coming back. Lowkey elegant ngl π
πΈ ARGUMENTS πΈ
pβ thestruct libnvme_pathinstance you're querying, aka the main character of this whole operation π She'sconst, so don't even think about touching her.numa_nodesβ this is where the value gets stashed when things go right. It's aconst char **, so she writes a pointer-to-char into whatever you point her at. Success behavior, periodt β¨dfltβ the fallback value, and the way this works is so thoughtful honestly: if it fails, this is what ends up sitting innuma_nodes. No empty void, no vibes-based guesswork. Justdfltdoing her thing π
π₯ RETURN π₯
0β slay, it worked, success π-ENOENTβ the attribute literally does not exist. She looked. It's not there. F in the chat π- a negative
errnoβ something else went wrong, and the negative errno tells you what π
Heads up bestie: those non-success returns are negative errno values, not positive ones. Keep that in mind before you go comparing against ENOENT like a rookie π
okay that's the whole page, no cap, every detail accounted for π§ If you read this far you're officially a libnvme girlie now, iykyk π
libnvme API manual Β· October 2026 Β· libnvme_path_get_numa_nodes(9) β mwah, go forth and query those paths bestie ππβ
π¦ 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