STRUCT EC_RTC_WRITE_REQUEST(9)
โจ struct ec_rtc_write_request(9) โจ
okay so bestie, welcome to the Kernel API Manual page for struct ec_rtc_write_request โ like, yes it lives in section 9, and yes it's a struct, we love that for us ๐
๐ NAME ๐
struct ec_rtc_write_request โ it's literally the format of the RTC that gets sent to the EC. that's the whole vibe. no cap. ๐ธ
๐ฆ SYNOPSIS ๐ฆ
here's the whole thing, character for character, because we do not paraphrase struct definitions in this house ๐
struct ec_rtc_write_request {
u8 command;
u8 reserved;
u8 param;
u8 century;
u8 year;
u8 month;
u8 day;
u8 hour;
u8 minute;
u8 second;
u8 weekday;
};
๐ Members ๐
okay so let's meet the cast, one field at a time, main character energy only:
commandโ alwaysEC_COMMAND_CMOS. no notes. it's giving consistency โจreservedโ an unused byte. it's just sitting there, being decorative, literally the wallflower of the struct ๐ซถparamโ alwaysEC_CMOS_TOD_WRITE. iconic, unchanging, periodt.centuryโ the century value, which isfull year / 100. math but make it cute ๐งฎyearโ the year value, akafull year % 100. the mod girlie of the group ๐ญmonthโ month value, range1..12๐dayโ day value, range1..31๐ธhourโ hour value, range0..23โญminuteโ minute value, range0..59๐secondโ second value, range0..59๐ฆweekdayโ day of the week, and heads up bestie, it's0=Saturday๐ like, not Sunday. Saturday. iykyk ๐
๐ Description ๐
so the one thing you have to remember: all values are presented in BCD. that's it, that's the tea. lowkey important, don't forget it ๐
๐ฅ SEE ALSO ๐ฅ
go poke around these, bestie:
- Kernel file
./drivers/rtc/rtc-wilco-ec.c struct ec_rtc_read_response(9)โ yes there's a read one too, we stan a matching set ๐
and that's the page!! ๐ง this lil treat comes to you from ./drivers/rtc, dated October 2026, under the Kernel API Manual umbrella โ struct ec_rtc_write_request(9) out, mwah, slay, bye bestie ๐โจ
๐ฆ 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