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

Function ng_rmnode_self

freebsd/netgraph/ng_base.c:1604–1617  ·  view source on GitHub ↗

Shut this node down as soon as everyone is clear of it */ Should add arg "immediately" to jump the queue */

Source from the content-addressed store, hash-verified

1602/* Shut this node down as soon as everyone is clear of it */
1603/* Should add arg "immediately" to jump the queue */
1604int
1605ng_rmnode_self(node_p node)
1606{
1607 int error;
1608
1609 if (node == &ng_deadnode)
1610 return (0);
1611 node->nd_flags |= NGF_INVALID;
1612 if (node->nd_flags & NGF_CLOSING)
1613 return (0);
1614
1615 error = ng_send_fn(node, NULL, &ng_rmnode, NULL, 0);
1616 return (error);
1617}
1618
1619static void
1620ng_rmhook_part2(node_p node, hook_p hook, void *arg1, int arg2)

Callers 15

ng_device_disconnectFunction · 0.70
ng_patch_disconnectFunction · 0.70
ng_pppoe_disconnectFunction · 0.70
ng_macfilter_disconnectFunction · 0.70
nge_disconnectFunction · 0.70
ng_split_disconnectFunction · 0.70
ng_xxx_disconnectFunction · 0.70
ng_bridge_disconnectFunction · 0.70
cisco_disconnectFunction · 0.70
ng_pred1_disconnectFunction · 0.70
ng_tee_disconnectFunction · 0.70
ngipi_disconnectFunction · 0.70

Calls 1

ng_send_fnFunction · 0.70

Tested by

no test coverage detected