* Shutdown processing */
| 580 | * Shutdown processing |
| 581 | */ |
| 582 | static int |
| 583 | ng_source_rmnode(node_p node) |
| 584 | { |
| 585 | sc_p sc = NG_NODE_PRIVATE(node); |
| 586 | |
| 587 | ng_source_stop(sc); |
| 588 | ng_source_clr_data(sc); |
| 589 | NG_NODE_SET_PRIVATE(node, NULL); |
| 590 | NG_NODE_UNREF(node); |
| 591 | free(sc, M_NETGRAPH); |
| 592 | |
| 593 | return (0); |
| 594 | } |
| 595 | |
| 596 | /* |
| 597 | * Hook disconnection |
nothing calls this directly
no test coverage detected