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

Function crypto_destroyreq

freebsd/opencrypto/crypto.c:1734–1761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1732}
1733
1734void
1735crypto_destroyreq(struct cryptop *crp)
1736{
1737#ifdef DIAGNOSTIC
1738 {
1739 struct cryptop *crp2;
1740 struct crypto_ret_worker *ret_worker;
1741
1742 CRYPTO_Q_LOCK();
1743 TAILQ_FOREACH(crp2, &crp_q, crp_next) {
1744 KASSERT(crp2 != crp,
1745 ("Freeing cryptop from the crypto queue (%p).",
1746 crp));
1747 }
1748 CRYPTO_Q_UNLOCK();
1749
1750 FOREACH_CRYPTO_RETW(ret_worker) {
1751 CRYPTO_RETW_LOCK(ret_worker);
1752 TAILQ_FOREACH(crp2, &ret_worker->crp_ret_q, crp_next) {
1753 KASSERT(crp2 != crp,
1754 ("Freeing cryptop from the return queue (%p).",
1755 crp));
1756 }
1757 CRYPTO_RETW_UNLOCK(ret_worker);
1758 }
1759 }
1760#endif
1761}
1762
1763void
1764crypto_freereq(struct cryptop *crp)

Callers 5

crypto_freereqFunction · 0.85
ktls_ocf_tls_cbc_encryptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected