Lines Matching refs:uattr
4266 static int sched_copy_attr(struct sched_attr __user *uattr, in sched_copy_attr() argument
4272 if (!access_ok(VERIFY_WRITE, uattr, SCHED_ATTR_SIZE_VER0)) in sched_copy_attr()
4280 ret = get_user(size, &uattr->size); in sched_copy_attr()
4304 addr = (void __user *)uattr + sizeof(*attr); in sched_copy_attr()
4305 end = (void __user *)uattr + size; in sched_copy_attr()
4317 ret = copy_from_user(attr, uattr, size); in sched_copy_attr()
4330 put_user(sizeof(*attr), &uattr->size); in sched_copy_attr()
4370 SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr, in SYSCALL_DEFINE3() argument
4377 if (!uattr || pid < 0 || flags) in SYSCALL_DEFINE3()
4380 retval = sched_copy_attr(uattr, &attr); in SYSCALL_DEFINE3()
4468 static int sched_read_attr(struct sched_attr __user *uattr, in sched_read_attr() argument
4474 if (!access_ok(VERIFY_WRITE, uattr, usize)) in sched_read_attr()
4497 ret = copy_to_user(uattr, attr, attr->size); in sched_read_attr()
4511 SYSCALL_DEFINE4(sched_getattr, pid_t, pid, struct sched_attr __user *, uattr, in SYSCALL_DEFINE4() argument
4520 if (!uattr || pid < 0 || size > PAGE_SIZE || in SYSCALL_DEFINE4()
4546 retval = sched_read_attr(uattr, &attr, size); in SYSCALL_DEFINE4()