intel_tcc_get_temp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🌸


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