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

Function ossl_attach

freebsd/crypto/openssl/ossl.c:87–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87static int
88ossl_attach(device_t dev)
89{
90 struct ossl_softc *sc;
91
92 sc = device_get_softc(dev);
93
94 ossl_cpuid();
95 sc->sc_cid = crypto_get_driverid(dev, sizeof(struct ossl_session),
96 CRYPTOCAP_F_SOFTWARE | CRYPTOCAP_F_SYNC |
97 CRYPTOCAP_F_ACCEL_SOFTWARE);
98 if (sc->sc_cid < 0) {
99 device_printf(dev, "failed to allocate crypto driver id\n");
100 return (ENXIO);
101 }
102
103 return (0);
104}
105
106static int
107ossl_detach(device_t dev)

Callers

nothing calls this directly

Calls 4

device_get_softcFunction · 0.85
crypto_get_driveridFunction · 0.85
device_printfFunction · 0.85
ossl_cpuidFunction · 0.70

Tested by

no test coverage detected