intel_tcc_get_temp(9)
π NAME π
okay so this is intel_tcc_get_temp(9) from the Kernel API Manual, and it literally returns the current temperature. bestie, thatβs the whole vibe. periodt.
β¨ SYNOPSIS β¨
int intel_tcc_get_temp (int cpu , int *temp , bool pkg );
π ARGUMENTS π
cpuβ the cpu that the MSR should be run on; a negative value means any cpu. iykyk, negative = any cpu.tempβ pointer to the memory for saving cpu temperature. not the temp itself, the place it goes, bestie.pkgβtrue: Package Thermal Sensor.false: Core Thermal Sensor.
π¦ DESCRIPTION π¦
Get the current temperature returned by the CPU core/package level thermal sensor, in degrees C. so depending on pkg, youβre asking the core sensor or the package sensor, and it gives you the temp in Celsius. slay.
π₯ RETURN π₯
0 on success, negative error code otherwise. no cap, thatβs the whole return situation.
πΈ SEE ALSO πΈ
- Kernel file
./drivers/thermal/intel/intel_tcc.c struct temp_masks(9)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)
mwah π
this page lives under ./drivers/thermal/intel and is dated October 2026 β thatβs the source/version + date footer energy, bestie π«Άβ¨
π¦ 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