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

Function blake2_detach

freebsd/crypto/blake2/blake2_cryptodev.c:155–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155static int
156blake2_detach(device_t dev)
157{
158 struct blake2_softc *sc;
159
160 sc = device_get_softc(dev);
161
162 rw_wlock(&sc->lock);
163 sc->dying = true;
164 rw_wunlock(&sc->lock);
165 crypto_unregister_all(sc->cid);
166
167 rw_destroy(&sc->lock);
168
169 blake2_cleanctx();
170
171 return (0);
172}
173
174static int
175blake2_probesession(device_t dev, const struct crypto_session_params *csp)

Callers

nothing calls this directly

Calls 4

device_get_softcFunction · 0.85
crypto_unregister_allFunction · 0.85
rw_destroyFunction · 0.85
blake2_cleanctxFunction · 0.85

Tested by

no test coverage detected