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

Function ng_callout_trampoline

lib/ff_ng_base.c:3802–3813  ·  view source on GitHub ↗

* Official timeout routines for Netgraph nodes. */

Source from the content-addressed store, hash-verified

3800 * Official timeout routines for Netgraph nodes.
3801 */
3802static void
3803ng_callout_trampoline(void *arg)
3804{
3805 struct epoch_tracker et;
3806 item_p item = arg;
3807
3808 NET_EPOCH_ENTER(et);
3809 CURVNET_SET(NGI_NODE(item)->nd_vnet);
3810 ng_snd_item(item, 0);
3811 CURVNET_RESTORE();
3812 NET_EPOCH_EXIT(et);
3813}
3814
3815int
3816ng_callout(struct callout *c, node_p node, hook_p hook, int ticks,

Callers

nothing calls this directly

Calls 1

ng_snd_itemFunction · 0.70

Tested by

no test coverage detected