Searched refs:rtc_fd (Results 1 – 1 of 1) sorted by relevance
/external/ltp/testcases/kernel/device-drivers/rtc/ |
D | rtc01.c | 38 int rtc_fd = -1; variable 71 ret = ioctl(rtc_fd, RTC_RD_TIME, &rtc_tm); in read_alarm_test() 100 ret = ioctl(rtc_fd, RTC_ALM_SET, &rtc_tm); in read_alarm_test() 110 ret = ioctl(rtc_fd, RTC_ALM_READ, &rtc_tm); in read_alarm_test() 124 ret = ioctl(rtc_fd, RTC_AIE_ON, 0); in read_alarm_test() 136 FD_SET(rtc_fd, &rfds); in read_alarm_test() 138 ret = select(rtc_fd + 1, &rfds, NULL, NULL, &tv); /*wait for alarm */ in read_alarm_test() 144 ret = read(rtc_fd, &data, sizeof(unsigned long)); in read_alarm_test() 156 ret = ioctl(rtc_fd, RTC_AIE_OFF, 0); in read_alarm_test() 178 ret = ioctl(rtc_fd, RTC_UIE_ON, 0); in update_interrupts_test() [all …]
|