ds1685_rtc_s..._serial_show(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

ds1685_rtc_sysfs_serial_show β€” bestie, this is the sysfs file for the silicon serial number. That's it, that's the whole vibe ✨

So like, this is the little show function that gets called when somebody cats the serial-number sysfs attribute, and it hands back the silicon serial number. iconic behaviour honestly πŸŽ€

(quick thing: the header up top says this page lives in the Kernel API Manual, and the function name got squished to ds1685_rtc_s..._serial_show(9) for the title because manpage titles have a character limit, no cap β€” the real full name is the one in NAME up there πŸ‘†)


✨ SYNOPSIS ✨

ssize_t ds1685_rtc_sysfs_serial_show (struct device *dev , struct device_attribute *attr , char *buf );

okay so it returns an ssize_t and takes three args, we love a straightforward signature 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” pointer to the device structure. that's the device asking for its serial number, main character energy πŸ’…
  • attr β€” pointer to the device_attribute structure. the attribute descriptor itself, just vibing there 🌸
  • buf β€” pointer to the char array that's gonna hold the output. this is where the serial number actually lands, so keep an eye on this one bestie ⭐

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file for all this is ./drivers/rtc/rtc-ds1685.c β€” that's the home base πŸ’œ

and it's giving huge friend group, because here's everyone adjacent:

like?? that's a whole squad 😭 go read them, iykyk πŸ”₯


okay that's the page!! sourced from ./drivers/rtc, dated October 2026, sitting pretty in the Kernel API Manual β€” mwah, go touch some registers bestie πŸ’‹πŸŒΊ

πŸ“¦ where this page comes from