ds1685_rtc_b..._data_access(9)
π ds1685_rtc_begin_data_access β NAME π
Okay so bestie, this is ds1685_rtc_begin_data_access β it literally preps the rtc so you can actually get at its data. Like, it sets the whole thing up so data access can happen. Periodt. β¨
(Also hi, you're reading the ds1685_rtc_b..._data_access(9) page from the Kernel API Manual β the truncated-name thing is so real, iykyk π«Ά)
πΈ SYNOPSIS πΈ
void ds1685_rtc_begin_data_access (struct ds1685_priv *rtc );
No return value, she just does the thing. π
π ARGUMENTS π
rtcβ a pointer to theds1685rtc structure. That's your girl. π¦
β¨ DESCRIPTION β¨
So to get/set time and alarm values out of the rtc registers, you can't just waltz in there β this function takes several steps to prepare the rtc for that access. It's giving getting-ready-with-me, but for hardware. Obsessed. π§
Here's the whole routine, in order:
- Sets the
SETbit in Control Register B. β - Reads Ext Control Register
4Aand checks theINCRbit. π - If
INCRis active, a short delay is added before Ext Control Register4Ais read again, in a loop, untilINCRis inactive. She will wait for it, no cap. β³ - Switches the rtc to bank 1. This is the iconic part β it's what lets you access all the relevant data for normal rtc operation, because bank 0 contains only the nvram. Bank 0 is lowkey just the nvram shelf. ποΈβ¨
π SEE ALSO π
The whole squad, all present and accounted for π:
Kernel file ./drivers/rtc/rtc-ds1685.c
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_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)
Heads up bestie: if you opened this page expecting ds1685_rtc_end_data_access, that's a whole other function β she's in the SEE ALSO list above, go say hi π«Ά
Okay that's the page!! Mwah π This one lives in ./drivers/rtc, and the version stamp says October 2026 β so like, future vibes only. Go forth and access your data responsibly, icon. ππ
π¦ 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