Searched refs:rtc_fd (Results 1 - 1 of 1) sorted by relevance

/external/qemu/
H A Dqemu-timer.c959 int rtc_fd; local
962 TFR(rtc_fd = open("/dev/rtc", O_RDONLY));
963 if (rtc_fd < 0)
965 ioctl(rtc_fd, RTC_IRQP_READ, &current_rtc_freq);
967 ioctl(rtc_fd, RTC_IRQP_SET, RTC_FREQ) < 0) {
973 if (ioctl(rtc_fd, RTC_PIE_ON, 0) < 0) {
975 close(rtc_fd);
979 enable_sigio_timer(rtc_fd);
981 t->fd = rtc_fd;
988 int rtc_fd local
[all...]

Completed in 156 milliseconds