read_scratchpad(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 πŸ‘‘

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