temperature_from_RAM(9)
π NAME
Okay so bestie, welcome to the Kernel API Manual, and today's main character is temperature_from_RAM(9) β she takes the read info and converts it to temperature. That's the whole job description, and she does it slayfully. π
β¨ SYNOPSIS
int temperature_from_RAM (struct w1_slave *sl , u8 rom[9] );
Like, look at her. Two args, returns an int, no drama. πΈ
π ARGUMENTS
slβ the device that sent the RAM data. She's the one who brought the receipts, so we know where the data came from.romβ the read value on the slave device RAM, chillin' there as au8 rom[9]array. Nine bytes of pure potential. π¦
π§ DESCRIPTION
Okay so here's the vibe: this function is device dependent, and what she does is bind the correct computation method. Different device families, different math β she's basically the group chat admin who knows exactly which friend to tag for which question. No cap, that's the whole flex. π
π₯ RETURN
The temperature comes back in 1/1000degC (yes, thousandths of a degree, she's precise like that β¨), and 0 on error. So if you get a zero, don't celebrate β check yourself before you wreck yourself. π
π SEE ALSO
Kernel file ./drivers/w1/slaves/w1_therm.c struct β and honestly the whole friend group is here, so let's go:
w1_therm_family_converter(9)struct w1_therm_family_data(9)struct therm_info(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)int_to_short(9)w1_poll_completion(9)
Fr fr, go read them if you want the full lore. The whole squad ate and left no crumbs. π
That's the page, babe β sourced from ./drivers/w1/slaves, dated October 2026, and it's temperature_from_RAM(9) all day. π«Άπ Byeee! π
π¦ 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