thermal_zone_get_offset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ‘‘

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