struct mbuf *mbq_safe_dequeue(struct mbq *q) { struct mbuf *ret; mbq_lock(q); ret = __mbq_dequeue(q); mbq_unlock(q); return ret; }
struct mbuf *mbq_safe_dequeue(struct mbq *q) { struct mbuf *ret; mtx_lock(&q->lock); ret = __mbq_dequeue(q); mtx_unlock(&q->lock); return ret; }
struct mbuf *mbq_dequeue(struct mbq *q) { return __mbq_dequeue(q); }