Lines Matching refs:sched_param
1267 struct sched_param sched_param; in linux_sched_setscheduler() local
1285 error = copyin(args->param, &sched_param, sizeof(sched_param)); in linux_sched_setscheduler()
1292 if (sched_param.sched_priority != 0) in linux_sched_setscheduler()
1295 sched_param.sched_priority = in linux_sched_setscheduler()
1300 if (sched_param.sched_priority < 1 || in linux_sched_setscheduler()
1301 sched_param.sched_priority >= LINUX_MAX_RT_PRIO) in linux_sched_setscheduler()
1308 sched_param.sched_priority = in linux_sched_setscheduler()
1309 (sched_param.sched_priority - 1) * in linux_sched_setscheduler()
1320 error = kern_sched_setscheduler(td, tdt, policy, &sched_param); in linux_sched_setscheduler()
1853 struct sched_param sched_param; in linux_sched_setparam() local
1857 error = copyin(uap->param, &sched_param, sizeof(sched_param)); in linux_sched_setparam()
1872 if (sched_param.sched_priority != 0) { in linux_sched_setparam()
1876 sched_param.sched_priority = in linux_sched_setparam()
1881 if (sched_param.sched_priority < 1 || in linux_sched_setparam()
1882 sched_param.sched_priority >= LINUX_MAX_RT_PRIO) { in linux_sched_setparam()
1890 sched_param.sched_priority = in linux_sched_setparam()
1891 (sched_param.sched_priority - 1) * in linux_sched_setparam()
1898 error = kern_sched_setparam(td, tdt, &sched_param); in linux_sched_setparam()
1907 struct sched_param sched_param; in linux_sched_getparam() local
1915 error = kern_sched_getparam(td, tdt, &sched_param); in linux_sched_getparam()
1929 sched_param.sched_priority = 0; in linux_sched_getparam()
1937 sched_param.sched_priority = in linux_sched_getparam()
1938 (sched_param.sched_priority * in linux_sched_getparam()
1947 error = copyout(&sched_param, uap->param, sizeof(sched_param)); in linux_sched_getparam()