Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/kernel/time/
Dposix-stubs.c60 SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
65 if (which_clock != CLOCK_REALTIME) in SYSCALL_DEFINE2()
73 int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) in do_clock_gettime() argument
75 switch (which_clock) { in do_clock_gettime()
93 SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
99 ret = do_clock_gettime(which_clock, &kernel_tp); in SYSCALL_DEFINE2()
108 SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, struct __kernel_timespec __user *, tp) in SYSCALL_DEFINE2() argument
115 switch (which_clock) { in SYSCALL_DEFINE2()
127 SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags, in SYSCALL_DEFINE4() argument
134 switch (which_clock) { in SYSCALL_DEFINE4()
[all …]
Dposix-timers.c170 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 …]
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.c153 posix_cpu_clock_getres(const clockid_t which_clock, struct timespec64 *tp) in posix_cpu_clock_getres() argument
155 int error = validate_clock_permissions(which_clock); in posix_cpu_clock_getres()
160 if (CPUCLOCK_WHICH(which_clock) == CPUCLOCK_SCHED) { in posix_cpu_clock_getres()
1438 static int do_cpu_nanosleep(const clockid_t which_clock, int flags, in do_cpu_nanosleep() argument
1451 timer.it_clock = which_clock; in do_cpu_nanosleep()
1529 static int posix_cpu_nsleep(const clockid_t which_clock, int flags, in posix_cpu_nsleep() argument
1538 if (CPUCLOCK_PERTHREAD(which_clock) && in posix_cpu_nsleep()
1539 (CPUCLOCK_PID(which_clock) == 0 || in posix_cpu_nsleep()
1540 CPUCLOCK_PID(which_clock) == task_pid_vnr(current))) in posix_cpu_nsleep()
1543 error = do_cpu_nanosleep(which_clock, flags, rqtp); in posix_cpu_nsleep()
[all …]
Dalarmtimer.c674 static int alarm_clock_getres(const clockid_t which_clock, struct timespec64 *tp) in alarm_clock_getres() argument
691 static int alarm_clock_get_timespec(clockid_t which_clock, struct timespec64 *tp) in alarm_clock_get_timespec() argument
693 struct alarm_base *base = &alarm_bases[clock2alarm(which_clock)]; in alarm_clock_get_timespec()
709 static ktime_t alarm_clock_get_ktime(clockid_t which_clock) in alarm_clock_get_ktime() argument
711 struct alarm_base *base = &alarm_bases[clock2alarm(which_clock)]; in alarm_clock_get_ktime()
838 static int alarm_timer_nsleep(const clockid_t which_clock, int flags, in alarm_timer_nsleep() argument
841 enum alarmtimer_type type = clock2alarm(which_clock); in alarm_timer_nsleep()
865 exp = timens_ktime_to_host(which_clock, exp); in alarm_timer_nsleep()
/kernel/linux/linux-5.10/include/linux/
Dhrtimer.h380 extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock,
386 extern void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t which_clock,
395 clockid_t which_clock, in hrtimer_init_on_stack() argument
398 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.h640 asmlinkage long sys_timer_create(clockid_t which_clock,
650 asmlinkage long sys_clock_settime(clockid_t which_clock,
652 asmlinkage long sys_clock_gettime(clockid_t which_clock,
654 asmlinkage long sys_clock_getres(clockid_t which_clock,
656 asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags,
664 asmlinkage long sys_clock_settime32(clockid_t which_clock,
666 asmlinkage long sys_clock_gettime32(clockid_t which_clock,
668 asmlinkage long sys_clock_getres_time32(clockid_t which_clock,
670 asmlinkage long sys_clock_nanosleep_time32(clockid_t which_clock, int flags,
959 asmlinkage long sys_clock_adjtime(clockid_t which_clock,
[all …]
Dcompat.h633 asmlinkage long compat_sys_timer_create(clockid_t which_clock,
/kernel/linux/linux-5.10/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()