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

Function cap_rele

freebsd/opencrypto/crypto.c:304–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304static void
305cap_rele(struct cryptocap *cap)
306{
307
308 if (refcount_release(&cap->cc_refs) == 0)
309 return;
310
311 KASSERT(cap->cc_sessions == 0,
312 ("freeing crypto driver with active sessions"));
313 KASSERT(cap->cc_koperations == 0,
314 ("freeing crypto driver with active key operations"));
315
316 free(cap, M_CRYPTO_DATA);
317}
318
319static int
320crypto_init(void)

Callers 6

crypto_destroyFunction · 0.85
crypto_deletesessionFunction · 0.85
crypto_get_driveridFunction · 0.85
crypto_unregister_allFunction · 0.85
crypto_kdoneFunction · 0.85
crypto_procFunction · 0.85

Calls 2

refcount_releaseFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected