STRUCT CROS_EC_RTC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 a u32, 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