cpu__get_core_id(9)
π cpu__get_core_id β a whole manpage, but make it bestie π
okay so this is cpu__get_core_id(9) from the Kernel API Manual β yes, the kernel has lore and yes we're gonna read it together π«Ά
β¨ NAME β¨
cpu__get_core_id β returns the core id, read straight out of /sys/devices/system/cpu/cpuX/topology/core_id, for the CPU you hand it. that's it. that's the whole job. and honestly? iconic for that πΈ
π SYNOPSIS π
int cpu__get_core_id (struct perf_cpu cpu );
it takes one struct perf_cpu and gives you back an int. simple. clean. no cap π
π¦ ARGUMENTS π¦
cpuβ literally listed as-- undescribed --in the source docs π so likeβ¦ the manual itself is being mysterious about it. it's thestruct perf_cpufrom the synopsis. we know that. the docs just chose not to elaborate and honestly, respect the confidence π
ngl, bestie, if you need to know more about cpu you're gonna have to go read the header, because this page is giving absolutely nothing on that front π
π SEE ALSO π
the whole friend group, fr fr β all from the kernel file ./tools/perf/util/cpumap.h:
cpu_map__is_dummy(9)cpu__get_node(9)cpu__get_socket_id(9)cpu__get_die_id(9)cpu__get_cluster_id(9)cpu_aggr_map__empty_new(9)cpu_aggr_map__new(9)aggr_cpu_id__socket(9)aggr_cpu_id__die(9)aggr_cpu_id__cluster(9)aggr_cpu_id__core(9)aggr_cpu_id__node(9)aggr_cpu_id__global(9)
like okayyy topology family reunion π every single one of them is on the list, we don't gatekeep here β¨
and that's the whole page, bestie π shoutout to ./tools/perf/util for shipping this from October 2026 β the source, the version, the date, all of it, mwah π go read your topology ids. slay. periodt π§ββοΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms