cpu__get_socket_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is the cpu__get_socket_id(9) page from the Kernel API Manual, and it's literally the guide to getting a CPU's socket number. We're keeping every crumb, every path, every reference β€” no cap, fr fr πŸ’–βœ¨

🌸 NAME 🌸

cpu__get_socket_id β€” returns the socket number as read from /sys/devices/system/cpu/cpuX/topology/physical_package_id for the given CPU. πŸ¦‹

πŸŽ€ SYNOPSIS πŸŽ€

int cpu__get_socket_id (struct perf_cpu cpu );

πŸ’… ARGUMENTS πŸ’…

  • cpu β€” -- undescribed -- (yes bestie, that's exactly what the original says; the argument notes are giving mystery main character energy 🫠).

🌈 SEE ALSO 🌈

The Kernel file ./tools/perf/util/cpumap.h is the home base, and the whole squad is linked here:


mwah πŸ’‹ this page's source/version home is ./tools/perf/util, and it's dated October 2026 β€” that's the cute little footer tea, bestie, and we did not lose a single detail 🫢✨

πŸ“¦ where this page comes from