Lines Matching refs:sysPath
130 config->sysPath = strdup(items[0]); // sys path
131 INIT_ERROR_CHECK(config->sysPath != NULL, FreeStringVector(items, count);
135 free((void*)config->sysPath); free(config); return -1, "failed to dup attr");
139 "Invalid mode in config file for sys path %s. use default mode", config->sysPath);
380 void ChangeSysAttributePermissions(const char *sysPath)
382 if (INVALIDSTRING(sysPath)) {
392 if (STRINGEQUAL(config->sysPath, sysPath)) {
403 if (snprintf_s(sysAttr, SYSPATH_SIZE, SYSPATH_SIZE - 1, "/sys%s/%s", config->sysPath, config->attr) == -1) {
404 INIT_LOGE("Failed to build sys attribute for sys path %s, attr: %s", config->sysPath, config->attr);
428 free((void *)config->sysPath);