STRUCT HFI_INSTANCE(9)
πΈ struct hfi_instance(9) β the Kernel API Manual glow-up πΈ
okay so first things first, bestie: this is from the Kernel API Manual, section 9 (struct hfi_instance(9)), and it's lowkey the blueprint for one single HFI instance β like, one table, one vibe. π
β¨ NAME β¨
struct hfi_instance β the representation of an HFI instance (i.e., a table). that's it, that's the whole name. iconic brevity. π
π¦ SYNOPSIS π¦
this is the whole struct, verbatim, do not touch a single character fr fr:
struct hfi_instance {
union {
void *local_table;
u64 *timestamp;
};
void *hdr;
void *data;
cpumask_var_t cpus;
void *hw_table;
struct delayed_work update_work;
raw_spinlock_t table_lock;
raw_spinlock_t event_lock;
};
π Members π
okay so here's every single field, no skips, we're doing all of them π«Ά
{unnamed_union}β anonymous. that's it, no name, mysterious main character energy. πlocal_tableβ base of the local copy of the HFI table. your own personal backup copy, slay.timestampβ the timestamp of the last update of the local table. and the cutest part? it actually lives at the base of the local table. tucked right in there. β¨hdrβ base address of the header of the local table.dataβ base address of the data of the local table.cpusβ the CPUs represented in this HFI table instance. all the CPUs that made the cut πhw_tableβ pointer to the HFI table of this instance.update_workβ delayed work to process HFI updates. it's giving "I'll get to it later" but, like, officially. πtable_lockβ lock to protect accesses to the table of this instance. do not skip the lock bestie, I'm begging. π₯event_lockβ lock to process HFI interrupts.
π Description π
it's a set of parameters to parse and navigate a specific HFI table. that's the whole vibe check. one struct, one table, all the parameters you need to actually go in there and read it. simple, effective, ate. π
β SEE ALSO β
go read these next, they're all in the kernel file ./drivers/thermal/intel/intel_hfi.c and honestly they're all besties with this one:
struct hfi_cpu_data(9)struct hfi_hdr(9)struct hfi_features(9)struct hfi_cpu_info(9)intel_hfi_online(9)intel_hfi_offline(9)
ngl, if you're poking at HFI stuff you're gonna want the whole little family of structs above. iykyk. π§
and that's the tea π β this page lives at ./drivers/thermal/intel, dated October 2026, and it's literally titled struct hfi_instance(9). go forth and hydrate, 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