STRUCT CROS_EC_RTC(9)
β¨ struct cros_ec_rtc(9) β¨
okay so bestie, welcome to the kernel API manual for struct cros_ec_rtc β it's giving "driver data for EC RTC" and honestly? iconic. π
this is the lil struct that holds everything the EC RTC driver needs to keep track of, and we're gonna walk through every single member together, no cap. π«Ά
πΈ NAME πΈ
struct cros_ec_rtc β driver data for EC RTC π
β¨ SYNOPSIS β¨
struct cros_ec_rtc {
struct cros_ec_device *cros_ec;
struct rtc_device *rtc;
struct notifier_block notifier;
u32 saved_alarm;
};
that's the whole vibe right there β four members, zero drama, absolutely slaying. π₯
π Members π
cros_ecβ pointer to the EC device. your main character pointer, fr fr. π§rtcβ pointer to the RTC device. the other half of the duo, we love a partnership. πnotifierβ notifier info for responding to EC events. it's the lil listener that's always ready to catch what the EC is throwing at it. πsaved_alarmβ the alarm to restore when interrupts are reenabled. not me keeping your alarm safe while you're asleep π this one's au32, and it's holding onto that value so nothing gets lost when the interrupts come back. π
real talk: saved_alarm is the one doing quiet emotional labor here β it exists specifically to be restored when interrupts are reenabled, so don't sleep on it. πΈ
π SEE ALSO π
kernel file ./drivers/rtc/rtc-cros-ec.c β go read it, bestie, it's literally where this whole struct lives. iykyk. β¨
and that's the whole page!! π¦ this was the struct cros_ec_rtc(9) entry from the Kernel API Manual, source path ./drivers/rtc, dated October 2026 β go forth and driver-data responsibly, bestie, 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