Searched refs:supplib (Results 1 – 1 of 1) sorted by relevance
4496 raid_lib_t *supplib; in raid_plugin_load() local4499 supplib = calloc(1, sizeof (raid_lib_t)); in raid_plugin_load()4500 if (supplib == NULL) in raid_plugin_load()4506 supplib->lib_handle = dlopen(buf, RTLD_LAZY); in raid_plugin_load()4507 if (supplib->lib_handle == NULL) { in raid_plugin_load()4508 free(supplib); in raid_plugin_load()4512 supplib->name = driver_name; in raid_plugin_load()4514 if ((sym = dlsym(supplib->lib_handle, "rdcfg_version")) == NULL) in raid_plugin_load()4515 supplib->version = RDCFG_PLUGIN_V1; in raid_plugin_load()4517 supplib->version = *((uint32_t *)sym); in raid_plugin_load()[all …]