.. | .. |
---|
6 | 6 | struct timespec64 *tp); |
---|
7 | 7 | int (*clock_set)(const clockid_t which_clock, |
---|
8 | 8 | const struct timespec64 *tp); |
---|
9 | | - int (*clock_get)(const clockid_t which_clock, |
---|
10 | | - struct timespec64 *tp); |
---|
11 | | - int (*clock_adj)(const clockid_t which_clock, struct timex *tx); |
---|
| 9 | + /* Returns the clock value in the current time namespace. */ |
---|
| 10 | + int (*clock_get_timespec)(const clockid_t which_clock, |
---|
| 11 | + struct timespec64 *tp); |
---|
| 12 | + /* Returns the clock value in the root time namespace. */ |
---|
| 13 | + ktime_t (*clock_get_ktime)(const clockid_t which_clock); |
---|
| 14 | + int (*clock_adj)(const clockid_t which_clock, struct __kernel_timex *tx); |
---|
12 | 15 | int (*timer_create)(struct k_itimer *timer); |
---|
13 | 16 | int (*nsleep)(const clockid_t which_clock, int flags, |
---|
14 | 17 | const struct timespec64 *); |
---|
.. | .. |
---|
24 | 27 | int (*timer_try_to_cancel)(struct k_itimer *timr); |
---|
25 | 28 | void (*timer_arm)(struct k_itimer *timr, ktime_t expires, |
---|
26 | 29 | bool absolute, bool sigev_none); |
---|
| 30 | + void (*timer_wait_running)(struct k_itimer *timr); |
---|
27 | 31 | }; |
---|
28 | 32 | |
---|
29 | 33 | extern const struct k_clock clock_posix_cpu; |
---|
.. | .. |
---|
31 | 35 | extern const struct k_clock clock_process; |
---|
32 | 36 | extern const struct k_clock clock_thread; |
---|
33 | 37 | extern const struct k_clock alarm_clock; |
---|
34 | | - |
---|
35 | | -extern void cpu_timers_grab_expiry_lock(struct k_itimer *timer); |
---|
36 | 38 | |
---|
37 | 39 | int posix_timer_event(struct k_itimer *timr, int si_private); |
---|
38 | 40 | |
---|