STRUCT AMD_HFI_CPUINFO(9)
β¨ struct amd_hfi_cpuinfo β HFI workload class info per CPU β¨
okay bestie, so this is a page from the Kernel API Manual (yes, the struct amd_hfi_cpuinfo(9) one) and it's literally just the lil' info card that a CPU keeps about its own workload class vibes π¦ buckle up, it's short but it's iconic.
πΈ NAME πΈ
struct amd_hfi_cpuinfo β HFI workload class info per CPU. that's it, that's the whole assignment π
π SYNOPSIS π
struct amd_hfi_cpuinfo {
int cpu;
u32 apic_id;
s16 class_index;
u8 nr_class;
int *ipcc_scores;
struct amd_hfi_classes *amd_hfi_classes;
};
no cap, that's the whole struct. every field, exactly as written, don't touch a single character π₯
π Members π
girl, let's go field by field, i got you:
cpuβ the CPU index. like, which CPU this is π§apic_idβ the APIC id of the current CPU. its little ID badge fr fr πclass_indexβ the workload class ID index, aka which class slipped in πnr_classβ the max number of workload class supported. yes, "supported", that's what it says, i'm not fixing the grammar, periodt β¨ipcc_scoresβ ipcc scores for each class, one per class, stored in a pointer obviously πamd_hfi_classesβ current CPU workload class ranking data. this is the main character field ngl π
π¦ Description π¦
so like, this struct is the parameters of a logical processor linked with hardware feedback class. that's literally the whole description bestie β the CPU's ~personal~ HFI info, all bundled up π«Ά
β SEE ALSO β
go look at these, iykyk:
- Kernel file
./drivers/platform/x86/amd/hfi/hfi.cstruct amd_shmem_info(9)struct amd_hfi_classes(9)amd_hfi_online(9)amd_hfi_offline(9)
π real talk: this manpage is like, four lines of lore. but every single line is here, so we ate and left no crumbs π
and that's a wrap! cute lil sign-off: this one lives under ./drivers/platform/x86/amd/hfi and it's dated October 2026 β see you in the future, bestie ππΈπ
π¦ 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