/linux-6.3-rc2/kernel/time/ |
A D | posix-stubs.c | 65 if (which_clock != CLOCK_REALTIME) in SYSCALL_DEFINE2() 75 switch (which_clock) { in do_clock_gettime() 100 ret = do_clock_gettime(which_clock, &kernel_tp); in SYSCALL_DEFINE2() 116 switch (which_clock) { in SYSCALL_DEFINE2() 135 switch (which_clock) { in SYSCALL_DEFINE4() 155 texp = timens_ktime_to_host(which_clock, texp); in SYSCALL_DEFINE4() 158 which_clock); in SYSCALL_DEFINE4() 179 if (which_clock != CLOCK_REALTIME) in SYSCALL_DEFINE2() 210 switch (which_clock) { in SYSCALL_DEFINE2() 229 switch (which_clock) { in SYSCALL_DEFINE4() [all …]
|
A D | posix-timers.c | 524 new_timer->it_clock = which_clock; in do_timer_create() 1088 return kc->clock_set(which_clock, &new_tp); in SYSCALL_DEFINE2() 1118 return kc->clock_adj(which_clock, ktx); in do_clock_adjtime() 1130 err = do_clock_adjtime(which_clock, &ktx); in SYSCALL_DEFINE2() 1170 return kc->clock_set(which_clock, &ts); in SYSCALL_DEFINE2() 1201 err = do_clock_adjtime(which_clock, &ktx); in SYSCALL_DEFINE2() 1219 err = kc->clock_getres(which_clock, &ts); in SYSCALL_DEFINE2() 1238 which_clock); in common_nsleep() 1251 which_clock); in common_nsleep_timens() 1277 return kc->nsleep(which_clock, flags, &t); in SYSCALL_DEFINE4() [all …]
|
A 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,
|
A D | posix-cpu-timers.c | 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() 1455 timer.it_clock = which_clock; in do_cpu_nanosleep() 1549 if (CPUCLOCK_PERTHREAD(which_clock) && in posix_cpu_nsleep() 1550 (CPUCLOCK_PID(which_clock) == 0 || in posix_cpu_nsleep() 1551 CPUCLOCK_PID(which_clock) == task_pid_vnr(current))) in posix_cpu_nsleep() 1554 error = do_cpu_nanosleep(which_clock, flags, rqtp); in posix_cpu_nsleep() 1561 restart_block->nanosleep.clockid = which_clock; in posix_cpu_nsleep() 1569 clockid_t which_clock = restart_block->nanosleep.clockid; in posix_cpu_nsleep_restart() local 1574 return do_cpu_nanosleep(which_clock, TIMER_ABSTIME, &t); in posix_cpu_nsleep_restart() [all …]
|
A 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()
|
/linux-6.3-rc2/arch/ia64/kernel/ |
A D | sys_ia64.c | 171 ia64_clock_getres(const clockid_t which_clock, struct __kernel_timespec __user *tp) in ia64_clock_getres() argument 188 switch (which_clock) { in ia64_clock_getres() 196 return sys_clock_getres(which_clock, tp); in ia64_clock_getres()
|
/linux-6.3-rc2/include/linux/ |
A D | hrtimer.h | 372 extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock, 378 extern void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t which_clock, 387 clockid_t which_clock, in hrtimer_init_on_stack() argument 390 hrtimer_init(timer, which_clock, mode); in hrtimer_init_on_stack()
|
A D | timex.h | 163 extern int do_clock_adjtime(const clockid_t which_clock, struct __kernel_timex * ktx);
|
A D | syscalls.h | 653 asmlinkage long sys_timer_create(clockid_t which_clock, 663 asmlinkage long sys_clock_settime(clockid_t which_clock, 665 asmlinkage long sys_clock_gettime(clockid_t which_clock, 667 asmlinkage long sys_clock_getres(clockid_t which_clock, 669 asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags, 677 asmlinkage long sys_clock_settime32(clockid_t which_clock, 679 asmlinkage long sys_clock_gettime32(clockid_t which_clock, 681 asmlinkage long sys_clock_getres_time32(clockid_t which_clock, 683 asmlinkage long sys_clock_nanosleep_time32(clockid_t which_clock, int flags, 973 asmlinkage long sys_clock_adjtime(clockid_t which_clock, [all …]
|
A D | compat.h | 725 asmlinkage long compat_sys_timer_create(clockid_t which_clock,
|
/linux-6.3-rc2/arch/sparc/kernel/ |
A D | sys_sparc_64.c | 575 SYSCALL_DEFINE2(sparc_clock_adjtime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument 602 ret = do_clock_adjtime(which_clock, &txc); in SYSCALL_DEFINE2()
|