get_temp_mask(9)
β¨ NAME β¨
okay so bestie, welcome to get_temp_mask(9) from the Kernel API Manual πΈ β this is the page for get_temp_mask, and it Returns the model-specific bitmask for temperature. periodt.
π«Ά SYNOPSIS π«Ά
Hereβs the signature, no cap β copy it exactly:
u32 get_temp_mask (bool pkg );
π ARGUMENTS π
pkgβtrue: Package Thermal Sensor.false: Core Thermal Sensor.
π DESCRIPTION π
Get the model-specific bitmask to extract the temperature reading from the MSR_IA32_[PACKAGE]_THERM_STATUS register. Thatβs the whole assignment, and itβs giving very specific little gremlin energy π₯.
bestie, fr fr: Callers must check if the thermal status registers are supported. Do not skip the vibe check on this one π.
π₯ RETURN π₯
The model-specific bitmask for temperature reading. Thatβs it β thatβs the return π.
π SEE ALSO π
Go read these next, bestie β the whole little kernel thermal cinematic universe π:
- Kernel file
./drivers/thermal/intel/intel_tcc.c struct temp_masks(9)intel_tcc_get_offset_mask(9)intel_tcc_get_tjmax(9)intel_tcc_get_offset(9)intel_tcc_set_offset(9)intel_tcc_get_temp(9)
mwah π β this page lives under ./drivers/thermal/intel and is dated October 2026. signed, get_temp_mask(9) π
π¦ 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