Home
last modified time | relevance | path

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

/linux-6.12.1/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()
1464 static int do_cpu_nanosleep(const clockid_t which_clock, int flags, in do_cpu_nanosleep() argument
1477 timer.it_clock = which_clock; in do_cpu_nanosleep()
1555 static int posix_cpu_nsleep(const clockid_t which_clock, int flags, in posix_cpu_nsleep() argument
1564 if (CPUCLOCK_PERTHREAD(which_clock) && in posix_cpu_nsleep()
1565 (CPUCLOCK_PID(which_clock) == 0 || in posix_cpu_nsleep()
1566 CPUCLOCK_PID(which_clock) == task_pid_vnr(current))) in posix_cpu_nsleep()
1569 error = do_cpu_nanosleep(which_clock, flags, rqtp); in posix_cpu_nsleep()
[all …]
Dalarmtimer.c682 static int alarm_clock_getres(const clockid_t which_clock, struct timespec64 *tp) in alarm_clock_getres() argument
699 static int alarm_clock_get_timespec(clockid_t which_clock, struct timespec64 *tp) in alarm_clock_get_timespec() argument
701 struct alarm_base *base = &alarm_bases[clock2alarm(which_clock)]; in alarm_clock_get_timespec()
717 static ktime_t alarm_clock_get_ktime(clockid_t which_clock) in alarm_clock_get_ktime() argument
719 struct alarm_base *base = &alarm_bases[clock2alarm(which_clock)]; in alarm_clock_get_ktime()
849 static int alarm_timer_nsleep(const clockid_t which_clock, int flags, in alarm_timer_nsleep() argument
852 enum alarmtimer_type type = clock2alarm(which_clock); in alarm_timer_nsleep()
876 exp = timens_ktime_to_host(which_clock, exp); in alarm_timer_nsleep()
/linux-6.12.1/include/linux/
Dhrtimer.h229 extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock,
235 extern void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t which_clock,
244 clockid_t which_clock, in hrtimer_init_on_stack() argument
247 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.h586 asmlinkage long sys_timer_create(clockid_t which_clock,
596 asmlinkage long sys_clock_settime(clockid_t which_clock,
598 asmlinkage long sys_clock_gettime(clockid_t which_clock,
600 asmlinkage long sys_clock_getres(clockid_t which_clock,
602 asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags,
610 asmlinkage long sys_clock_settime32(clockid_t which_clock,
612 asmlinkage long sys_clock_gettime32(clockid_t which_clock,
614 asmlinkage long sys_clock_getres_time32(clockid_t which_clock,
616 asmlinkage long sys_clock_nanosleep_time32(clockid_t which_clock, int flags,
877 asmlinkage long sys_clock_adjtime(clockid_t which_clock,
[all …]
Dcompat.h689 asmlinkage long compat_sys_timer_create(clockid_t which_clock,
/linux-6.12.1/arch/sparc/kernel/
Dsys_sparc_64.c571 SYSCALL_DEFINE2(sparc_clock_adjtime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
598 ret = do_clock_adjtime(which_clock, &txc); in SYSCALL_DEFINE2()