copy_scratchpad(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… copy_scratchpad β€” a whole kernel API manual, bestie

okay so this is copy_scratchpad(9), a Kernel API Manual page, and honestly? it's giving "small function, big responsibilities." the way that it just copies the content of the scratchpad into the device EEPROM... iconic. no cap. πŸŽ€


✨ NAME ✨

copy_scratchpad β€” Copy the content of scratchpad in device EEPROM

like literally what it says on the tin, bestie. scratchpad in, EEPROM out. 🫢


🌸 SYNOPSIS 🌸

int copy_scratchpad (struct w1_slave *sl );

that's the whole signature. short, sweet, and lowkey serving main character energy. πŸ’œ


πŸ¦‹ ARGUMENTS πŸ¦‹

  • sl β€” slave involved. yep, that's it. the slave is involved. it said "i'm part of this." πŸ’€

⭐ RETURN ⭐

  • 0 if success πŸŽ‰ β€” we love a zero, zero is the happy number, no notes
  • -kernel error code otherwise 😭 β€” so like, if it doesn't work you get a negative kernel error code back. not a vibe, but at least it's honest

🌈 SEE ALSO 🌈

okay buckle up, this list is LONG and we are NOT skipping a single one, bestie. the original said look at all of these so we're looking at all of these, fr fr. πŸ‘‘

first up, the kernel file:

  • Kernel file ./drivers/w1/slaves/w1_therm.c struct

then the whole friend group:

like, that's the entire group chat and every single one got a shoutout. we ate. πŸ’…βœ¨


and that's the page, bestie! no cap, every single reference made it in. go read them, iykyk. 🌸

🧚 and before you go β€” this lil page lives in ./drivers/w1/slaves, and it's dated October 2026, and yes it's literally called copy_scratchpad(9) in case you forgot already. mwah, bye! πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from