STRUCT THERM_INFO(9)
π‘οΈβ¨ 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'srom[9], iykyk π§).crcβ the computed crc fromrom. math girlie behavior πverdictβ the vibe check result π₯:1means the crc was checked,0means crc not matching π (so like, if you get a0, 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:
w1_therm_family_converter(9)struct w1_therm_family_data(9)reset_select_slave(9)convert_t(9)read_scratchpad(9)write_scratchpad(9)copy_scratchpad(9)recall_eeprom(9)read_powermode(9)trigger_bulk_read(9)w1_therm_add_slave(9)w1_therm_remove_slave(9)w1_DS18B20_convert_temp(9)w1_DS18S20_convert_temp(9)w1_DS1825_convert_temp(9)device_family(9)bus_mutex_lock(9)check_family_data(9)bulk_read_support(9)conversion_time(9)temperature_from_RAM(9)int_to_short(9)w1_poll_completion(9)
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
- 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