mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 21:15:07 -05:00
rtc: export RTC_Linux_{SwitchInterrupt,CheckInterrupt}
We have code to enable and disable the RTC's UIE interrupt, as well as check whether it occurred and skip the first interrupt as it may be bogus. This is currently used as part of maintaining the correction file. In a later commit, we will need the same functionality for using the RTC as reference clock, so export the functions and give them descriptive names appropriate for globally visible functions.
This commit is contained in:
committed by
Miroslav Lichvar
parent
68301238a0
commit
8028984f34
@@ -42,4 +42,7 @@ extern int RTC_Linux_Trim(void);
|
||||
|
||||
extern void RTC_Linux_CycleLogFile(void);
|
||||
|
||||
extern int RTC_Linux_SwitchInterrupt(int fd, int on_off);
|
||||
extern int RTC_Linux_CheckInterrupt(int fd);
|
||||
|
||||
#endif /* _GOT_RTC_LINUX_H */
|
||||
|
||||
Reference in New Issue
Block a user