Lines Matching refs:name
87 * \param name Plugin name (relative)
90 int snd_dlpath(char *path, size_t path_len, const char *name)
103 snd_plugin_dir ? snd_plugin_dir : ALSA_PLUGIN_DIR, name);
110 * \param name name of the library, similar to \c dlopen.
117 * the alsa-lib library. In that case, \p name is set to \c NULL.
120 EXPORT_SYMBOL void *INTERNAL(snd_dlopen)(const char *name, int mode, char *errbuf, size_t errbuflen)
122 void *snd_dlopen(const char *name, int mode, char *errbuf, size_t errbuflen)
126 if (name == NULL)
130 if (name == NULL) {
137 name = self;
148 const char *filename = name;
151 if (name && name[0] != '/') {
152 if (snd_dlpath(path, sizeof(path), name) == 0)
167 EXPORT_SYMBOL void *INTERNAL(snd_dlopen_old)(const char *name, int mode)
169 return INTERNAL(snd_dlopen)(name, mode, NULL, 0);
202 * \param name Symbol name.
206 * This function checks that the symbol with the version appended to its name
209 static int snd_dlsym_verify(void *handle, const char *name, const char *version)
217 vname = alloca(1 + strlen(name) + strlen(version) + 1);
221 strcpy(vname + 1, name);
226 SNDERR("unable to verify version for symbol %s", name);
236 * \param name Symbol name.
246 void *snd_dlsym(void *handle, const char *name, const char *version)
256 if (!strcmp(name, link->dlsym_name))
266 err = snd_dlsym_verify(handle, name, version);
271 return dlsym(handle, name);
284 const char *name;
311 snd_dlobj_cache_get0(const char *lib, const char *name,
327 if (strcmp(c->name, name) == 0) {
345 func = snd_dlsym(dlobj, name, version);
349 name, lib ? lib : "[builtin]");
357 c->name = strdup(name);
358 if ((lib && ! c->lib) || ! c->name) {
359 free((void *)c->name);
372 void *snd_dlobj_cache_get(const char *lib, const char *name,
379 c = snd_dlobj_cache_get0(lib, name, version, verbose);
386 void *snd_dlobj_cache_get2(const char *lib, const char *name,
393 c = snd_dlobj_cache_get0(lib, name, version, verbose);
439 free((void *)c->name); /* shut up gcc warning */