ds1685_rtc_check_mday(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:

sending love from ./drivers/rtc, dated October 2026 β€” ds1685_rtc_check_mday(9) is out πŸ’…βœ¨

πŸ“¦ where this page comes from