read_scratchpad(9)
π read_scratchpad(9) π
okay bestie, welcome to the Kernel API Manual, section 9 β this is the page for read_scratchpad, and it's literally the "go get the actual numbers out of the device RAM" girlie. no cap. π
β¨ NAME β¨
read_scratchpad β read the data in device RAM πΈ
π¦ SYNOPSIS π¦
int read_scratchpad (struct w1_slave *sl , struct therm_info *info );
π ARGUMENTS π
slβ pointer to the slave to read. that's your 1-Wire bestie, the one you're pulling data from π«Άinfoβ pointer to a structure to store the read results. it's giving "bring your own container", you hand her somewhere to put the goods π¦β¨
π₯ RETURN π₯
0 if success, -kernel error code otherwise. so like, zero is the slay outcome, and anything else is a negative kernel error code being dramatic at you π
π SEE ALSO π
- Kernel file
./drivers/w1/slaves/w1_therm.c struct w1_therm_family_converter(9)struct w1_therm_family_data(9)struct therm_info(9)reset_select_slave(9)convert_t(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)
like, the whole 1-Wire friend group is in that list fr fr β go say hi π
main character energy only: you're reading device RAM, not guessing at it. if the return value isn't 0, something's off and the kernel is telling you so β¨
file location ./drivers/w1/slaves, dated October 2026 β that's the whole footer vibe, mwah π
π¦ 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