thermal_zone_get_offset(9)
π thermal_zone_get_offset β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual β¨ this one is a tiny little function from the thermal corner of the kernel and honestly it's giving "small but crucial", so let's get into it π«Ά
πΈ NAME πΈ
thermal_zone_get_offset β literally just returns the offset attribute of the thermal zone. that's it. that's the whole vibe π
β¨ SYNOPSIS β¨
int thermal_zone_get_offset (struct thermal_zone_device *tz );
so you hand it a tz and it hands you back an int, no cap π
π¦ ARGUMENTS π¦
tzβ the thermal zone device that has the offset attribute. yes, it needs to actually have one, iykyk π
β RETURN β
if the thermal zone device has an offset attribute, it returns it π
otherwise it returns 0. zero. nothing. the void. π
π SEE ALSO π
- Kernel file
./drivers/thermal/thermal_helpers.cβ go peek, it's right there π₯ __thermal_zone_get_temp(9)thermal_zone_get_temp(9)thermal_cdev_update(9)thermal_cdev_update_nocheck(9)thermal_zone_get_slope(9)
like, the whole thermal friend group fr fr π§
and that's the page, bestie π no notes, ate and left no crumbs. this iconic little entry lives in ./drivers/thermal and is dated October 2026 β periodt π
π¦ 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