Shut this node down as soon as everyone is clear of it */ Should add arg "immediately" to jump the queue */
| 1608 | /* Shut this node down as soon as everyone is clear of it */ |
| 1609 | /* Should add arg "immediately" to jump the queue */ |
| 1610 | int |
| 1611 | ng_rmnode_self(node_p node) |
| 1612 | { |
| 1613 | int error; |
| 1614 | |
| 1615 | if (node == &ng_deadnode) |
| 1616 | return (0); |
| 1617 | node->nd_flags |= NGF_INVALID; |
| 1618 | if (node->nd_flags & NGF_CLOSING) |
| 1619 | return (0); |
| 1620 | |
| 1621 | error = ng_send_fn(node, NULL, &ng_rmnode, NULL, 0); |
| 1622 | return (error); |
| 1623 | } |
| 1624 | |
| 1625 | static void |
| 1626 | ng_rmhook_part2(node_p node, hook_p hook, void *arg1, int arg2) |
nothing calls this directly
no test coverage detected