NVDIMM_ROOT_IVAR_MAX
ivars = mallocarray(NVDIMM_ROOT_IVAR_MAX, sizeof(uintptr_t),
if (index < 0 || index >= NVDIMM_ROOT_IVAR_MAX)