Lines Matching refs:sched_param
1249 struct sched_param sched_param; in linux_sched_setscheduler() local
1267 error = copyin(args->param, &sched_param, sizeof(sched_param)); in linux_sched_setscheduler()
1274 if (sched_param.sched_priority != 0) in linux_sched_setscheduler()
1277 sched_param.sched_priority = in linux_sched_setscheduler()
1282 if (sched_param.sched_priority < 1 || in linux_sched_setscheduler()
1283 sched_param.sched_priority >= LINUX_MAX_RT_PRIO) in linux_sched_setscheduler()
1290 sched_param.sched_priority = in linux_sched_setscheduler()
1291 (sched_param.sched_priority - 1) * in linux_sched_setscheduler()
1302 error = kern_sched_setscheduler(td, tdt, policy, &sched_param); in linux_sched_setscheduler()
1827 struct sched_param sched_param; in linux_sched_setparam() local
1831 error = copyin(uap->param, &sched_param, sizeof(sched_param)); in linux_sched_setparam()
1846 if (sched_param.sched_priority != 0) { in linux_sched_setparam()
1850 sched_param.sched_priority = in linux_sched_setparam()
1855 if (sched_param.sched_priority < 1 || in linux_sched_setparam()
1856 sched_param.sched_priority >= LINUX_MAX_RT_PRIO) { in linux_sched_setparam()
1864 sched_param.sched_priority = in linux_sched_setparam()
1865 (sched_param.sched_priority - 1) * in linux_sched_setparam()
1872 error = kern_sched_setparam(td, tdt, &sched_param); in linux_sched_setparam()
1881 struct sched_param sched_param; in linux_sched_getparam() local
1889 error = kern_sched_getparam(td, tdt, &sched_param); in linux_sched_getparam()
1903 sched_param.sched_priority = 0; in linux_sched_getparam()
1911 sched_param.sched_priority = in linux_sched_getparam()
1912 (sched_param.sched_priority * in linux_sched_getparam()
1921 error = copyout(&sched_param, uap->param, sizeof(sched_param)); in linux_sched_getparam()