ds1685_indirect_read(9)
β¨ NAME β¨
ds1685_indirect_read β bestie, this is the little guy that reads a value from an rtc register π
Yeah so we're in the Kernel API Manual today, and this is his moment. Periodt.
π SYNOPSIS π
u8 ds1685_indirect_read (struct ds1685_priv *rtc , int reg );
Like, that's the whole vibe. It takes two things and hands you back a u8. Iconic.
π¦ ARGUMENTS π¦
rtcβ a pointer to theds1685rtc structure. Yes bestie, the structure. The one with all the lore. You gotta hand him the actualstruct ds1685_priv *or he literally cannot function πregβ the register address to read. That's the spot you're snooping on. Give him the address, he goes and gets the tea π
Lowkey the whole job is "tell me where, I'll tell you what's there." Fr fr. No cap. π
π SEE ALSO π
Everything is family here, so let's shout out the whole crew π«Ά The Kernel file lives at ./drivers/rtc/rtc-ds1685.c, and these are all the cousins:
ds1685_read(9)ds1685_write(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)
Okay that's the whole page, you ate that π β¨
Little sign-off from the source, since you gotta cite your sources bestie: this one comes from ./drivers/rtc, dated October 2026. 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