libnvme_ctrl_get_numa_node(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… 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 β€” your struct libnvme_ctrl instance, aka the thing you're querying. the main character of this operation πŸ‘‘
  • numa_node β€” where you store the value on success. it's a const 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 in numa_node on failure. your fallback bestie, there for you when things go sideways πŸ’–

⭐ RETURN ⭐

  • 0 on success β€” slay, we got it πŸŽ‰
  • -ENOENT if the attribute does not exist β€” it's just not there, not a whole crisis πŸ’€
  • or a negative errno on 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