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

Function ccp_queue_abort

freebsd/crypto/ccp/ccp.c:697–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695}
696
697void
698ccp_queue_abort(struct ccp_queue *qp)
699{
700 unsigned i;
701
702 mtx_assert(&qp->cq_lock, MA_OWNED);
703
704 /* Wipe out any descriptors associated with this aborted txn. */
705 for (i = qp->cq_acq_tail; i != qp->cq_tail;
706 i = (i + 1) % (1 << qp->cq_softc->ring_size_order)) {
707 memset(&qp->desc_ring[i], 0, sizeof(qp->desc_ring[i]));
708 }
709 qp->cq_tail = qp->cq_acq_tail;
710
711 mtx_unlock(&qp->cq_lock);
712}
713
714#ifdef DDB
715#define _db_show_lock(lo) LOCK_CLASS(lo)->lc_ddb_show(lo)

Callers 1

ccp_processFunction · 0.85

Calls 3

mtx_assertFunction · 0.85
memsetFunction · 0.85
mtx_unlockFunction · 0.50

Tested by

no test coverage detected