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

Function cse_find

freebsd/opencrypto/cryptodev.c:701–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701static struct csession *
702cse_find(struct fcrypt *fcr, u_int ses)
703{
704 struct csession *cse;
705
706 mtx_lock(&fcr->lock);
707 TAILQ_FOREACH(cse, &fcr->csessions, next) {
708 if (cse->ses == ses) {
709 refcount_acquire(&cse->refs);
710 mtx_unlock(&fcr->lock);
711 return (cse);
712 }
713 }
714 mtx_unlock(&fcr->lock);
715 return (NULL);
716}
717
718static void
719cse_free(struct csession *cse)

Callers 1

crypto_ioctlFunction · 0.85

Calls 3

refcount_acquireFunction · 0.85
mtx_lockFunction · 0.50
mtx_unlockFunction · 0.50

Tested by

no test coverage detected