thermal_zon...zone_by_name(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Hey bestie πŸ’– welcome to the Kernel API Manual page for thermal_zone_get_zone_by_name(9) β€” it’s giving kernel-core realness and I’m obsessed.

🌸 NAME 🌸

thermal_zone_get_zone_by_name β€” search for a zone and returns its ref ✨

✨ SYNOPSIS ✨

struct thermal_zone_device * thermal_zone_get_zone_by_name (const char
*name );

πŸŽ€ ARGUMENTS πŸŽ€

  • name β€” the thermal zone name to fetch the temperature 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

When only one zone is found with the passed name, it returns a reference to it. That’s the whole vibe: one matching zone, one returned reference πŸ’…

πŸ’– RETURN πŸ’–

On success, it returns a reference to a unique thermal zone whose matching name equals name. Otherwise you get an ERR_PTR, bestie 😭

  • -EINVAL β€” for invalid parameters
  • -ENODEV β€” for not found
  • -EEXIST β€” for multiple matches

πŸ”₯ SEE ALSO πŸ”₯


source/version: ./drivers/thermal ⭐ date: October 2026 ⭐ page: thermal_zon...zone_by_name(9) β€” bye bestie, go read your kernel docs and hydrate πŸ’…πŸ’–

πŸ“¦ where this page comes from