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

Function nge_disconnect

freebsd/netgraph/ng_echo.c:112–120  ·  view source on GitHub ↗

* Removal of the last link destroys the nodeo */

Source from the content-addressed store, hash-verified

110 * Removal of the last link destroys the nodeo
111 */
112static int
113nge_disconnect(hook_p hook)
114{
115 if ((NG_NODE_NUMHOOKS(NG_HOOK_NODE(hook)) == 0)
116 && (NG_NODE_IS_VALID(NG_HOOK_NODE(hook)))) {
117 ng_rmnode_self(NG_HOOK_NODE(hook));
118 }
119 return (0);
120}

Callers

nothing calls this directly

Calls 1

ng_rmnode_selfFunction · 0.70

Tested by

no test coverage detected