Lines Matching refs:clock_id

53 int clock_id;  variable
102 clock_gettime(clock_id, &ts); in sigalarm()
118 clockstring(clock_id), in describe_timer()
123 int setup_timer(int clock_id, int flags, int interval, timer_t *tm1) in setup_timer() argument
139 err = timer_create(clock_id, &se, tm1); in setup_timer()
141 if ((clock_id == CLOCK_REALTIME_ALARM) || in setup_timer()
142 (clock_id == CLOCK_BOOTTIME_ALARM)) { in setup_timer()
144 clockstring(clock_id), in setup_timer()
149 printf("%s - timer_create() failed\n", clockstring(clock_id)); in setup_timer()
153 clock_gettime(clock_id, &start_time); in setup_timer()
166 printf("%s - timer_settime() failed\n", clockstring(clock_id)); in setup_timer()
210 int do_timer(int clock_id, int flags) in do_timer() argument
216 err = setup_timer(clock_id, flags, interval, &tm1); in do_timer()
228 int do_timer_oneshot(int clock_id, int flags) in do_timer_oneshot() argument
235 err = setup_timer(clock_id, flags, interval, &tm1); in do_timer_oneshot()
265 for (clock_id = 0; clock_id < NR_CLOCKIDS; clock_id++) { in main()
267 if ((clock_id == CLOCK_PROCESS_CPUTIME_ID) || in main()
268 (clock_id == CLOCK_THREAD_CPUTIME_ID) || in main()
269 (clock_id == CLOCK_MONOTONIC_RAW) || in main()
270 (clock_id == CLOCK_REALTIME_COARSE) || in main()
271 (clock_id == CLOCK_MONOTONIC_COARSE) || in main()
272 (clock_id == CLOCK_HWSPECIFIC)) in main()
275 ret |= do_timer(clock_id, TIMER_ABSTIME); in main()
276 ret |= do_timer(clock_id, 0); in main()
277 ret |= do_timer_oneshot(clock_id, TIMER_ABSTIME); in main()
278 ret |= do_timer_oneshot(clock_id, 0); in main()