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

Function choosethread

freebsd/kern/kern_switch.c:179–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179struct thread *
180choosethread(void)
181{
182 struct thread *td;
183
184 td = sched_choose();
185
186 if (KERNEL_PANICKED())
187 return (choosethread_panic(td));
188
189 TD_SET_RUNNING(td);
190 return (td);
191}
192
193/*
194 * Kernel thread preemption implementation. Critical sections mark

Callers 4

sched_switchFunction · 0.85
sched_throwFunction · 0.85
sched_switchFunction · 0.85
sched_throwFunction · 0.85

Calls 2

choosethread_panicFunction · 0.85
sched_chooseFunction · 0.70

Tested by

no test coverage detected