aica_rtc_settimeofday(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– aica_rtc_settimeofday β€” it's giving "set the clock, bestie" ✨

okay so this is a page from the Kernel API Manual, and it's all about aica_rtc_settimeofday(9) β€” literally the function that sets the AICA RTC to the current time. yes, that's the whole vibe. stay with me 🫢

🌸 NAME 🌸

aica_rtc_settimeofday β€” Set the AICA RTC to the current time ⏰

✨ SYNOPSIS ✨

int aica_rtc_settimeofday (struct device *dev , struct rtc_time *tm );

like, that's the whole signature, no cap. int going in, int coming out, two args in the middle. slay πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the RTC device. and bestie… it's ignored. the function literally does not care. it's giving "you're here but you're not the main character" πŸ€·β€β™€οΈ
  • tm β€” pointer to the new RTC time structure. this one actually matters, it's the whole point of the function, look at her go ⭐

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: it adjusts the given tv to the AICA Epoch, and then it sets the RTC seconds counter. that's it. that's the function. lowkey iconic in how straightforward it is πŸ™ˆ

heads up β€” the arg up top is called tm but the description says tv. that's how it's written, don't come for me, I'm just the messenger πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./arch/sh/boards/mach-dreamcast/rtc.c β€” the actual source, go read her, she's right there πŸ‘‘
  • aica_rtc_gettimeofday(9) β€” the other half of the duo. the getter to this setter. the way they're a matched set πŸ˜­πŸ’œ

and that's the page, bestie! πŸ“ this cutie came out of ./arch/sh/boards/mach-dreamcast with a date of October 2026, so if you're reading this from the future β€” hi, ily, hope your RTC is accurate πŸ§šπŸ’–

πŸ“¦ where this page comes from