Home
last modified time | relevance | path

Searched refs:which_clock (Results 1 – 11 of 11) sorted by relevance

/linux-6.6.21/kernel/time/
Dposix-stubs.c26 SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
31 if (which_clock != CLOCK_REALTIME) in SYSCALL_DEFINE2()
39 static int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) in do_clock_gettime() argument
41 switch (which_clock) { in do_clock_gettime()
60 SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
66 ret = do_clock_gettime(which_clock, &kernel_tp); in SYSCALL_DEFINE2()
75 SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, struct __kernel_timespec __user *, tp) in SYSCALL_DEFINE2() argument
82 switch (which_clock) { in SYSCALL_DEFINE2()
94 SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags, in SYSCALL_DEFINE4() argument
101 switch (which_clock) { in SYSCALL_DEFINE4()
[all …]
Dposix-timers.c131 static int posix_get_realtime_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_timespec() argument
137 static ktime_t posix_get_realtime_ktime(clockid_t which_clock) in posix_get_realtime_ktime() argument
142 static int posix_clock_realtime_set(const clockid_t which_clock, in posix_clock_realtime_set() argument
148 static int posix_clock_realtime_adj(const clockid_t which_clock, in posix_clock_realtime_adj() argument
154 static int posix_get_monotonic_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_timespec() argument
161 static ktime_t posix_get_monotonic_ktime(clockid_t which_clock) in posix_get_monotonic_ktime() argument
166 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_raw() argument
173 static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_coarse() argument
179 static int posix_get_monotonic_coarse(clockid_t which_clock, in posix_get_monotonic_coarse() argument
187 static int posix_get_coarse_res(const clockid_t which_clock, struct timespec64 *tp) in posix_get_coarse_res() argument
[all …]
Dposix-timers.h5 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,
Dposix-cpu-timers.c160 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()
1501 static int do_cpu_nanosleep(const clockid_t which_clock, int flags, in do_cpu_nanosleep() argument
1514 timer.it_clock = which_clock; in do_cpu_nanosleep()
1592 static int posix_cpu_nsleep(const clockid_t which_clock, int flags, in posix_cpu_nsleep() argument
1601 if (CPUCLOCK_PERTHREAD(which_clock) && in posix_cpu_nsleep()
1602 (CPUCLOCK_PID(which_clock) == 0 || in posix_cpu_nsleep()
1603 CPUCLOCK_PID(which_clock) == task_pid_vnr(current))) in posix_cpu_nsleep()
1606 error = do_cpu_nanosleep(which_clock, flags, rqtp); in posix_cpu_nsleep()
[all …]
Dalarmtimer.c676 static int alarm_clock_getres(const clockid_t which_clock, struct timespec64 *tp) in alarm_clock_getres() argument
693 static int alarm_clock_get_timespec(clockid_t which_clock, struct timespec64 *tp) in alarm_clock_get_timespec() argument
695 struct alarm_base *base = &alarm_bases[clock2alarm(which_clock)]; in alarm_clock_get_timespec()
711 static ktime_t alarm_clock_get_ktime(clockid_t which_clock) in alarm_clock_get_ktime() argument
713 struct alarm_base *base = &alarm_bases[clock2alarm(which_clock)]; in alarm_clock_get_ktime()
843 static int alarm_timer_nsleep(const clockid_t which_clock, int flags, in alarm_timer_nsleep() argument
846 enum alarmtimer_type type = clock2alarm(which_clock); in alarm_timer_nsleep()
870 exp = timens_ktime_to_host(which_clock, exp); in alarm_timer_nsleep()
/linux-6.6.21/arch/ia64/kernel/
Dsys_ia64.c171 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.6.21/include/linux/
Dhrtimer.h374 extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock,
380 extern void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t which_clock,
389 clockid_t which_clock, in hrtimer_init_on_stack() argument
392 hrtimer_init(timer, which_clock, mode); in hrtimer_init_on_stack()
Dtimex.h163 extern int do_clock_adjtime(const clockid_t which_clock, struct __kernel_timex * ktx);
Dsyscalls.h568 asmlinkage long sys_timer_create(clockid_t which_clock,
578 asmlinkage long sys_clock_settime(clockid_t which_clock,
580 asmlinkage long sys_clock_gettime(clockid_t which_clock,
582 asmlinkage long sys_clock_getres(clockid_t which_clock,
584 asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags,
592 asmlinkage long sys_clock_settime32(clockid_t which_clock,
594 asmlinkage long sys_clock_gettime32(clockid_t which_clock,
596 asmlinkage long sys_clock_getres_time32(clockid_t which_clock,
598 asmlinkage long sys_clock_nanosleep_time32(clockid_t which_clock, int flags,
852 asmlinkage long sys_clock_adjtime(clockid_t which_clock,
[all …]
Dcompat.h690 asmlinkage long compat_sys_timer_create(clockid_t which_clock,
/linux-6.6.21/arch/sparc/kernel/
Dsys_sparc_64.c575 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()