| 182 | } |
| 183 | |
| 184 | int |
| 185 | kern_sched_getparam(struct thread *td, struct thread *targettd, |
| 186 | struct sched_param *param) |
| 187 | { |
| 188 | struct proc *targetp; |
| 189 | int error; |
| 190 | |
| 191 | targetp = targettd->td_proc; |
| 192 | PROC_LOCK_ASSERT(targetp, MA_OWNED); |
| 193 | |
| 194 | error = p_cansee(td, targetp); |
| 195 | if (error == 0) |
| 196 | error = ksched_getparam(ksched, targettd, param); |
| 197 | return (error); |
| 198 | } |
| 199 | |
| 200 | int |
| 201 | sys_sched_setscheduler(struct thread *td, struct sched_setscheduler_args *uap) |
no test coverage detected