int ksched_setparam(struct ksched *ksched, struct thread *td, const struct sched_param *param) { int policy; int e; e = getscheduler(ksched, td, &policy); if (e == 0) { e = ksched_setscheduler(ksched, td, policy, param); } return e; }
int ksched_setparam(register_t *ret, struct ksched *ksched, struct proc *p, const struct sched_param *param) { register_t policy; int e; e = getscheduler(&policy, ksched, p); if (e == 0) { if (policy == SCHED_OTHER) e = EINVAL; else e = ksched_setscheduler(ret, ksched, p, policy, param); } return e; }
int ksched_getscheduler(struct ksched *ksched, struct thread *td, int *policy) { return getscheduler(ksched, td, policy); }
int ksched_getscheduler(register_t *ret, struct ksched *ksched, struct proc *p) { return getscheduler(ret, ksched, p); }