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

Function nhgrp_ctl_unlink_all

freebsd/net/route/nhgrp.c:332–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332void
333nhgrp_ctl_unlink_all(struct nh_control *ctl)
334{
335 struct nhgrp_priv *nhg_priv;
336
337 NHOPS_WLOCK_ASSERT(ctl);
338
339 CHT_SLIST_FOREACH(&ctl->gr_head, mpath, nhg_priv) {
340 DPRINTF("Marking nhgrp %u unlinked", nhg_priv->nhg_idx);
341 refcount_release(&nhg_priv->nhg_linked);
342 } CHT_SLIST_FOREACH_END;
343}
344

Callers 1

nhops_destroy_ribFunction · 0.85

Calls 1

refcount_releaseFunction · 0.85

Tested by

no test coverage detected