STRUCT TEMP_MASKS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ struct temp_masks(9) β€” a Kernel API Manual moment

okay so bestie, welcome to struct temp_masks(9) from the Kernel API Manual, and honestly? it's giving "small struct, big responsibilities" ✨


🌸 NAME 🌸

struct temp_masks β€” literally just bitmasks for temperature readings πŸŽ€ no cap, that's the whole vibe.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct temp_masks {
    u32 tcc_offset;
    u32 digital_readout;
    u32 pkg_digital_readout;
 };

that's it. that's the struct. three u32s and a dream πŸ’… (yes, the closing brace really is indented like that, we don't touch it, we respect it)


🫢 Members 🫢

  • tcc_offset β€” the TCC offset, living its best life inside MSR_TEMPERATURE_TARGET ✨
  • digital_readout β€” the digital readout, hanging out in MSR_IA32_THERM_STATUS πŸ’–
  • pkg_digital_readout β€” the digital readout but make it package-wide, chillin' in MSR_IA32_PACKAGE_THERM_STATUS πŸ”₯

⭐ Description ⭐

so these are bitmasks whose entire job is to extract the fields out of the MSR_TEMPERATURE and IA32_[PACKAGE]_ THERM_STATUS registers β€” and they differ per processor model, so like, every CPU gets its own little mask lineup πŸ‘‘ iykyk.

⚠️ important lil heads-up bestie: the bitmask for TjMax is not included in this structure. it's always 0xff. always. periodt. πŸ’€

🌈 SEE ALSO 🌈

all the little friends, linked together, main character energy all around πŸ¦‹


and that's the page!! πŸ’– this lil slice of the Kernel API Manual comes to you from ./drivers/thermal/intel, dated October 2026, and it's literally called struct temp_masks(9) β€” slay, go read your MSRs responsibly πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from