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

Function ng_callout_trampoline

freebsd/netgraph/ng_base.c:3772–3783  ·  view source on GitHub ↗

* Official timeout routines for Netgraph nodes. */

Source from the content-addressed store, hash-verified

3770 * Official timeout routines for Netgraph nodes.
3771 */
3772static void
3773ng_callout_trampoline(void *arg)
3774{
3775 struct epoch_tracker et;
3776 item_p item = arg;
3777
3778 NET_EPOCH_ENTER(et);
3779 CURVNET_SET(NGI_NODE(item)->nd_vnet);
3780 ng_snd_item(item, 0);
3781 CURVNET_RESTORE();
3782 NET_EPOCH_EXIT(et);
3783}
3784
3785int
3786ng_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