ds1685_read(9)
π ds1685_read(9) β Kernel API Manual β¨
Okay bestie, welcome to ds1685_read(9) β a page straight out of the Kernel API Manual and honestly it's giving "small but mighty." This is the little function that goes and fetches a byte out of an rtc register for you, and likeβ¦ that's it. That's the whole vibe. π
β¨ NAME β¨
ds1685_read β read a value from an rtc register.
No cap, that's literally the entire job. It reads one value. One. From a register. Slay.
πΈ SYNOPSIS πΈ
u8 ds1685_read (struct ds1685_priv *rtc , int reg );
Look at it. Iconic. A u8 coming back out, two args going in. Chef's kiss. π
π¦ ARGUMENTS π¦
rtcβ pointer to the ds1685 rtc structure. That's your main character struct right there, bestie β it's the thing holding all the ds1685 context together. π«Άregβ the register address to read. Like, the exact spot you're pointing at. You want the byte from here, you pass this. π
π SEE ALSO π
This is the group chat, fr fr β every one of these is in it, and you can find them all hanging out in the kernel file ./drivers/rtc/rtc-ds1685.c:
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_sysfs_serial_show(9)ds1685_rtc_probe(9)ds1685_rtc_remove(9)ds1685_rtc_poweroff(9)
That's a whole friend group and every single one of them is linked above, exactly as listed. Go read them, iykyk. π
And that's the page, bestie! π
Little sign-off from the source: this one lives in./drivers/rtc, dated October 2026, and the page itself isds1685_read(9). Periodt. ππ
π¦ 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