ds1685_rtc_check_mday(9)
okay bestie π you're reading ds1685_rtc_check_mday(9) from the Kernel API Manual, and it's literally the tiny function that checks whether the day of the month is valid. iconic β¨
π NAME π
ds1685_rtc_check_mday β check validity of the day of month. periodt π
β¨ SYNOPSIS β¨
int ds1685_rtc_check_mday (struct ds1685_priv *rtc , u8 mday );
π«Ά ARGUMENTS π«Ά
rtcβ pointer to the ds1685 rtc structure. main character struct energy.mdayβ day of month. the number getting vibe-checked πΈ
π DESCRIPTION π
Okay so bestie, here's the tea: this function returns -EDOM if the day of month is not within 1..31 range. If mday is outside that 1..31 window, it's giving -EDOM, no cap. That's the documented behavior β slay, simple, done. πβ¨
π SEE ALSO π
Kernel file to peek at: ./drivers/rtc/rtc-ds1685.c (the source file, iykyk). The whole squad:
ds1685_read(9)ds1685_write(9)ds1685_indirect_read(9)ds1685_indirect_write(9)ds1685_rtc_bcd2bin(9)ds1685_rtc_bin2bcd(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)
sending love from ./drivers/rtc, dated October 2026 β ds1685_rtc_check_mday(9) is out π
β¨
π¦ 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