Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 2 of 2) sorted by relevance

/kernel/time/
Dtime.c83 struct timespec64 tv; in SYSCALL_DEFINE1() local
86 if (get_user(tv.tv_sec, tptr)) in SYSCALL_DEFINE1()
89 tv.tv_nsec = 0; in SYSCALL_DEFINE1()
91 err = security_settime64(&tv, NULL); in SYSCALL_DEFINE1()
95 do_settimeofday64(&tv); in SYSCALL_DEFINE1()
121 struct timespec64 tv; in SYSCALL_DEFINE1() local
124 if (get_user(tv.tv_sec, tptr)) in SYSCALL_DEFINE1()
127 tv.tv_nsec = 0; in SYSCALL_DEFINE1()
129 err = security_settime64(&tv, NULL); in SYSCALL_DEFINE1()
133 do_settimeofday64(&tv); in SYSCALL_DEFINE1()
[all …]
/kernel/
Dcompat.c29 static int __compat_get_timeval(struct timeval *tv, const struct old_timeval32 __user *ctv) in __compat_get_timeval() argument
32 __get_user(tv->tv_sec, &ctv->tv_sec) || in __compat_get_timeval()
33 __get_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; in __compat_get_timeval()
36 static int __compat_put_timeval(const struct timeval *tv, struct old_timeval32 __user *ctv) in __compat_put_timeval() argument
39 __put_user(tv->tv_sec, &ctv->tv_sec) || in __compat_put_timeval()
40 __put_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; in __compat_put_timeval()
57 int compat_get_timeval(struct timeval *tv, const void __user *utv) in compat_get_timeval() argument
60 return copy_from_user(tv, utv, sizeof(*tv)) ? -EFAULT : 0; in compat_get_timeval()
62 return __compat_get_timeval(tv, utv); in compat_get_timeval()
66 int compat_put_timeval(const struct timeval *tv, void __user *utv) in compat_put_timeval() argument
[all …]