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

Function ifq_init

freebsd/net/if.c:755–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753}
754
755void
756ifq_init(struct ifaltq *ifq, struct ifnet *ifp)
757{
758
759 mtx_init(&ifq->ifq_mtx, ifp->if_xname, "if send queue", MTX_DEF);
760
761 if (ifq->ifq_maxlen == 0)
762 ifq->ifq_maxlen = ifqmaxlen;
763
764 ifq->altq_type = 0;
765 ifq->altq_disc = NULL;
766 ifq->altq_flags &= ALTQF_CANTCHANGE;
767 ifq->altq_tbr = NULL;
768 ifq->altq_ifp = ifp;
769}
770
771void
772ifq_delete(struct ifaltq *ifq)

Callers 1

if_alloc_domainFunction · 0.85

Calls 1

mtx_initFunction · 0.85

Tested by

no test coverage detected