MCPcopy Create free account
hub / github.com/F-Stack/f-stack / kern_sched_getparam

Function kern_sched_getparam

freebsd/kern/p1003_1b.c:184–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184int
185kern_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
200int
201sys_sched_setscheduler(struct thread *td, struct sched_setscheduler_args *uap)

Callers 1

sys_sched_getparamFunction · 0.85

Calls 2

ksched_getparamFunction · 0.85
p_canseeFunction · 0.70

Tested by

no test coverage detected