readq
#define DRM_READ64(map, offset) readq(((void __iomem *)(map)->handle) + (offset))
new_connection->readq =
if(new_connection->readq == NULL) {
memcpy(connection->readq+connection->loc, buffer, m->m_len);
kfree(connection->readq, M_DEVBUF);
memcpy(buffer, connection->readq, amnt);
memcpy(connection->readq, connection->readq+amnt,
char *readq;
mtx_init(&priv->readq.ifq_mtx, "ng_device queue", NULL, MTX_DEF);
IFQ_SET_MAXLEN(&priv->readq, ifqmaxlen);
mtx_destroy(&priv->readq.ifq_mtx);
IF_LOCK(&priv->readq);
if (_IF_QFULL(&priv->readq)) {
_IF_DROP(&priv->readq);
IF_UNLOCK(&priv->readq);
_IF_ENQUEUE(&priv->readq, m);
IF_UNLOCK(&priv->readq);
IF_DRAIN(&priv->readq);
mtx_destroy(&(priv)->readq.ifq_mtx);
IF_DEQUEUE(&priv->readq, m);
!IFQ_IS_EMPTY(&priv->readq))
struct ifqueue readq;