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

Function mbufq_flush

freebsd/sys/mbuf.h:1494–1503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1492}
1493
1494static inline struct mbuf *
1495mbufq_flush(struct mbufq *mq)
1496{
1497 struct mbuf *m;
1498
1499 m = STAILQ_FIRST(&mq->mq_head);
1500 STAILQ_INIT(&mq->mq_head);
1501 mq->mq_len = 0;
1502 return (m);
1503}
1504
1505static inline void
1506mbufq_drain(struct mbufq *mq)

Callers 1

mbufq_drainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected