Lines Matching refs:kattr
5424 struct sched_attr *kattr, in sched_attr_copy_to_user() argument
5427 unsigned int ksize = sizeof(*kattr); in sched_attr_copy_to_user()
5445 kattr->size = min(usize, ksize); in sched_attr_copy_to_user()
5447 if (copy_to_user(uattr, kattr, kattr->size)) in sched_attr_copy_to_user()
5463 struct sched_attr kattr = { }; in SYSCALL_DEFINE4() local
5481 kattr.sched_policy = p->policy; in SYSCALL_DEFINE4()
5483 kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK; in SYSCALL_DEFINE4()
5485 __getparam_dl(p, &kattr); in SYSCALL_DEFINE4()
5487 kattr.sched_priority = p->rt_priority; in SYSCALL_DEFINE4()
5489 kattr.sched_nice = task_nice(p); in SYSCALL_DEFINE4()
5492 kattr.sched_util_min = p->uclamp_req[UCLAMP_MIN].value; in SYSCALL_DEFINE4()
5493 kattr.sched_util_max = p->uclamp_req[UCLAMP_MAX].value; in SYSCALL_DEFINE4()
5498 return sched_attr_copy_to_user(uattr, &kattr, usize); in SYSCALL_DEFINE4()