Searched refs:cts (Results 1 – 2 of 2) sorted by relevance
/kernel/ |
D | compat.c | 43 static int __compat_get_timespec(struct timespec *ts, const struct old_timespec32 __user *cts) in __compat_get_timespec() argument 45 return (!access_ok(cts, sizeof(*cts)) || in __compat_get_timespec() 46 __get_user(ts->tv_sec, &cts->tv_sec) || in __compat_get_timespec() 47 __get_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; in __compat_get_timespec() 50 static int __compat_put_timespec(const struct timespec *ts, struct old_timespec32 __user *cts) in __compat_put_timespec() argument 52 return (!access_ok(cts, sizeof(*cts)) || in __compat_put_timespec() 53 __put_user(ts->tv_sec, &cts->tv_sec) || in __compat_put_timespec() 54 __put_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; in __compat_put_timespec()
|
/kernel/time/ |
D | time.c | 907 const struct old_timespec32 __user *cts) in __get_old_timespec32() argument 912 ret = copy_from_user(&ts, cts, sizeof(ts)); in __get_old_timespec32() 923 struct old_timespec32 __user *cts) in __put_old_timespec32() argument 929 return copy_to_user(cts, &ts, sizeof(ts)) ? -EFAULT : 0; in __put_old_timespec32()
|