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

Function syncache_unpause

freebsd/netinet/tcp_syncache.c:2525–2543  ·  view source on GitHub ↗

Evaluate whether we need to unpause. */

Source from the content-addressed store, hash-verified

2523
2524/* Evaluate whether we need to unpause. */
2525static void
2526syncache_unpause(void *arg)
2527{
2528 struct tcp_syncache *sc;
2529 time_t delta;
2530
2531 sc = arg;
2532 mtx_assert(&sc->pause_mtx, MA_OWNED | MA_NOTRECURSED);
2533 callout_deactivate(&sc->pause_co);
2534
2535 /*
2536 * Check to make sure we are not running early. If the pause
2537 * time has expired, then deactivate the protection.
2538 */
2539 if ((delta = sc->pause_until - time_uptime) > 0)
2540 callout_schedule(&sc->pause_co, delta * hz);
2541 else
2542 sc->paused = false;
2543}
2544
2545/*
2546 * Exports the syncache entries to userland so that netstat can display

Callers

nothing calls this directly

Calls 2

mtx_assertFunction · 0.85
callout_scheduleFunction · 0.50

Tested by

no test coverage detected