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

Function cse_delete

freebsd/opencrypto/cryptodev.c:733–749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731}
732
733static bool
734cse_delete(struct fcrypt *fcr, u_int ses)
735{
736 struct csession *cse;
737
738 mtx_lock(&fcr->lock);
739 TAILQ_FOREACH(cse, &fcr->csessions, next) {
740 if (cse->ses == ses) {
741 TAILQ_REMOVE(&fcr->csessions, cse, next);
742 mtx_unlock(&fcr->lock);
743 cse_free(cse);
744 return (true);
745 }
746 }
747 mtx_unlock(&fcr->lock);
748 return (false);
749}
750
751static struct cryptop_data *
752cod_alloc(struct csession *cse, size_t aad_len, size_t len)

Callers 1

crypto_ioctlFunction · 0.85

Calls 3

cse_freeFunction · 0.85
mtx_lockFunction · 0.50
mtx_unlockFunction · 0.50

Tested by

no test coverage detected