cpu__get_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cpu__get_node(9) β€” like, the Kernel API Manual but make it make sense

okay so bestie, welcome to cpu__get_node πŸŽ€ this is from the Kernel API Manual, and it's genuinely one of the more straightforward ones β€” no cap.


✨ NAME ✨

cpu__get_node β€” returns the numa node X as read from /sys/devices/system/node/nodeX for the given CPU. πŸ¦‹

like, that's it. that's the whole vibe. it goes and looks at what the system says the node is for that CPU, no guessing, no drama. iykyk.


🌸 SYNOPSIS 🌸

int cpu__get_node (struct perf_cpu cpu );

that's the whole signature, periodt. takes a struct perf_cpu called cpu, hands you back an int. iconic behavior honestly.


πŸ’– ARGUMENTS πŸ’–

  • cpu β€” ngl bestie… the original manpage literally just says -- undescribed -- 😭 like not a single word about it. so that's all we got, and i'm not about to invent lore that isn't there. it's a struct perf_cpu, the signature tells you that much, and the manpage leaves the rest as a mystery πŸ•΅οΈβ€β™€οΈβœ¨

πŸ”₯ SEE ALSO πŸ”₯

okay this is the fun part, the whole friend group is here πŸ‘‘ if you liked this one, go say hi to:

like, the entire topology-adjacent squad πŸ’€ go read them all, they're all eating.


that's the page!! 🌈 mwah πŸ’œ this lil beauty lives in ./tools/perf/util, and it's dated October 2026 β€” so mark your calendars bestie, see u then 🫢✨

πŸ“¦ where this page comes from