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

Function blake2_identify

freebsd/crypto/blake2/blake2_cryptodev.c:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80MALLOC_DEFINE(M_BLAKE2, "blake2_data", "Blake2 Data");
81
82static void
83blake2_identify(driver_t *drv, device_t parent)
84{
85
86 /* NB: order 10 is so we get attached after h/w devices */
87 if (device_find_child(parent, "blaketwo", -1) == NULL &&
88 BUS_ADD_CHILD(parent, 10, "blaketwo", -1) == 0)
89 panic("blaketwo: could not attach");
90}
91
92static int
93blake2_probe(device_t dev)

Callers

nothing calls this directly

Calls 2

device_find_childFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected