rtc_read_offset

The interface has the following parameters.
  • Syntax:
    int rtc_read_offset(struct rtc_device *rtc, long *offset)
  • Description: The function is used to read the count of RTC offset in parts per billion.
  • Parameter:
    • rtc: The target RTC device.
    • offset: The offset in parts per billion.
  • Return:
    • Success: 0.
    • Failure: Error code.