Searched refs:which_clock (Results 1 – 5 of 5) sorted by relevance
/kernel/time/ |
D | posix-stubs.c | 60 SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument 65 if (which_clock != CLOCK_REALTIME) in SYSCALL_DEFINE2() 73 static int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) in do_clock_gettime() argument 75 switch (which_clock) { in do_clock_gettime() 94 SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument 100 ret = do_clock_gettime(which_clock, &kernel_tp); in SYSCALL_DEFINE2() 109 SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, struct __kernel_timespec __user *, tp) in SYSCALL_DEFINE2() argument 116 switch (which_clock) { in SYSCALL_DEFINE2() 128 SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags, in SYSCALL_DEFINE4() argument 135 switch (which_clock) { in SYSCALL_DEFINE4() [all …]
|
D | posix-timers.c | 170 static int posix_get_realtime_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_timespec() argument 176 static ktime_t posix_get_realtime_ktime(clockid_t which_clock) in posix_get_realtime_ktime() argument 182 static int posix_clock_realtime_set(const clockid_t which_clock, in posix_clock_realtime_set() argument 188 static int posix_clock_realtime_adj(const clockid_t which_clock, in posix_clock_realtime_adj() argument 197 static int posix_get_monotonic_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_timespec() argument 204 static ktime_t posix_get_monotonic_ktime(clockid_t which_clock) in posix_get_monotonic_ktime() argument 212 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_raw() argument 220 static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_coarse() argument 226 static int posix_get_monotonic_coarse(clockid_t which_clock, in posix_get_monotonic_coarse() argument 234 static int posix_get_coarse_res(const clockid_t which_clock, struct timespec64 *tp) in posix_get_coarse_res() argument [all …]
|
D | posix-timers.h | 5 int (*clock_getres)(const clockid_t which_clock, 7 int (*clock_set)(const clockid_t which_clock, 10 int (*clock_get_timespec)(const clockid_t which_clock, 13 ktime_t (*clock_get_ktime)(const clockid_t which_clock); 14 int (*clock_adj)(const clockid_t which_clock, struct __kernel_timex *tx); 16 int (*nsleep)(const clockid_t which_clock, int flags,
|
D | posix-cpu-timers.c | 160 posix_cpu_clock_getres(const clockid_t which_clock, struct timespec64 *tp) in posix_cpu_clock_getres() argument 162 int error = validate_clock_permissions(which_clock); in posix_cpu_clock_getres() 167 if (CPUCLOCK_WHICH(which_clock) == CPUCLOCK_SCHED) { in posix_cpu_clock_getres() 1502 static int do_cpu_nanosleep(const clockid_t which_clock, int flags, in do_cpu_nanosleep() argument 1515 timer.it_clock = which_clock; in do_cpu_nanosleep() 1593 static int posix_cpu_nsleep(const clockid_t which_clock, int flags, in posix_cpu_nsleep() argument 1602 if (CPUCLOCK_PERTHREAD(which_clock) && in posix_cpu_nsleep() 1603 (CPUCLOCK_PID(which_clock) == 0 || in posix_cpu_nsleep() 1604 CPUCLOCK_PID(which_clock) == task_pid_vnr(current))) in posix_cpu_nsleep() 1607 error = do_cpu_nanosleep(which_clock, flags, rqtp); in posix_cpu_nsleep() [all …]
|
D | alarmtimer.c | 677 static int alarm_clock_getres(const clockid_t which_clock, struct timespec64 *tp) in alarm_clock_getres() argument 694 static int alarm_clock_get_timespec(clockid_t which_clock, struct timespec64 *tp) in alarm_clock_get_timespec() argument 696 struct alarm_base *base = &alarm_bases[clock2alarm(which_clock)]; in alarm_clock_get_timespec() 712 static ktime_t alarm_clock_get_ktime(clockid_t which_clock) in alarm_clock_get_ktime() argument 714 struct alarm_base *base = &alarm_bases[clock2alarm(which_clock)]; in alarm_clock_get_ktime() 844 static int alarm_timer_nsleep(const clockid_t which_clock, int flags, in alarm_timer_nsleep() argument 847 enum alarmtimer_type type = clock2alarm(which_clock); in alarm_timer_nsleep() 871 exp = timens_ktime_to_host(which_clock, exp); in alarm_timer_nsleep()
|