| 275 | } |
| 276 | |
| 277 | int |
| 278 | kern_sched_getscheduler(struct thread *td, struct thread *targettd, |
| 279 | int *policy) |
| 280 | { |
| 281 | struct proc *targetp; |
| 282 | int error; |
| 283 | |
| 284 | targetp = targettd->td_proc; |
| 285 | PROC_LOCK_ASSERT(targetp, MA_OWNED); |
| 286 | |
| 287 | error = p_cansee(td, targetp); |
| 288 | if (error == 0) |
| 289 | error = ksched_getscheduler(ksched, targettd, policy); |
| 290 | return (error); |
| 291 | } |
| 292 | |
| 293 | int |
| 294 | sys_sched_yield(struct thread *td, struct sched_yield_args *uap) |
no test coverage detected