Lines Matching refs:uattr
7993 static int sched_copy_attr(struct sched_attr __user *uattr, struct sched_attr *attr) in sched_copy_attr() argument
8001 ret = get_user(size, &uattr->size); in sched_copy_attr()
8011 ret = copy_struct_from_user(attr, sizeof(*attr), uattr, size); in sched_copy_attr()
8031 put_user(sizeof(*attr), &uattr->size); in sched_copy_attr()
8079 SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr, in SYSCALL_DEFINE3() argument
8086 if (!uattr || pid < 0 || flags) in SYSCALL_DEFINE3()
8089 retval = sched_copy_attr(uattr, &attr); in SYSCALL_DEFINE3()
8195 sched_attr_copy_to_user(struct sched_attr __user *uattr, in sched_attr_copy_to_user() argument
8201 if (!access_ok(uattr, usize)) in sched_attr_copy_to_user()
8219 if (copy_to_user(uattr, kattr, kattr->size)) in sched_attr_copy_to_user()
8232 SYSCALL_DEFINE4(sched_getattr, pid_t, pid, struct sched_attr __user *, uattr, in SYSCALL_DEFINE4() argument
8239 if (!uattr || pid < 0 || usize > PAGE_SIZE || in SYSCALL_DEFINE4()
8271 return sched_attr_copy_to_user(uattr, &kattr, usize); in SYSCALL_DEFINE4()