| 2161 | } |
| 2162 | |
| 2163 | void |
| 2164 | bstp_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 | |
| 2175 | void |
| 2176 | bstp_init(struct bstp_state *bs) |
no test coverage detected