rtc_read_offset(9)
β¨ 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 gives0, error gives a negative number, and a missingread_offsetimplementation gives-EINVALπ
π SEE ALSO π
Kernel file: ./drivers/rtc/interface.c π and these absolute icons:
rtc_read_next_alarm(9)rtc_handle_legacy_irq(9)rtc_aie_update_irq(9)rtc_uie_update_irq(9)rtc_pie_update_irq(9)rtc_update_irq(9)rtc_irq_set_state(9)rtc_irq_set_freq(9)rtc_timer_enqueue(9)rtc_timer_remove(9)rtc_timer_do_work(9)rtc_set_offset(9)
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
- 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