STRUCT THERM_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌑️✨ struct therm_info(9) ✨🌑️

okay bestie, welcome to the Kernel API Manual entry for struct therm_info(9) β€” yes that's the manual name, yes it's a little guy that just holds a temperature reading, and yes we are gonna stan it 🫢


πŸ’– NAME πŸ’–

struct therm_info β€” literally just here to store a temperature reading. that's the whole job. main character energy for a struct that does one thing and does it well πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct therm_info {
    u8 rom[9];
    u8 crc;
    u8 verdict;
 };

look at her. three fields. no notes. slay ✨


πŸŽ€ Members πŸŽ€

  • rom β€” the read device data, and ngl the size matters: it's 8 data bytes + 1 CRC byte (which is why it's rom[9], iykyk 🧚).
  • crc β€” the computed crc from rom. math girlie behavior πŸ’œ
  • verdict β€” the vibe check result πŸ”₯: 1 means the crc was checked, 0 means crc not matching 😭 (so like, if you get a 0, maybe don't trust the temperature, bestie).

🌈 SEE ALSO 🌈

Kernel file ./drivers/w1/slaves/w1_therm.c struct β€” that's the source of truth, go say hi πŸ‘‹

the full friend group, no cap:

go read them all fr fr, they're all part of the same w1_therm cinematic universe πŸ‘‘

and that's the whole page, bestie πŸ“ this one lives down in ./drivers/w1/slaves, it's dated October 2026, and it's filed under struct therm_info(9) in the Kernel API Manual β€” so long and thanks for all the temps πŸŒΈπŸ’–βœ¨

πŸ“¦ where this page comes from