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

Function ng_pred1_disconnect

freebsd/netgraph/ng_pred1.c:360–371  ·  view source on GitHub ↗

* Hook disconnection */

Source from the content-addressed store, hash-verified

358 * Hook disconnection
359 */
360static int
361ng_pred1_disconnect(hook_p hook)
362{
363 const node_p node = NG_HOOK_NODE(hook);
364
365 Pred1Init(node);
366
367 /* Go away if no longer connected. */
368 if ((NG_NODE_NUMHOOKS(node) == 0) && NG_NODE_IS_VALID(node))
369 ng_rmnode_self(node);
370 return (0);
371}
372
373/************************************************************************
374 HELPER STUFF

Callers

nothing calls this directly

Calls 2

Pred1InitFunction · 0.85
ng_rmnode_selfFunction · 0.70

Tested by

no test coverage detected