Lines Matching refs:tmr
81 void set_timespec(struct timespec *tmr, unsigned long long ustime) in set_timespec() argument
84 tmr->tv_sec = (time_t) (ustime / 1000000ULL); in set_timespec()
85 tmr->tv_nsec = (long)(1000ULL * (ustime % 1000000ULL)); in set_timespec()
140 struct itimerspec tmr; in main() local
161 set_timespec(&tmr.it_value, 500 * 1000); in main()
162 set_timespec(&tmr.it_interval, 0); in main()
170 if (timerfd_settime(tfd, 0, &tmr, NULL)) { in main()
186 set_timespec(&tmr.it_value, tnow + 500 * 1000); in main()
187 set_timespec(&tmr.it_interval, 0); in main()
188 if (timerfd_settime(tfd, TFD_TIMER_ABSTIME, &tmr, NULL)) { in main()
204 set_timespec(&tmr.it_value, tnow + 100 * 1000); in main()
205 set_timespec(&tmr.it_interval, 100 * 1000); in main()
206 if (timerfd_settime(tfd, TFD_TIMER_ABSTIME, &tmr, NULL)) { in main()
213 if (timerfd_gettime(tfd, &tmr)) { in main()
219 (long)tmr.it_value.tv_sec, (long)tmr.it_value.tv_nsec, in main()
220 (long)tmr.it_interval.tv_sec, in main()
221 (long)tmr.it_interval.tv_nsec); in main()
236 set_timespec(&tmr.it_value, 100 * 1000); in main()
237 set_timespec(&tmr.it_interval, 0); in main()
238 if (timerfd_settime(tfd, 0, &tmr, NULL)) { in main()