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

Function ng_car_shutdown

freebsd/netgraph/ng_car.c:532–544  ·  view source on GitHub ↗

* Do local shutdown processing. */

Source from the content-addressed store, hash-verified

530 * Do local shutdown processing.
531 */
532static int
533ng_car_shutdown(node_p node)
534{
535 const priv_p priv = NG_NODE_PRIVATE(node);
536
537 ng_uncallout(&priv->upper.q_callout, node);
538 ng_uncallout(&priv->lower.q_callout, node);
539 mtx_destroy(&priv->upper.q_mtx);
540 mtx_destroy(&priv->lower.q_mtx);
541 NG_NODE_UNREF(priv->node);
542 free(priv, M_NETGRAPH);
543 return (0);
544}
545
546/*
547 * Hook disconnection.

Callers

nothing calls this directly

Calls 2

ng_uncalloutFunction · 0.70
freeFunction · 0.50

Tested by

no test coverage detected