Home
last modified time | relevance | path

Searched refs:S_ISDIR (Results 1 – 15 of 15) sorted by relevance

/tools/power/acpi/os_specific/service_layers/
Dosunixdir.c131 if ((S_ISDIR(temp_stat.st_mode) in acpi_os_get_next_filename()
134 || ((!S_ISDIR(temp_stat.st_mode) in acpi_os_get_next_filename()
/tools/power/cpupower/lib/
Dcpuidle.c292 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count()
296 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count()
299 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in cpuidle_state_count()
/tools/power/cpupower/utils/helpers/
Dsysfs.c362 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count()
366 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count()
369 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in sysfs_get_idlestate_count()
/tools/perf/util/
Dpath.c93 return S_ISDIR(st.st_mode); in is_directory()
Dutil.c190 if (S_ISDIR(statbuf.st_mode)) in rm_rf_depth_pat()
Ds390-cpumsf.c1109 if (rc == -1 || !S_ISDIR(stbuf.st_mode)) { in s390_cpumsf__config()
Dmachine.c1386 if (S_ISDIR(st.st_mode)) { in maps__set_modules_path_dir()
/tools/testing/selftests/ia64/
Daliasing-test.c100 if (r == 0 && S_ISDIR(buf.st_mode)) { in scan_tree()
189 if (r == 0 && S_ISDIR(buf.st_mode)) { in scan_rom()
/tools/include/uapi/linux/
Dstat.h23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
/tools/lib/traceevent/
Devent-plugin.c526 if (!S_ISDIR(st.st_mode)) in load_plugins_dir()
/tools/vm/
Dpage-types.c1078 } else if (S_ISDIR(st.st_mode)) { in walk_page_cache()
1107 if (!S_ISDIR(st.st_mode)) in parse_cgroup()
/tools/testing/selftests/bpf/progs/
Dprofiler.inc.h32 #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) macro
779 if (S_ISDIR(mode) || S_ISCHR(mode) || S_ISBLK(mode) || S_ISFIFO(mode) || in kprobe_ret__do_filp_open()
/tools/perf/pmu-events/
Djevents.c934 if (S_ISDIR(st.st_mode)) { in is_leaf_dir()
/tools/testing/selftests/filesystems/incfs/
Dincfs_test.c651 if (S_ISDIR(st.st_mode)) { in create_backing_dir()
4560 TESTCOND(S_ISDIR(st.st_mode)); in sysfs_test_directories()
4566 TESTCOND(S_ISDIR(st.st_mode)); in sysfs_test_directories()
4642 if (S_ISDIR(st.st_mode)) in setup_mount_dir()
/tools/include/nolibc/
Dnolibc.h216 #define S_ISDIR(mode) (((mode) & S_IFDIR) == S_IFDIR) macro