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

Function ng_source_stop

freebsd/netgraph/ng_source.c:710–718  ·  view source on GitHub ↗

* Stop sending queued data out the output hook */

Source from the content-addressed store, hash-verified

708 * Stop sending queued data out the output hook
709 */
710static void
711ng_source_stop(sc_p sc)
712{
713 ng_uncallout(&sc->intr_ch, sc->node);
714 sc->node->nd_flags &= ~NG_SOURCE_ACTIVE;
715 getmicrotime(&sc->stats.endTime);
716 sc->stats.elapsedTime = sc->stats.endTime;
717 timevalsub(&sc->stats.elapsedTime, &sc->stats.startTime);
718}
719
720/*
721 * While active called every NG_SOURCE_INTR_TICKS ticks.

Callers 3

ng_source_rcvmsgFunction · 0.85
ng_source_rmnodeFunction · 0.85
ng_source_intrFunction · 0.85

Calls 3

getmicrotimeFunction · 0.85
ng_uncalloutFunction · 0.70
timevalsubFunction · 0.50

Tested by

no test coverage detected