mc146818_get_time(9)
π
mc146818_get_time(9) π
hiii bestie π«Ά welcome to the Kernel API Manual!!! This is the page for mc146818_get_time, and itβs literally about getting the current time from the RTC. Not me being obsessed with a clock, but here we are. β¨
πΈ NAME πΈ
mc146818_get_timeβ Get the current time from the RTC.
β¨ SYNOPSIS β¨
okay so the signature is right here, character for character, no cap:
int mc146818_get_time (struct rtc_time *time , int timeout );
π ARGUMENTS π
timeβ pointer tostruct rtc_timeto store the current time.timeoutβ timeout value in ms.
π¦ DESCRIPTION π¦
So basically, this function reads the current time from the RTC and stores it in the provided struct rtc_time. Thatβs the whole vibe. The timeout parameter specifies the maximum time to wait for the RTC to become ready. Like, give the RTC a sec to get its life together, but only up to timeout ms. β³
π₯ RETURN π₯
0on success. slay. π-ETIMEDOUTif the RTC did not become ready within the specified timeout. oopβtimeout behavior, bestie.- or another error code if an error occurred. iykyk, errors happen. π
π SEE ALSO π
- Kernel file
./drivers/rtc/rtc-mc146818-lib.cβ go read the source, itβs right there. πβ¨
xoxo π this page is from the ./drivers/rtc source, dated October 2026, and itβs all mc146818_get_time(9) energy. mwah π
π¦ 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