ds1685_rtc_s..._serial_show(9)
π 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 thedevice_attributestructure. the attribute descriptor itself, just vibing there πΈbufβ pointer to thechararray 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:
ds1685_read(9)ds1685_write(9)ds1685_indirect_read(9)ds1685_indirect_write(9)ds1685_rtc_bcd2bin(9)ds1685_rtc_bin2bcd(9)ds1685_rtc_check_mday(9)ds1685_rtc_switch_to_bank0(9)ds1685_rtc_switch_to_bank1(9)ds1685_rtc_begin_data_access(9)ds1685_rtc_end_data_access(9)ds1685_rtc_get_ssn(9)ds1685_rtc_read_time(9)ds1685_rtc_set_time(9)ds1685_rtc_read_alarm(9)ds1685_rtc_set_alarm(9)ds1685_rtc_alarm_irq_enable(9)ds1685_rtc_extended_irq(9)ds1685_rtc_irq_handler(9)ds1685_rtc_proc(9)ds1685_rtc_sysfs_battery_show(9)ds1685_rtc_sysfs_auxbatt_show(9)ds1685_rtc_probe(9)ds1685_rtc_remove(9)ds1685_rtc_poweroff(9)
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
- 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