which_clock 575 arch/sparc/kernel/sys_sparc_64.c SYSCALL_DEFINE2(sparc_clock_adjtime, const clockid_t, which_clock,struct timex __user *, txc_p) which_clock 601 arch/sparc/kernel/sys_sparc_64.c ret = do_clock_adjtime(which_clock, kt); which_clock 681 include/linux/compat.h asmlinkage long compat_sys_timer_create(clockid_t which_clock, which_clock 375 include/linux/hrtimer.h extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock, which_clock 381 include/linux/hrtimer.h extern void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t which_clock, which_clock 390 include/linux/hrtimer.h clockid_t which_clock, which_clock 393 include/linux/hrtimer.h hrtimer_init(timer, which_clock, mode); which_clock 611 include/linux/syscalls.h asmlinkage long sys_timer_create(clockid_t which_clock, which_clock 621 include/linux/syscalls.h asmlinkage long sys_clock_settime(clockid_t which_clock, which_clock 623 include/linux/syscalls.h asmlinkage long sys_clock_gettime(clockid_t which_clock, which_clock 625 include/linux/syscalls.h asmlinkage long sys_clock_getres(clockid_t which_clock, which_clock 627 include/linux/syscalls.h asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags, which_clock 635 include/linux/syscalls.h asmlinkage long sys_clock_settime32(clockid_t which_clock, which_clock 637 include/linux/syscalls.h asmlinkage long sys_clock_gettime32(clockid_t which_clock, which_clock 639 include/linux/syscalls.h asmlinkage long sys_clock_getres_time32(clockid_t which_clock, which_clock 641 include/linux/syscalls.h asmlinkage long sys_clock_nanosleep_time32(clockid_t which_clock, int flags, which_clock 928 include/linux/syscalls.h asmlinkage long sys_clock_adjtime(clockid_t which_clock, which_clock 930 include/linux/syscalls.h asmlinkage long sys_clock_adjtime32(clockid_t which_clock, which_clock 155 include/linux/timex.h extern int do_clock_adjtime(const clockid_t which_clock, struct __kernel_timex * ktx); which_clock 658 kernel/time/alarmtimer.c static int alarm_clock_getres(const clockid_t which_clock, struct timespec64 *tp) which_clock 675 kernel/time/alarmtimer.c static int alarm_clock_get(clockid_t which_clock, struct timespec64 *tp) which_clock 677 kernel/time/alarmtimer.c struct alarm_base *base = &alarm_bases[clock2alarm(which_clock)]; which_clock 805 kernel/time/alarmtimer.c static int alarm_timer_nsleep(const clockid_t which_clock, int flags, which_clock 808 kernel/time/alarmtimer.c enum alarmtimer_type type = clock2alarm(which_clock); which_clock 163 kernel/time/posix-cpu-timers.c posix_cpu_clock_getres(const clockid_t which_clock, struct timespec64 *tp) which_clock 165 kernel/time/posix-cpu-timers.c int error = validate_clock_permissions(which_clock); which_clock 170 kernel/time/posix-cpu-timers.c if (CPUCLOCK_WHICH(which_clock) == CPUCLOCK_SCHED) { which_clock 1219 kernel/time/posix-cpu-timers.c static int do_cpu_nanosleep(const clockid_t which_clock, int flags, which_clock 1232 kernel/time/posix-cpu-timers.c timer.it_clock = which_clock; which_clock 1317 kernel/time/posix-cpu-timers.c static int posix_cpu_nsleep(const clockid_t which_clock, int flags, which_clock 1326 kernel/time/posix-cpu-timers.c if (CPUCLOCK_PERTHREAD(which_clock) && which_clock 1327 kernel/time/posix-cpu-timers.c (CPUCLOCK_PID(which_clock) == 0 || which_clock 1328 kernel/time/posix-cpu-timers.c CPUCLOCK_PID(which_clock) == task_pid_vnr(current))) which_clock 1331 kernel/time/posix-cpu-timers.c error = do_cpu_nanosleep(which_clock, flags, rqtp); which_clock 1339 kernel/time/posix-cpu-timers.c restart_block->nanosleep.clockid = which_clock; which_clock 1346 kernel/time/posix-cpu-timers.c clockid_t which_clock = restart_block->nanosleep.clockid; which_clock 1351 kernel/time/posix-cpu-timers.c return do_cpu_nanosleep(which_clock, TIMER_ABSTIME, &t); which_clock 1357 kernel/time/posix-cpu-timers.c static int process_cpu_clock_getres(const clockid_t which_clock, which_clock 1362 kernel/time/posix-cpu-timers.c static int process_cpu_clock_get(const clockid_t which_clock, which_clock 1372 kernel/time/posix-cpu-timers.c static int process_cpu_nsleep(const clockid_t which_clock, int flags, which_clock 1377 kernel/time/posix-cpu-timers.c static int thread_cpu_clock_getres(const clockid_t which_clock, which_clock 1382 kernel/time/posix-cpu-timers.c static int thread_cpu_clock_get(const clockid_t which_clock, which_clock 59 kernel/time/posix-stubs.c SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, which_clock 64 kernel/time/posix-stubs.c if (which_clock != CLOCK_REALTIME) which_clock 72 kernel/time/posix-stubs.c int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) which_clock 74 kernel/time/posix-stubs.c switch (which_clock) { which_clock 90 kernel/time/posix-stubs.c SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, which_clock 96 kernel/time/posix-stubs.c ret = do_clock_gettime(which_clock, &kernel_tp); which_clock 105 kernel/time/posix-stubs.c SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, struct __kernel_timespec __user *, tp) which_clock 112 kernel/time/posix-stubs.c switch (which_clock) { which_clock 124 kernel/time/posix-stubs.c SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags, which_clock 130 kernel/time/posix-stubs.c switch (which_clock) { which_clock 149 kernel/time/posix-stubs.c which_clock); which_clock 162 kernel/time/posix-stubs.c SYSCALL_DEFINE2(clock_settime32, const clockid_t, which_clock, which_clock 167 kernel/time/posix-stubs.c if (which_clock != CLOCK_REALTIME) which_clock 175 kernel/time/posix-stubs.c SYSCALL_DEFINE2(clock_gettime32, clockid_t, which_clock, which_clock 181 kernel/time/posix-stubs.c ret = do_clock_gettime(which_clock, &kernel_tp); which_clock 190 kernel/time/posix-stubs.c SYSCALL_DEFINE2(clock_getres_time32, clockid_t, which_clock, which_clock 198 kernel/time/posix-stubs.c switch (which_clock) { which_clock 210 kernel/time/posix-stubs.c SYSCALL_DEFINE4(clock_nanosleep_time32, clockid_t, which_clock, int, flags, which_clock 216 kernel/time/posix-stubs.c switch (which_clock) { which_clock 235 kernel/time/posix-stubs.c which_clock); which_clock 168 kernel/time/posix-timers.c static int posix_clock_realtime_get(clockid_t which_clock, struct timespec64 *tp) which_clock 175 kernel/time/posix-timers.c static int posix_clock_realtime_set(const clockid_t which_clock, which_clock 181 kernel/time/posix-timers.c static int posix_clock_realtime_adj(const clockid_t which_clock, which_clock 190 kernel/time/posix-timers.c static int posix_ktime_get_ts(clockid_t which_clock, struct timespec64 *tp) which_clock 199 kernel/time/posix-timers.c static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) which_clock 206 kernel/time/posix-timers.c static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp) which_clock 212 kernel/time/posix-timers.c static int posix_get_monotonic_coarse(clockid_t which_clock, which_clock 219 kernel/time/posix-timers.c static int posix_get_coarse_res(const clockid_t which_clock, struct timespec64 *tp) which_clock 225 kernel/time/posix-timers.c static int posix_get_boottime(const clockid_t which_clock, struct timespec64 *tp) which_clock 231 kernel/time/posix-timers.c static int posix_get_tai(clockid_t which_clock, struct timespec64 *tp) which_clock 237 kernel/time/posix-timers.c static int posix_get_hrtimer_res(clockid_t which_clock, struct timespec64 *tp) which_clock 472 kernel/time/posix-timers.c static int do_timer_create(clockid_t which_clock, struct sigevent *event, which_clock 475 kernel/time/posix-timers.c const struct k_clock *kc = clockid_to_kclock(which_clock); which_clock 498 kernel/time/posix-timers.c new_timer->it_clock = which_clock; which_clock 551 kernel/time/posix-timers.c SYSCALL_DEFINE3(timer_create, const clockid_t, which_clock, which_clock 560 kernel/time/posix-timers.c return do_timer_create(which_clock, &event, created_timer_id); which_clock 562 kernel/time/posix-timers.c return do_timer_create(which_clock, NULL, created_timer_id); which_clock 566 kernel/time/posix-timers.c COMPAT_SYSCALL_DEFINE3(timer_create, clockid_t, which_clock, which_clock 575 kernel/time/posix-timers.c return do_timer_create(which_clock, &event, created_timer_id); which_clock 577 kernel/time/posix-timers.c return do_timer_create(which_clock, NULL, created_timer_id); which_clock 1045 kernel/time/posix-timers.c SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, which_clock 1048 kernel/time/posix-timers.c const struct k_clock *kc = clockid_to_kclock(which_clock); which_clock 1057 kernel/time/posix-timers.c return kc->clock_set(which_clock, &new_tp); which_clock 1060 kernel/time/posix-timers.c SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, which_clock 1063 kernel/time/posix-timers.c const struct k_clock *kc = clockid_to_kclock(which_clock); which_clock 1070 kernel/time/posix-timers.c error = kc->clock_get(which_clock, &kernel_tp); which_clock 1078 kernel/time/posix-timers.c int do_clock_adjtime(const clockid_t which_clock, struct __kernel_timex * ktx) which_clock 1080 kernel/time/posix-timers.c const struct k_clock *kc = clockid_to_kclock(which_clock); which_clock 1087 kernel/time/posix-timers.c return kc->clock_adj(which_clock, ktx); which_clock 1090 kernel/time/posix-timers.c SYSCALL_DEFINE2(clock_adjtime, const clockid_t, which_clock, which_clock 1099 kernel/time/posix-timers.c err = do_clock_adjtime(which_clock, &ktx); which_clock 1107 kernel/time/posix-timers.c SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, which_clock 1110 kernel/time/posix-timers.c const struct k_clock *kc = clockid_to_kclock(which_clock); which_clock 1117 kernel/time/posix-timers.c error = kc->clock_getres(which_clock, &rtn_tp); which_clock 1127 kernel/time/posix-timers.c SYSCALL_DEFINE2(clock_settime32, clockid_t, which_clock, which_clock 1130 kernel/time/posix-timers.c const struct k_clock *kc = clockid_to_kclock(which_clock); which_clock 1139 kernel/time/posix-timers.c return kc->clock_set(which_clock, &ts); which_clock 1142 kernel/time/posix-timers.c SYSCALL_DEFINE2(clock_gettime32, clockid_t, which_clock, which_clock 1145 kernel/time/posix-timers.c const struct k_clock *kc = clockid_to_kclock(which_clock); which_clock 1152 kernel/time/posix-timers.c err = kc->clock_get(which_clock, &ts); which_clock 1160 kernel/time/posix-timers.c SYSCALL_DEFINE2(clock_adjtime32, clockid_t, which_clock, which_clock 1170 kernel/time/posix-timers.c err = do_clock_adjtime(which_clock, &ktx); which_clock 1178 kernel/time/posix-timers.c SYSCALL_DEFINE2(clock_getres_time32, clockid_t, which_clock, which_clock 1181 kernel/time/posix-timers.c const struct k_clock *kc = clockid_to_kclock(which_clock); which_clock 1188 kernel/time/posix-timers.c err = kc->clock_getres(which_clock, &ts); which_clock 1200 kernel/time/posix-timers.c static int common_nsleep(const clockid_t which_clock, int flags, which_clock 1205 kernel/time/posix-timers.c which_clock); which_clock 1208 kernel/time/posix-timers.c SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags, which_clock 1212 kernel/time/posix-timers.c const struct k_clock *kc = clockid_to_kclock(which_clock); which_clock 1230 kernel/time/posix-timers.c return kc->nsleep(which_clock, flags, &t); which_clock 1235 kernel/time/posix-timers.c SYSCALL_DEFINE4(clock_nanosleep_time32, clockid_t, which_clock, int, flags, which_clock 1239 kernel/time/posix-timers.c const struct k_clock *kc = clockid_to_kclock(which_clock); which_clock 1257 kernel/time/posix-timers.c return kc->nsleep(which_clock, flags, &t); which_clock 5 kernel/time/posix-timers.h int (*clock_getres)(const clockid_t which_clock, which_clock 7 kernel/time/posix-timers.h int (*clock_set)(const clockid_t which_clock, which_clock 9 kernel/time/posix-timers.h int (*clock_get)(const clockid_t which_clock, which_clock 11 kernel/time/posix-timers.h int (*clock_adj)(const clockid_t which_clock, struct __kernel_timex *tx); which_clock 13 kernel/time/posix-timers.h int (*nsleep)(const clockid_t which_clock, int flags,