* Official timeout routines for Netgraph nodes. */
| 3800 | * Official timeout routines for Netgraph nodes. |
| 3801 | */ |
| 3802 | static void |
| 3803 | ng_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 | |
| 3815 | int |
| 3816 | ng_callout(struct callout *c, node_p node, hook_p hook, int ticks, |
nothing calls this directly
no test coverage detected