Lines Matching refs:sched_param
1492 struct sched_param sched_param; in linux_sched_setscheduler() local
1510 error = copyin(args->param, &sched_param, sizeof(sched_param)); in linux_sched_setscheduler()
1517 if (sched_param.sched_priority != 0) in linux_sched_setscheduler()
1520 sched_param.sched_priority = in linux_sched_setscheduler()
1525 if (sched_param.sched_priority < 1 || in linux_sched_setscheduler()
1526 sched_param.sched_priority >= LINUX_MAX_RT_PRIO) in linux_sched_setscheduler()
1533 sched_param.sched_priority = in linux_sched_setscheduler()
1534 (sched_param.sched_priority - 1) * in linux_sched_setscheduler()
1545 error = kern_sched_setscheduler(td, tdt, policy, &sched_param); in linux_sched_setscheduler()
2077 struct sched_param sched_param; in linux_sched_setparam() local
2081 error = copyin(uap->param, &sched_param, sizeof(sched_param)); in linux_sched_setparam()
2096 if (sched_param.sched_priority != 0) { in linux_sched_setparam()
2100 sched_param.sched_priority = in linux_sched_setparam()
2105 if (sched_param.sched_priority < 1 || in linux_sched_setparam()
2106 sched_param.sched_priority >= LINUX_MAX_RT_PRIO) { in linux_sched_setparam()
2114 sched_param.sched_priority = in linux_sched_setparam()
2115 (sched_param.sched_priority - 1) * in linux_sched_setparam()
2122 error = kern_sched_setparam(td, tdt, &sched_param); in linux_sched_setparam()
2131 struct sched_param sched_param; in linux_sched_getparam() local
2139 error = kern_sched_getparam(td, tdt, &sched_param); in linux_sched_getparam()
2153 sched_param.sched_priority = 0; in linux_sched_getparam()
2161 sched_param.sched_priority = in linux_sched_getparam()
2162 (sched_param.sched_priority * in linux_sched_getparam()
2171 error = copyout(&sched_param, uap->param, sizeof(sched_param)); in linux_sched_getparam()