Home | History | Annotate | Download | only in libhardware

Lines Matching full:path

30 /** Base path of the hal modules */
67 const char *path,
79 handle = dlopen(path, RTLD_NOW);
82 ALOGE("load: module=%s\n%s", path, err_str?err_str:"unknown");
116 ALOGV("loaded HAL id=%s path=%s hmi=%p handle=%p",
117 id, path, *pHmi, handle);
127 * otherwise return negative. On success path will contain the path to the HAL.
129 static int hw_module_exists(char *path, size_t path_len, const char *name,
132 snprintf(path, path_len, "%s/%s.%s.so",
134 if (access(path, R_OK) == 0)
137 snprintf(path, path_len, "%s/%s.%s.so",
139 if (access(path, R_OK) == 0)
150 char path[PATH_MAX] = {0};
170 if (hw_module_exists(path, sizeof(path), name, prop) == 0) {
180 if (hw_module_exists(path, sizeof(path), name, prop) == 0) {
186 if (hw_module_exists(path, sizeof(path), name, "default") == 0) {
195 return load(class_id, path, module);