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

Function ng_xxx_disconnect

freebsd/netgraph/ng_sample.c:486–495  ·  view source on GitHub ↗

* Hook disconnection * * For this type, removal of the last link destroys the node */

Source from the content-addressed store, hash-verified

484 * For this type, removal of the last link destroys the node
485 */
486static int
487ng_xxx_disconnect(hook_p hook)
488{
489 if (NG_HOOK_PRIVATE(hook))
490 ((struct XXX_hookinfo *) (NG_HOOK_PRIVATE(hook)))->hook = NULL;
491 if ((NG_NODE_NUMHOOKS(NG_HOOK_NODE(hook)) == 0)
492 && (NG_NODE_IS_VALID(NG_HOOK_NODE(hook)))) /* already shutting down? */
493 ng_rmnode_self(NG_HOOK_NODE(hook));
494 return (0);
495}

Callers

nothing calls this directly

Calls 1

ng_rmnode_selfFunction · 0.70

Tested by

no test coverage detected