STRUCT HL_COMPONENT_VERSIONS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 of modules. she's not just the fixed part, she's the whole package πŸ’–
  • modules_offset β€” where the modules field 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 in modules_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 in struct 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