FreeBSD/sys/netgraph/ng_pipe.c
/*
 * This routine is called on every clock tick.  We poll connected hooks
 * for queued frames by calling pipe_dequeue().
 */
This routine is called on every clock tick.  We poll connected hooks
for queued frames by calling pipe_dequeue().
This routine is called on every clock tick . We poll connected hooks for queued frames by calling pipe_dequeue () .
static void
ngp_callout(node_p node, hook_p hook, void *arg1, int arg2)
{
	const priv_p priv = NG_NODE_PRIVATE(node);
	struct timeval now;
	priv->timer_scheduled = 0;
	microuptime(&now);
	if (priv->upper.hook != NULL)
		pipe_dequeue(&priv->upper, &now);
	if (priv->lower.hook != NULL)
		pipe_dequeue(&priv->lower, &now);
}
static void ngp_callout ( node_p node , hook_p hook , void * arg1 , int arg2 ) { const priv_p priv = NG_NODE_PRIVATE ( node ) ; struct timeval now ; priv -> timer_scheduled = 0 ; microuptime ( & now ) ; if ( priv -> upper . hook != NULL ) pipe_dequeue ( & priv -> upper , & now ) ; if ( priv -> lower . hook != NULL ) pipe_dequeue ( & priv -> lower , & now ) ; }
This routine is called on every clock tick.
This routine is called on every clock tick .