amd_detect_prefcore(9)
π amd_detect_prefcore β the kernel manual, but make it make sense
okay bestie, so this is a page from the Kernel API Manual β it's called amd_detect_prefcore(9) and it's genuinely so niche but honestly kinda iconic? it's giving "small function, big feelings". let's get into it β¨
πΈ NAME πΈ
amd_detect_prefcore β lowkey just answers the question: do the CPUs in this system support preferred cores or not? π«Ά
β SYNOPSIS β
int amd_detect_prefcore (bool *detected );
that's it. one function, one pointer, zero drama. periodt. π
π ARGUMENTS π
detectedβ the output variable where the result of the detection gets dropped off. like a little mailbox for the answer π¬
π¦ DESCRIPTION π¦
so what does it actually do? it determines whether the CPUs in the system support preferred cores. that's the whole vibe check.
here's the tea on how you can tell, no cap:
- on systems that do support preferred cores, you'll find different highest perf values on different cores π
- on other systems, the highest perf value is just the same on all cores β very "everyone got the same grade" energy π
and the result of the detection? it gets stored in the detected parameter. yes bestie, that's literally what it's for. π―
π₯ RETURN π₯
0for success β slay, it worked π- negative error code otherwise β not the serve we wanted, but that's the contract π
π SEE ALSO π
- Kernel file
./arch/x86/kernel/acpi/cppc.cβ go read the source, iykyk π amd_get_boost_ratio_numerator(9)β its little friend, also worth a look π
fr fr, don't forget: the result lands indetected, and anything other than0coming back means something went sideways. no guessing, that's literally what the page says π
and that's the whole page, bestie β it lives under ./arch/x86/kernel/acpi, and this particular glow-up is dated October 2026, straight from the Kernel API Manual. mwah, go touch some cores ππ
π¦ 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