hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/kernel/time/posix-timers.h
....@@ -6,9 +6,12 @@
66 struct timespec64 *tp);
77 int (*clock_set)(const clockid_t which_clock,
88 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);
1215 int (*timer_create)(struct k_itimer *timer);
1316 int (*nsleep)(const clockid_t which_clock, int flags,
1417 const struct timespec64 *);
....@@ -24,6 +27,7 @@
2427 int (*timer_try_to_cancel)(struct k_itimer *timr);
2528 void (*timer_arm)(struct k_itimer *timr, ktime_t expires,
2629 bool absolute, bool sigev_none);
30
+ void (*timer_wait_running)(struct k_itimer *timr);
2731 };
2832
2933 extern const struct k_clock clock_posix_cpu;