Searched refs:ctv (Results 1 – 1 of 1) sorted by relevance
/kernel/ |
D | compat.c | 148 int get_compat_timeval(struct timeval *tv, const struct compat_timeval __user *ctv) in get_compat_timeval() argument 150 return (!access_ok(VERIFY_READ, ctv, sizeof(*ctv)) || in get_compat_timeval() 151 __get_user(tv->tv_sec, &ctv->tv_sec) || in get_compat_timeval() 152 __get_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; in get_compat_timeval() 156 int put_compat_timeval(const struct timeval *tv, struct compat_timeval __user *ctv) in put_compat_timeval() argument 158 return (!access_ok(VERIFY_WRITE, ctv, sizeof(*ctv)) || in put_compat_timeval() 159 __put_user(tv->tv_sec, &ctv->tv_sec) || in put_compat_timeval() 160 __put_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; in put_compat_timeval()
|