rtc_read_time

The interface has the following parameters.
  • Syntax:
    int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm)
  • Description: The function is used to read RTC time information from a specific RTC device.
  • Parameter:
    • rtc: The target RTC device.
    • tm: The location where RTC time information is stored.
  • Return:
    • Success: 0.
    • Failure: Error code.