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:
Ahmad Fatoum
2024-07-15 22:23:09 +02:00
committed by Miroslav Lichvar
parent 68301238a0
commit 8028984f34
2 changed files with 64 additions and 54 deletions

View File

@@ -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 */