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

Function inm_rele_locked

freebsd/netinet/in_var.h:417–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417static __inline void
418inm_rele_locked(struct in_multi_head *inmh, struct in_multi *inm)
419{
420 MPASS(inm->inm_refcount > 0);
421 IN_MULTI_LIST_LOCK_ASSERT();
422
423 if (--inm->inm_refcount == 0) {
424 MPASS(inmh != NULL);
425 inm_disconnect(inm);
426 inm->inm_ifma->ifma_protospec = NULL;
427 SLIST_INSERT_HEAD(inmh, inm, inm_nrele);
428 }
429}
430
431/*
432 * Return values for imo_multi_filter().

Callers 5

in_purgemaddrsFunction · 0.70
igmp_ifdetachFunction · 0.70
igmp_initial_joinFunction · 0.70

Calls 1

inm_disconnectFunction · 0.85

Tested by

no test coverage detected