* Official timeout routines for Netgraph nodes. */
| 3770 | * Official timeout routines for Netgraph nodes. |
| 3771 | */ |
| 3772 | static void |
| 3773 | ng_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 | |
| 3785 | int |
| 3786 | ng_callout(struct callout *c, node_p node, hook_p hook, int ticks, |
nothing calls this directly
no test coverage detected