STRUCT HL_COMPONENT_VERSIONS(9)
π struct hl_component_versions β Kernel API Manual, but make it cute
okay so bestie, pull up a chair π this is the 9th section of the manual (kernel API vibes) and it's literally just one struct, but she's an iconic struct, so let's get into it.
β¨ NAME β¨
struct hl_component_versions β the versions associated with an hl component. that's it, that's the whole name. short, sweet, slay π
πΈ SYNOPSIS πΈ
struct hl_component_versions {
__le16 struct_size;
__le16 modules_offset;
__u8 component[VERSION_MAX_LEN];
__u8 fw_os[VERSION_MAX_LEN];
__u8 comp_name[NAME_MAX_LEN];
__u8 modules_counter;
__u8 reserved[3];
struct hl_module_data modules[];
};
look at her. all fields, no notes. copy it exactly if you're typing it out, bestie β no "fixing" the names, i'm watching π
π¦ Members π¦
struct_sizeβ the size of all the struct β¨ and yes, that includes the dynamic size ofmodules. she's not just the fixed part, she's the whole package πmodules_offsetβ where themodulesfield sits inside this struct, as an offset. so you know exactly where to find her π§componentβ the version of the component itself. main character energy, honestly πfw_osβ the Firmware OS Version. firmware but make it fashion πcomp_nameβ the name of the component. hi, what's your name, what's your sign πmodules_counterβ the number of set bits inmodules_mask. count 'em, bestie π₯reservedβ reserved for future use. she's saving space for later, we respect the hustle πmodulesβ the versions of the component's modules π the elaborated explanation lives over instruct cpucp_versions, so go read that one if you want the full lore, iykyk
β SEE ALSO β
- Kernel file
./include/linux/habanalabs/hl_boot_if.hβ go read the source, it's giving β¨
ngl, this whole page is basically a love letter to one header file. no cap, if you're touching habanalabs boot stuff, that's your girl π«Ά
and that's the tea π this beauty lives in ./include/linux/habanalabs, dated October 2026, and she's filed under struct hl_component_versions(9) in the Kernel API Manual. mwah, go forth and version responsibly ππ
π¦ 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