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

Function drbr_peek

freebsd/net/ifq.h:358–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358static __inline struct mbuf *
359drbr_peek(struct ifnet *ifp, struct buf_ring *br)
360{
361#ifdef ALTQ
362 struct mbuf *m;
363 if (ifp != NULL && ALTQ_IS_ENABLED(&ifp->if_snd)) {
364 /*
365 * Pull it off like a dequeue
366 * since drbr_advance() does nothing
367 * for altq and drbr_putback() will
368 * use the old prepend function.
369 */
370 IFQ_DEQUEUE(&ifp->if_snd, m);
371 return (m);
372 }
373#endif
374 return ((struct mbuf *)buf_ring_peek_clear_sc(br));
375}
376
377static __inline void
378drbr_flush(struct ifnet *ifp, struct buf_ring *br)

Callers

nothing calls this directly

Calls 1

buf_ring_peek_clear_scFunction · 0.85

Tested by

no test coverage detected