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

Function ng_car_schedule

freebsd/netgraph/ng_car.c:649–658  ·  view source on GitHub ↗

* Schedule callout when we will have required tokens. */

Source from the content-addressed store, hash-verified

647 * Schedule callout when we will have required tokens.
648 */
649static void
650ng_car_schedule(struct hookinfo *hinfo)
651{
652 int delay;
653
654 delay = (-(hinfo->tc)) * hz * 8 / hinfo->conf.cir + 1;
655
656 ng_callout(&hinfo->q_callout, NG_HOOK_NODE(hinfo->hook), hinfo->hook,
657 delay, &ng_car_q_event, NULL, 0);
658}
659
660/*
661 * Queue processing callout handler.

Callers 2

ng_car_q_eventFunction · 0.85
ng_car_enqueueFunction · 0.85

Calls 1

ng_calloutFunction · 0.70

Tested by

no test coverage detected