Lines Matching defs:instance

54  * to ensure that all threads have finished using an instance before
55 * closing the instance or removing the container it's referencing.
156 unload_public_module(void **instance, dsvc_splapi_t *api)
160 if (dlclose(*instance) != 0)
163 *instance = NULL;
171 * instance of opened module, and populates the api argument with the
175 load_public_module(dsvc_datastore_t *ddp, void **instance, dsvc_splapi_t *api)
188 *instance = dlopen(path, RTLD_LAZY|RTLD_GROUP|RTLD_WORLD);
189 if (*instance == NULL)
196 api->version = (dsvc_splfuncp_t)dlsym(*instance, "version");
199 (void) unload_public_module(instance, api);
203 configure = (dsvc_splfuncp_t)dlsym(*instance, "configure");
206 (void) unload_public_module(instance, api);
213 (dsvc_splfuncp_t)dlsym(*instance, funcnames[i])) == NULL) {
214 (void) unload_public_module(instance, api);
227 (void) unload_public_module(instance, api);
306 void *instance;
310 error = load_public_module(ddp, &instance, &api);
316 (void) unload_public_module(&instance, &api);
328 void *instance;
332 error = load_public_module(ddp, &instance, &api);
338 (void) unload_public_module(&instance, &api);
351 void *instance;
355 error = load_public_module(ddp, &instance, &api);
364 (void) unload_public_module(&instance, &api);
374 * dynamically allocated arguments. The returned handle instance must
456 void *instance;
468 error = load_public_module(ddp, &instance, &api);
478 (void) unload_public_module(&instance, &api);
484 * Delete the handle instance referenced by hand. Frees hand if the close
777 void *instance;
781 if (load_public_module(ddp, &instance, &api) != DSVC_SUCCESS)
784 dsvc_synchtypep = dlsym(instance, "dsvc_synchtype");
790 (void) unload_public_module(&instance, &api);