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

Function ngp_callout

freebsd/netgraph/ng_pipe.c:890–902  ·  view source on GitHub ↗

* This routine is called on every clock tick. We poll connected hooks * for queued frames by calling pipe_dequeue(). */

Source from the content-addressed store, hash-verified

888 * for queued frames by calling pipe_dequeue().
889 */
890static void
891ngp_callout(node_p node, hook_p hook, void *arg1, int arg2)
892{
893 const priv_p priv = NG_NODE_PRIVATE(node);
894 struct timeval now;
895
896 priv->timer_scheduled = 0;
897 microuptime(&now);
898 if (priv->upper.hook != NULL)
899 pipe_dequeue(&priv->upper, &now);
900 if (priv->lower.hook != NULL)
901 pipe_dequeue(&priv->lower, &now);
902}
903
904/*
905 * Shutdown processing

Callers

nothing calls this directly

Calls 2

microuptimeFunction · 0.85
pipe_dequeueFunction · 0.85

Tested by

no test coverage detected