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

Function sched_exit

freebsd/kern/sched_ule.c:2320–2330  ·  view source on GitHub ↗

* Return some of the child's priority and interactivity to the parent. */

Source from the content-addressed store, hash-verified

2318 * Return some of the child's priority and interactivity to the parent.
2319 */
2320void
2321sched_exit(struct proc *p, struct thread *child)
2322{
2323 struct thread *td;
2324
2325 KTR_STATE1(KTR_SCHED, "thread", sched_tdname(child), "proc exit",
2326 "prio:%d", child->td_priority);
2327 PROC_LOCK_ASSERT(p, MA_OWNED);
2328 td = FIRST_THREAD_IN_PROC(p);
2329 sched_exit_thread(td, child);
2330}
2331
2332/*
2333 * Penalize another thread for the time spent on this one. This helps to

Callers 1

exit1Function · 0.70

Calls 2

sched_tdnameFunction · 0.70
sched_exit_threadFunction · 0.70

Tested by

no test coverage detected