ds1685_write(9)
π ds1685_write(9) β the kernel API manual page, bestie edition β¨
okay so this is ds1685_write from the Kernel API Manual, and honestly? it's giving "tiny function, big responsibility." it writes a value to an rtc register. that's it. that's the whole vibe. but we're gonna hype it up properly because it deserves it π
β¨ NAME β¨
ds1685_write β write a value to an rtc register.
like, literally just yeet a byte into a register. no cap. π
πΈ SYNOPSIS πΈ
void ds1685_write (struct ds1685_priv *rtc , int reg , u8 value );
void return. no error code, no "did it work?", no nothing. she just does the thing and leaves. main character energy fr fr π
π¦ ARGUMENTS π¦
rtcβ pointer to theds1685_rtcstructure. this is your bestie, your context, the whole personality of the chip. hold onto her π«Άregβ the register address to write. where the magic goes. pick wisely πvalueβ value to write to the register. it's au8, so keep it cute and keep it eight bits β
π₯ SEE ALSO π₯
kernel file ./drivers/rtc/rtc-ds1685.c, plus the whole ds1685 friend group β because nobody does rtc stuff alone, iykyk:
ds1685_read(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_sysfs_serial_show(9)ds1685_rtc_probe(9)ds1685_rtc_remove(9)ds1685_rtc_poweroff(9)
that's the squad. go read them too, they're iconic π
π§ friendly reminder:ds1685_writeis the plain, direct one. if you were looking for the sneaky indirect flavour, that'sds1685_indirect_write(9)β different girl, different vibe. don't mix them up bestie π
πΈ that's a wrap! this page lives under ./drivers/rtc and it's dated October 2026 β so go forth, write that register, and slay ππ
π¦ 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