crypto_drivers
if (crypto_drivers == NULL || hid >= crypto_drivers_num)
struct cryptocap *cap = &crypto_drivers[hid];
crypto_drivers = kmem_zalloc(CRYPTO_DRIVERS_INITIAL *
if (crypto_drivers != NULL)
kmem_free(crypto_drivers,
hid = cap - crypto_drivers;
memcpy(newdrv, crypto_drivers,
kmem_free(crypto_drivers,
crypto_drivers = newdrv;
KASSERT(crypto_drivers != NULL);
cap = &crypto_drivers[hid];
if (crypto_drivers == NULL)
return (hid >= crypto_drivers_num ? NULL : &crypto_drivers[hid]);