STRUCT AMD_HFI_CPUINFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


πŸ’€ 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