rtc_set_time

The interface has the following parameters.
  • Syntax:
    int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm)
  • Description: The function is used to set RTC time information on 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.