Home
last modified time | relevance | path

Searched refs:statbuf (Results 1 – 3 of 3) sorted by relevance

/tools/power/cpupower/utils/helpers/
Dsysfs.c56 struct stat statbuf; in sysfs_is_cpu_online() local
60 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online()
68 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online()
109 struct stat statbuf; in sysfs_idlestate_file_exists() local
114 if (stat(path, &statbuf) != 0) in sysfs_idlestate_file_exists()
358 struct stat statbuf; in sysfs_get_idlestate_count() local
363 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count()
367 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count()
370 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in sysfs_get_idlestate_count()
/tools/power/cpupower/utils/
Dcpupower.c175 struct stat statbuf; in main() local
206 stat("/dev/cpu/0/msr", &statbuf) != 0) { in main()
/tools/power/cpupower/lib/
Dsysfs.c662 struct stat statbuf; in sysfs_cpu_exists() local
666 if (stat(file, &statbuf) != 0) in sysfs_cpu_exists()
669 return S_ISDIR(statbuf.st_mode) ? 0 : -ENOSYS; in sysfs_cpu_exists()