ds1685_indirect_write(9)
π ds1685_indirect_write β the Kernel API Manual page, bestie edition β¨
okay so you found the manpage for ds1685_indirect_write(9) and you're like "what does this even do" β don't worry, i got you π«Ά it lives in the Kernel API Manual and it is literally just one little function that writes a value to an rtc register. tiny function, big main character energy π
β¨ NAME β¨
ds1685_indirect_write β write a value to an rtc register. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
void ds1685_indirect_write (struct ds1685_priv *rtc , int reg , u8 value
);
it returns nothing (void), so likeβ¦ no feedback, no confetti, it just does the thing and dips π
π¦ ARGUMENTS π¦
rtcβ pointer to theds1685rtc structure. your whole chip's little personality file, basically πregβ the register address you're writing to. like picking which drawer in the filing cabinet, yk? ποΈvalueβ the value to write to the register. typeu8, so keep it cozy in that 8-bit range bestie π
π SEE ALSO π
bestie the cross-reference section goes OFF, it's giving "linked universe" π₯ β all of this lives in the kernel file ./drivers/rtc/rtc-ds1685.c:
ds1685_read(9)ds1685_write(9)ds1685_indirect_read(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_sysfs_serial_show(9)ds1685_rtc_probe(9)ds1685_rtc_remove(9)ds1685_rtc_poweroff(9)
go read them all, i'll wait π
and that's the whole page fr fr ππ β sourced from ./drivers/rtc, dated October 2026, and it's the ds1685_indirect_write(9) page, slay. bye bestie, go write some registers responsibly β¨π¦π
π¦ 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