acpi_lpat_raw_to_temp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ acpi_lpat_raw_to_temp ✨

okay bestie, welcome to the Kernel API Manual πŸ’… this one's a lil function called acpi_lpat_raw_to_temp(9) and honestly? she's a glow-up specialist β€” she takes your crusty raw number and turns it into an actual temperature. no cap. πŸ¦‹


🌸 NAME 🌸

acpi_lpat_raw_to_temp β€” returns you a temperature from a raw value, going through the LPAT conversion table πŸ’– literally the whole personality of this function.


πŸŽ€ SYNOPSIS πŸŽ€

int acpi_lpat_raw_to_temp (struct acpi_lpat_conversion_table *lpat_table
, int raw );

like, that's the whole signature. she's not complicated, she's just iconic ✨


🫢 ARGUMENTS 🫢

  • lpat_table β€” the temperature_raw mapping table structure, i.e. the ~vibes translation dictionary~ you're passing in. it's the structure that maps temperature ↔ raw, and she needs it. πŸ‘‘
  • raw β€” the raw value, and it's used as a key to get the temperature out of that mapping table above. so like, you give her the key, she hands you the temp. iykyk πŸ”‘

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea β˜• β€” on success you get a positive converted temperature value back. slay. that's the good ending.

but if things go sideways? you get a negative errno returned in the error cases. so like, don't just blindly trust the number, do a vibe check first 😭 if it's negative, that's not a temperature, that's a complaint.

fr fr, the sign is doing a LOT of work here β€” positive = actual temp, negative = errno. don't get it twisted πŸ’€

🧚 SEE ALSO 🧚


and that's the whole page!! mwah πŸ’‹ this lovely lil doc lives over in ./drivers/acpi and it's dated October 2026 β€” so yeah, she's from the future, obviously. πŸŒˆβ­πŸ‘‘

πŸ“¦ where this page comes from