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

Function bstp_detach

freebsd/net/bridgestp.c:2163–2173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2161}
2162
2163void
2164bstp_detach(struct bstp_state *bs)
2165{
2166 KASSERT(LIST_EMPTY(&bs->bs_bplist), ("bstp still active"));
2167
2168 mtx_lock(&bstp_list_mtx);
2169 LIST_REMOVE(bs, bs_list);
2170 mtx_unlock(&bstp_list_mtx);
2171 callout_drain(&bs->bs_bstpcallout);
2172 BSTP_LOCK_DESTROY(bs);
2173}
2174
2175void
2176bstp_init(struct bstp_state *bs)

Callers 1

bridge_clone_destroyFunction · 0.85

Calls 2

mtx_lockFunction · 0.50
mtx_unlockFunction · 0.50

Tested by

no test coverage detected