Searched refs:statbuf (Results 1 – 3 of 3) sorted by relevance
56 struct stat statbuf; in sysfs_is_cpu_online() local60 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() local114 if (stat(path, &statbuf) != 0) in sysfs_idlestate_file_exists()358 struct stat statbuf; in sysfs_get_idlestate_count() local363 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()
175 struct stat statbuf; in main() local206 stat("/dev/cpu/0/msr", &statbuf) != 0) { in main()
662 struct stat statbuf; in sysfs_cpu_exists() local666 if (stat(file, &statbuf) != 0) in sysfs_cpu_exists()669 return S_ISDIR(statbuf.st_mode) ? 0 : -ENOSYS; in sysfs_cpu_exists()