Lines Matching defs:cts
29 int get_compat_timespec(struct timespec *ts, const struct compat_timespec __user *cts)
31 return (!access_ok(VERIFY_READ, cts, sizeof(*cts)) ||
32 __get_user(ts->tv_sec, &cts->tv_sec) ||
33 __get_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0;
36 int put_compat_timespec(const struct timespec *ts, struct compat_timespec __user *cts)
38 return (!access_ok(VERIFY_WRITE, cts, sizeof(*cts)) ||
39 __put_user(ts->tv_sec, &cts->tv_sec) ||
40 __put_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0;