Lines Matching defs:file
87 char file[SYSFS_PATH_MAX] = PATH_TO_RAPL;
91 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) {
120 char file[SYSFS_PATH_MAX] = PATH_TO_POWERCAP "/";
124 strcat(file, zone->sys_name);
125 strcat(file, "/");
126 strcat(file, powercap_get64_files[which]);
128 ret = sysfs_read_file(file, buf, MAX_LINE_LEN);
186 char file[SYSFS_PATH_MAX] = PATH_TO_POWERCAP;
197 strcat(file, "/");
198 strcat(file, zone->sys_name);
199 strcat(file, "/name");
200 sysfs_read_file(file, zone->name, MAX_LINE_LEN);
259 char file[SYSFS_PATH_MAX] = PATH_TO_RAPL "/enabled";
261 ret = sysfs_get_enabled(file, &enabled);