rtc_read_offset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to rtc_read_offset(9) from the Kernel API Manual πŸ’… this page is literally about one thing: reading the amount of rtc offset in parts per billion. That's the name, that's the assignment, periodt.

rtc_read_offset β€” Read the amount of rtc offset in parts per billion 🌸

πŸ› οΈ SYNOPSIS πŸ› οΈ

int rtc_read_offset (struct rtc_device *rtc , long *offset );

πŸŽ€ ARGUMENTS πŸŽ€

  • rtc β€” the rtc device to be used 🫢
  • offset β€” the offset in parts per billion ✨

πŸ’– DESCRIPTION πŸ’–

The original literally says β€œsee below for details.” and honestly? iconic. So here is the below, bestie 😭

This is the kernel interface to read rtc clock offset. It returns 0 on success, or a negative number on error. If read_offset is not implemented for the rtc, return -EINVAL 🚨

no cap, that's the whole behavior check: success gives 0, error gives a negative number, and a missing read_offset implementation gives -EINVAL πŸ’€

🌈 SEE ALSO 🌈

Kernel file: ./drivers/rtc/interface.c πŸ‘‘ and these absolute icons:


that's the whole page, mwah πŸ’‹ this cutie was brought to you by ./drivers/rtc, October 2026, and it's the rtc_read_offset(9) page from the Kernel API Manual πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from