rx6110_set_time(9)
π NAME π
hey bestie, welcome to rx6110_set_time(9) from the Kernel API Manual β this is the function that puts the current date and time into the rx6110βs registers β¨
πΈ SYNOPSIS πΈ
int rx6110_set_time (struct device *dev , struct rtc_time *tm );
π ARGUMENTS π
devβ the rtc device thatβs in use for this whole situation π«Άtmβ carries the date and time youβre handing over π
π¦ DESCRIPTION π¦
okay so hereβs the plot twist, and itβs a BUG bestie π the hardware (HW) assumes every year that is a multiple of 4 is a leap year. the next time that assumption is wrong is 2100, because 2100 will not be a leap year π
π NOTE π
hereβs the tea: if STOP is not set/cleared, the clock will start when the seconds register is written π donβt say I didnβt warn you π«Ά
π SEE ALSO π
- Kernel file
./drivers/rtc/rtc-rx6110.cβ the main character file, fr fr rx6110_rtc_tm_to_data(9)rx6110_data_to_rtc_tm(9)rx6110_get_time(9)rx6110_init(9)rx6110_spi_probe(9)
kisses and sparkles from source/version ./drivers/rtc π dated October 2026 π
β¨
π¦ 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