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

Function ng_source_rmnode

freebsd/netgraph/ng_source.c:582–594  ·  view source on GitHub ↗

* Shutdown processing */

Source from the content-addressed store, hash-verified

580 * Shutdown processing
581 */
582static int
583ng_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

Callers

nothing calls this directly

Calls 3

ng_source_stopFunction · 0.85
ng_source_clr_dataFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected