1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 #define TIMER_RETRY 1 3 4 struct k_clock { 5 int (*clock_getres)(const clockid_ 6 struct timespe 7 int (*clock_set)(const clockid_t w 8 const struct time 9 /* Returns the clock value in the curr 10 int (*clock_get_timespec)(const cl 11 struct t 12 /* Returns the clock value in the root 13 ktime_t (*clock_get_ktime)(const clock 14 int (*clock_adj)(const clockid_t w 15 int (*timer_create)(struct k_itime 16 int (*nsleep)(const clockid_t whic 17 const struct timespe 18 int (*timer_set)(struct k_itimer * 19 struct itimerspec 20 struct itimerspec 21 int (*timer_del)(struct k_itimer * 22 void (*timer_get)(struct k_itimer * 23 struct itimerspec 24 void (*timer_rearm)(struct k_itimer 25 s64 (*timer_forward)(struct k_itim 26 ktime_t (*timer_remaining)(struct k_it 27 int (*timer_try_to_cancel)(struct 28 void (*timer_arm)(struct k_itimer * 29 bool absolute, bo 30 void (*timer_wait_running)(struct k 31 }; 32 33 extern const struct k_clock clock_posix_cpu; 34 extern const struct k_clock clock_posix_dynami 35 extern const struct k_clock clock_process; 36 extern const struct k_clock clock_thread; 37 extern const struct k_clock alarm_clock; 38 39 int posix_timer_queue_signal(struct k_itimer * 40 41 void common_timer_get(struct k_itimer *timr, s 42 int common_timer_set(struct k_itimer *timr, in 43 struct itimerspec64 *new_ 44 struct itimerspec64 *old_ 45 void posix_timer_set_common(struct k_itimer *t 46 int common_timer_del(struct k_itimer *timer); 47
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.