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

Function ng_split_disconnect

freebsd/netgraph/ng_split.c:165–178  ·  view source on GitHub ↗

* Hook disconnection */

Source from the content-addressed store, hash-verified

163 * Hook disconnection
164 */
165static int
166ng_split_disconnect(hook_p hook)
167{
168 hook_p *localhook = NG_HOOK_PRIVATE(hook);
169
170 KASSERT(localhook != NULL, ("%s: null info", __func__));
171 *localhook = NULL;
172 if ((NG_NODE_NUMHOOKS(NG_HOOK_NODE(hook)) == 0)
173 && (NG_NODE_IS_VALID(NG_HOOK_NODE(hook)))) {
174 ng_rmnode_self(NG_HOOK_NODE(hook));
175 }
176
177 return (0);
178}

Callers

nothing calls this directly

Calls 1

ng_rmnode_selfFunction · 0.70

Tested by

no test coverage detected