rtc_set_alarm
The interface has the following parameters.
- Syntax:
int rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)
- Description: The function is used to set alarm time on a specific RTC device.
- Parameter:
- rtc: The target RTC device.
- alarm: The location where alarm time is stored.
- Return:
- Success: 0.
- Failure: Error code.