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

Function ether_poll

freebsd/kern/kern_poll.c:336–353  ·  view source on GitHub ↗

* ether_poll is called from the idle loop. */

Source from the content-addressed store, hash-verified

334 * ether_poll is called from the idle loop.
335 */
336static void
337ether_poll(int count)
338{
339 struct epoch_tracker et;
340 int i;
341
342 mtx_lock(&poll_mtx);
343
344 if (count > poll_each_burst)
345 count = poll_each_burst;
346
347 NET_EPOCH_ENTER(et);
348 for (i = 0 ; i < poll_handlers ; i++)
349 pr[i].handler(pr[i].ifp, POLL_ONLY, count);
350 NET_EPOCH_EXIT(et);
351
352 mtx_unlock(&poll_mtx);
353}
354
355/*
356 * netisr_pollmore is called after other netisr's, possibly scheduling

Callers 1

poll_idleFunction · 0.85

Calls 2

mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected