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

Function swcr_attach

freebsd/opencrypto/cryptosoft.c:1459–1471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1457}
1458
1459static int
1460swcr_attach(device_t dev)
1461{
1462
1463 swcr_id = crypto_get_driverid(dev, sizeof(struct swcr_session),
1464 CRYPTOCAP_F_SOFTWARE | CRYPTOCAP_F_SYNC);
1465 if (swcr_id < 0) {
1466 device_printf(dev, "cannot initialize!");
1467 return (ENXIO);
1468 }
1469
1470 return (0);
1471}
1472
1473static int
1474swcr_detach(device_t dev)

Callers

nothing calls this directly

Calls 2

crypto_get_driveridFunction · 0.85
device_printfFunction · 0.85

Tested by

no test coverage detected