read_persistent_clock64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– read_persistent_clock64 πŸ’–

okay bestie, this one’s straight out of the Kernel API Manual, and it’s a tiny timekeeping page with a whole lot of SEE ALSO energy. ✨


🌸 NAME 🌸

read_persistent_clock64 β€” Return time from the persistent clock.

πŸŽ€ SYNOPSIS πŸŽ€

void read_persistent_clock64 (struct timespec64 *ts );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • ts β€” Pointer to the storage for the readout value. that’s literally where the readout goes πŸ’…

✨ DESCRIPTION ✨

okay so real talk: this is a weak dummy function for arches that do not yet support it. No cap. It reads the time from the battery backed persistent clock. πŸ’–

It returns a timespec with tv_sec=0 and tv_nsec=0 if unsupported. 😭

⚠️ also the page literally says: XXX - Do be sure to remove it once all arches implement it. so like… don’t get too attached, bestie πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./kernel/time/timekeeping.c, plus this whole iconic timekeeping group chat:


that’s the page, bestie 🫢 β€” source/version ./kernel/time, dated October 2026, for read_persistent_clock64(9). mwah πŸ’‹

πŸ“¦ where this page comes from