STRUCT TEMP_MASKS(9)
π 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 insideMSR_TEMPERATURE_TARGETβ¨digital_readoutβ the digital readout, hanging out inMSR_IA32_THERM_STATUSπpkg_digital_readoutβ the digital readout but make it package-wide, chillin' inMSR_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 π
- Kernel file
./drivers/thermal/intel/intel_tcc.cβ go read it, it's right there π§ intel_tcc_get_offset_mask(9)get_temp_mask(9)intel_tcc_get_tjmax(9)intel_tcc_get_offset(9)intel_tcc_set_offset(9)intel_tcc_get_temp(9)
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
- 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