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

Function netisr_start

freebsd/net/netisr.c:1351–1364  ·  view source on GitHub ↗

* Start worker threads for additional CPUs. No attempt to gracefully handle * work reassignment, we don't yet support dynamic reconfiguration. */

Source from the content-addressed store, hash-verified

1349 * work reassignment, we don't yet support dynamic reconfiguration.
1350 */
1351static void
1352netisr_start(void *arg)
1353{
1354 struct pcpu *pc;
1355
1356 STAILQ_FOREACH(pc, &cpuhead, pc_allcpu) {
1357 if (nws_count >= netisr_maxthreads)
1358 break;
1359 /* Worker will already be present for boot CPU. */
1360 if (pc->pc_netisr != NULL)
1361 continue;
1362 netisr_start_swi(pc->pc_cpuid, pc);
1363 }
1364}
1365SYSINIT(netisr_start, SI_SUB_SMP, SI_ORDER_MIDDLE, netisr_start, NULL);
1366#endif
1367

Callers

nothing calls this directly

Calls 1

netisr_start_swiFunction · 0.85

Tested by

no test coverage detected