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

Function inm_release_deferred

freebsd/netinet/in_mcast.c:296–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296void
297inm_release_deferred(struct in_multi *inm)
298{
299 struct in_multi_head tmp;
300
301 IN_MULTI_LIST_LOCK_ASSERT();
302 MPASS(inm->inm_refcount > 0);
303 if (--inm->inm_refcount == 0) {
304 SLIST_INIT(&tmp);
305 inm_disconnect(inm);
306 inm->inm_ifma->ifma_protospec = NULL;
307 SLIST_INSERT_HEAD(&tmp, inm, inm_nrele);
308 inm_release_list_deferred(&tmp);
309 }
310}
311
312static void
313inm_release_task(void *arg __unused, int pending __unused)

Callers 3

in_joingroup_lockedFunction · 0.85
in_leavegroup_lockedFunction · 0.85
inp_join_groupFunction · 0.85

Calls 2

inm_disconnectFunction · 0.85

Tested by

no test coverage detected